incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r591018 - /incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/DefaultSlingServlet.java
Date Thu, 01 Nov 2007 14:10:42 GMT
Author: bdelacretaz
Date: Thu Nov  1 07:10:41 2007
New Revision: 591018

URL: http://svn.apache.org/viewvc?rev=591018&view=rev
Log:
SLING-28, CreateNodeTest failed

Modified:
    incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/DefaultSlingServlet.java

Modified: incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/DefaultSlingServlet.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/DefaultSlingServlet.java?rev=591018&r1=591017&r2=591018&view=diff
==============================================================================
--- incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/DefaultSlingServlet.java
(original)
+++ incubator/sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/DefaultSlingServlet.java
Thu Nov  1 07:10:41 2007
@@ -106,8 +106,8 @@
             // no Resource or if the Node that it points to already has child nodes,
             // we create a new node. Else we update the current node.
             if(current.hasNodes()) {
-                final String parentPath = current.getPath();
                 final RequestPathInfo pathInfo = req.getRequestPathInfo();
+                final String parentPath = pathInfo.getResourcePath();
                 final String newNodePath = (pathInfo.getSuffix() == null || pathInfo.getSuffix().length()
== 0)
                         ? String.valueOf(System.currentTimeMillis())
                         : pathInfo.getSuffix();



Mime
View raw message