jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r470802 - /jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DefaultItemCollection.java
Date Fri, 03 Nov 2006 13:23:32 GMT
Author: angela
Date: Fri Nov  3 05:23:32 2006
New Revision: 470802

URL: http://svn.apache.org/viewvc?view=rev&rev=470802
Log:
addMember: name of jcr item may contain invalid characters (IOException when creating tmp
file).

Modified:
    jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DefaultItemCollection.java

Modified: jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DefaultItemCollection.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DefaultItemCollection.java?view=diff&rev=470802&r1=470801&r2=470802
==============================================================================
--- jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DefaultItemCollection.java
(original)
+++ jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DefaultItemCollection.java
Fri Nov  3 05:23:32 2006
@@ -395,7 +395,7 @@
                     throw new DavException(DavServletResponse.SC_BAD_REQUEST, "Cannot create
a new non-collection resource without request body.");
                 } else {
                     // PUT : create new or overwrite existing property.
-                    tmpFile = File.createTempFile(TMP_PREFIX + memberName, null, null);
+                    tmpFile = File.createTempFile(TMP_PREFIX + Text.escape(memberName), null,
null);
                     FileOutputStream out = new FileOutputStream(tmpFile);
                     IOUtil.spool(in, out);
                     out.close();



Mime
View raw message