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

[jira] Updated: (SLING-668) SlingPostServlet fails with NPE when posting to root node

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

Alexander Klimetschek updated SLING-668:
----------------------------------------

    Attachment: SLING-668.patch

Patch that solves the issue by not setting the parent location when the parent path is null.

> SlingPostServlet fails with NPE when posting to root node
> ---------------------------------------------------------
>
>                 Key: SLING-668
>                 URL: https://issues.apache.org/jira/browse/SLING-668
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Post
>    Affects Versions: Servlets Post 2.0.2
>            Reporter: Alexander Klimetschek
>            Priority: Minor
>         Attachments: SLING-668.patch
>
>
> If a POST to / is handled by the SlingPostServlet, it will fail with an NPE because AbstractSlingPostOperation tries to externalize the parent path (which is null for the root node) for setting the parent location of the response.

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