-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Konstantin,
On 11/4/2009 12:06 PM, Konstantin Kolinko wrote: > 2009/11/4 Christopher Schultz <ch...@christopherschultz.net>: >> >> For Cocoon, everything is a URL. When Cocoon tries to build URLs to >> point to, say, files on the disk in the deployment directory, it gets a >> URL like "file:///home/path/to/tomcat/webapps/foo#bar/some/file" which >> ends up trying to access "file:///home/path/to/tomcat/webapps/foo" which >> is neither a file nor a directory. >> > > That URL should have been written with %23 instead of '#'. Yes, it should have been. The problem is that Cocoon does something similar to the following to determine file paths (I can't confirm, because there are 2900 classes in Cocoon and I have no idea where to start): new URL(request.getRealPath(xsltFile)) and uses that for everything. :( This is not a path that I have control over... it's not like I'm setting-up a configuration file that contains # symbols and I should be using %23 instead. Cocoon is, IMO, broken in this way because it does not protect /itself/ from these paths. See http://issues.apache.org/jira/browse/COCOON-2270 for more details. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrx0G8ACgkQ9CaO5/Lv0PDQbACgpuMEjYZl/+zf4Pc3bssZxN8r Bt4AmwWvqFmza6sKCkbF5kfQ1HQ+ksBv =uR4g -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org