From: Wolfgang M. M. <wol...@us...> - 2004-09-12 13:12:43
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/http In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4679/src/org/exist/http Modified Files: RESTServer.java Log Message: Replaced all occurrences of new URI(file.toURL().toString()).toASCIIString(); to file.toURI().toASCIIString(); (patch by Piotr). Index: RESTServer.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/http/RESTServer.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** RESTServer.java 12 Sep 2004 09:25:19 -0000 1.16 --- RESTServer.java 12 Sep 2004 13:12:22 -0000 1.17 *************** *** 341,350 **** broker.saveCollection(collection); } ! String url; ! try { ! url = new URI(tempFile.toURL().toString()).toASCIIString(); ! } catch (URISyntaxException e1) { ! url = tempFile.toString(); ! } if(contentType == null || contentType.equalsIgnoreCase("text/xml")) { DocumentImpl doc = collection.addDocument(broker, docPath, --- 341,345 ---- broker.saveCollection(collection); } ! String url = tempFile.toURI().toASCIIString(); if(contentType == null || contentType.equalsIgnoreCase("text/xml")) { DocumentImpl doc = collection.addDocument(broker, docPath, |