Thanks for this fix! Its been an annoying issue for a while (I think it was still a bug in earlier versions of java 1.6 as well?).
There are a few other places in GN where this fix needs to be applied - I'll test them with this fix as well.
Cheers and thanks,
Simon
________________________________________
From: Chris van Lith [chrisvanlith@anonymised.com]
Sent: Tuesday, 22 September 2009 5:00 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] problems with space in installation path
Hello List,
Several persons have experienced problems with GN when GN was installed in a path with spaces.
I have not found a solution in the list, so the next may help.
GN works OK on java 1.6 with and without spaces in the installation path.
GN does not work on Java 1.5 with spaces in the installation path.
I found this to be a bug in java 1.5 StreamSource which has been fixed in 1.6.
The SystemId does not get properly escaped. For now I applied the following patch:
jeeves.utils.transform (221):
//Source srcSheet = new StreamSource(styleSheet);
Source srcSheet = new StreamSource(styleSheet.toURI().toASCIIString());