incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r683241 - /incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
Date Wed, 06 Aug 2008 12:12:51 GMT
Author: cziegeler
Date: Wed Aug  6 05:12:50 2008
New Revision: 683241

URL: http://svn.apache.org/viewvc?rev=683241&view=rev
Log:
SLING-603: Remove current path prefix when creating absolute keys.

Modified:
    incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java

Modified: incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java?rev=683241&r1=683240&r2=683241&view=diff
==============================================================================
--- incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
(original)
+++ incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
Wed Aug  6 05:12:50 2008
@@ -541,7 +541,11 @@
      */
     private String toPropertyPath(String paramName, HtmlResponse response) {
         if (!paramName.startsWith("/")) {
-            paramName = response.getPath() + "/" + paramName;
+            if ( paramName.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_CURRENT) )
{
+                paramName = response.getPath() + paramName.substring(1);
+            } else {
+                paramName = response.getPath() + "/" + paramName;
+            }
         }
 
         return paramName;



Mime
View raw message