You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ju...@apache.org on 2011/01/19 06:46:06 UTC

svn commit: r1060685 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ImportOperation.java

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));
                 	}
                 }
             }