You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2008/08/08 08:28:44 UTC

[jira] Closed: (SLING-603) Primary node type is not detected

     [ https://issues.apache.org/jira/browse/SLING-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed SLING-603.
----------------------------------

    Resolution: Fixed

> 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.