Date: Tue, 22 Jun 1999 01:58:24 -0500
From: Matthias Reich <matthias.reich@bigfoot.com>
To: java-security@java.sun.com
Subject: IExplorer produces security exceptions only on local applets
Hi !
techs first:
System: P-II 400, 256 MB, NT4.0WS SP4
Software: MS IExplorer 4.0 SP1, JDK 1.2.1 (hotspot) installed
I tried to write an applet that accesses files on disk.
Therefore,since IExplorer provides the different zones with different
security restrictions, I chose to run it within IE. I have a very simple
applet (actually from the java.sun.com website) at
http://java.sun.com/sfaq/example/writeFile.html
that tries to write a file. By lowering the security restrictions in the
internet zone I could get the applet, (loaded from the website) to
write/delete files at will. I tried to load the exact same *.class and
*.html file locally (from hard disk) and could NOT get it to run without
producing SECURITY EXCEPTIONS. Of course it did not create/write a file.
I tried setting ALL ZONES to no security at all regarding Java-Applets
and could NOT get the damn thing to write a file. I took the *.class and
*.html file put it on my own homepage and was again able to write/read
files on the harddisk ! (after setting/lowering the appropriate
restrictions)
Any applet from outside seems to obey the restrictions and happily
writes to files and stuff... just not the locally stored ones. They
produce only security exceptions.
Any help is greatly appreciated.
regards,
matthias.reich@bigfoot.com