Great, I'm not crazy - this stopped working for me too.  It was working about 
two weeks ago.

Rory Douglas
Senior Principal Consultant
Oracle Consulting
(sent from my Blackberry)

----------Original Message----------

From: "Carsten Ziegeler (JIRA)" <[EMAIL PROTECTED]>
Sent: Wed, August 06, 2008 5:13 AM
To: [email protected]
Subject: [jira] Created: (SLING-603) Primary node type is not detected


Primary node type is not detected
---------------------------------

                 Key: SLING-603
                 URL: https://issues.apache.org/jira/browse/SLING-603
             Project: Sling
          Issue Type: Bug
          Components: Servlets Post
    Affects Versions: Servlets Post 2.0.2
            Reporter: Carsten Ziegeler
            Assignee: Carsten Ziegeler
             Fix For: Servlets Post 2.0.4


If a POST is send to a new node like /sling/mynode/something with a request 
parameter ./jcr:primaryNode=my:nodetype
then this node type is not applied to the newly created new "something".

The problem is in the ModifyOperation class. Each request property name is made 
absolute, so the final property name becomes:
/sling/mynode/something/./jcr:primaryNode  (method toPropertyPath)

The getPrimaryType() method then searches for 
/sling/mynode/something/jcr:primaryNode which is logically the same path but a 
different key! Therefore the request parameter is never found.

I've no idea why this is not working anymore as it used to.

I'll change the toPropertyPath method to check for the prefix ./ and remove it 
when creating the path.
But I'll leave this bug open as there might be a better solution.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to