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:26:44 UTC

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

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


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.


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

Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned SLING-668:
---------------------------------------

    Assignee: Felix Meschberger

> 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
>            Assignee: Felix Meschberger
>            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.


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

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved SLING-668.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: Servlets Post 2.0.4

Applied your patch in Rev. 699297. Thanks for providing it.

If this resolves your issue, please close this. Thanks.

> 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
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: Servlets Post 2.0.4
>
>         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.


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

Posted by "Alexander Klimetschek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Klimetschek closed SLING-668.
---------------------------------------


> 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
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: Servlets Post 2.0.4
>
>         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.