incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1060685 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java
Date Wed, 19 Jan 2011 05:46:06 GMT
Author: justin
Date: Wed Jan 19 05:46:05 2011
New Revision: 1060685

URL: http://svn.apache.org/viewvc?rev=1060685&view=rev
Log:
SLING-1937 - externalizing response locations

Modified:
    sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java

Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java?rev=1060685&r1=1060684&r2=1060685&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java
(original)
+++ sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java
Wed Jan 19 05:46:05 2011
@@ -208,12 +208,12 @@ public class ImportOperation extends Abs
                 Modification modification = changes.get(0);
                 if (modification.getType() == ModificationType.CREATE) {
                 	String importedPath = modification.getSource();
-                	response.setLocation(importedPath);
+                	response.setLocation(externalizePath(request, importedPath));
                 	response.setPath(importedPath);
                 	int lastSlashIndex = importedPath.lastIndexOf('/');
                 	if (lastSlashIndex != -1) {
                 		String parentPath = importedPath.substring(0, lastSlashIndex);
-                		response.setParentLocation(parentPath);
+                		response.setParentLocation(externalizePath(request, parentPath));
                 	}
                 }
             }



Mime
View raw message