From: <rh...@fl...> - 2008-12-07 18:04:31
|
Quoting Angel Herráez <ang...@ua...>: > Hello all > I am having trouble loading a file using an absolute path, only with > the signed applet > > The code is > jmolApplet(200, 'load /mediawiki-1.11.0/images/d/d3/Butane.pdb; ' > > and it works Ok with the unsigned applet (11.6.8): > > FileManager.openFile(/mediawiki-1.11.0/images/d/d3/Butane.pdb) ///mediawiki- > 1.11.0/images/d/d3/Butane.pdb > FileManager opening http://127.0.0.1/mediawiki-1.11.0/images/d/d3/Butane.pdb > The Resolver thinks Pdb > openFile(/mediawiki-1.11.0/images/d/d3/Butane.pdb): 311 ms > > but fails with the signed one: > > FileManager.openFile(/mediawiki-1.11.0/images/d/d3/Butane.pdb) ///mediawiki- > 1.11.0/images/d/d3/Butane.pdb > FileManager opening file:/mediawiki-1.11.0/images/d/d3/Butane.pdb > file ERROR: file:/mediawiki-1.11.0/images/d/d3/Butane.pdb > java.io.FileNotFoundException: \mediawiki-1.11.0\images\d\d3\Butane.pdb > > Can anyone give a hint? > > (Yes, I know that using absolute paths is not a very good idea, and > I usually do not do so, > but this is inside a Wiki and must be so) > This is how Bob designed it. In response to my objections the unsigned applet still allows using a server absolute path as it used to be before version 11.6. But for the signed applet this is interpreted as a file system and not server absolute path. Regards, Rolf ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |