You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/07/31 00:09:18 UTC

[jira] Updated: (SLING-1091) POST to URL ending in /* with :name and no :nameHint should fail if named node exists

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

Felix Meschberger updated SLING-1091:
-------------------------------------

    Affects Version/s: Launchpad Bundles 6
                           (was: Launchpad App 6)

> POST to URL ending in /* with :name and no :nameHint should fail if named node exists
> -------------------------------------------------------------------------------------
>
>                 Key: SLING-1091
>                 URL: https://issues.apache.org/jira/browse/SLING-1091
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>    Affects Versions: Launchpad Bundles 6
>         Environment: latest debian, 5.0 lenny?
>            Reporter: Peter Chiochetti
>            Assignee: Eric Norman
>            Priority: Minor
>
> The "Algorithm for Node Name Creation" does not behave as documented here: "http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html#ManipulatingContent-TheSlingPostServlet(servlets.post)-AlgorithmforNodeNameCreation"
> It adds numbers to nodenames, even though a ":name" form field is supplied, i.e. it performs both steps one and four, while they are said to happen "otherwise".
> Steps to reproduce (this happens also when only the ":name" field gets supplied) - the two last curl commands should make the POST servlet fail:
> curl -F"title=NewNode" http://.../content/N
> ==> Content created /content/N
> curl -F"title=UpdateNode" http://.../content/N
> ==> Content modified /content/N
> curl -F"title=NewNode" -F":nameHint=N" http://.../content/*
> ==> Content created /content/n
> curl -F"title=Bug!" -F":name=N" http://.../content/*
> ==> Content created /content/N_0 
> curl -F":name=N" http://.../content/*
> ==> Content created /content/N_1

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