[jira] Created: (SLING-528) ServletException on request for synthtic resource

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SLING-528) ServletException on request for synthtic resource

Robert Munteanu (Jira)
ServletException on request for synthtic resource
-------------------------------------------------

                 Key: SLING-528
                 URL: https://issues.apache.org/jira/browse/SLING-528
             Project: Sling
          Issue Type: Bug
          Components: Servlets Get
            Reporter: christian


Have a Resource at path "/synthetic"
Requesting this resource SlingDefaultGetServlet throws an ServletException with the message
"path=/synthetic does not adapt to a Node or a Property".

This is thrown by the PlainTextRendererSerlvet, which expects a JCR Resource.
I would suggest to fail gracefully. Like rendering the ResourceMetadata




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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SLING-528) ServletException on request for synthtic resource

Robert Munteanu (Jira)

    [ https://issues.apache.org/jira/browse/SLING-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604520#action_12604520 ]

Felix Meschberger commented on SLING-528:
-----------------------------------------

You mean, there is a non-JCR resource at "/synthetic" ?

I agree, that this should handle the request more gracefully.

> ServletException on request for synthtic resource
> -------------------------------------------------
>
>                 Key: SLING-528
>                 URL: https://issues.apache.org/jira/browse/SLING-528
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: christian
>
> Have a Resource at path "/synthetic"
> Requesting this resource SlingDefaultGetServlet throws an ServletException with the message
> "path=/synthetic does not adapt to a Node or a Property".
> This is thrown by the PlainTextRendererSerlvet, which expects a JCR Resource.
> I would suggest to fail gracefully. Like rendering the ResourceMetadata

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


Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (SLING-528) ServletException on request for synthtic resource

Robert Munteanu (Jira)
In reply to this post by Robert Munteanu (Jira)

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

Felix Meschberger reassigned SLING-528:
---------------------------------------

    Assignee: Felix Meschberger

> ServletException on request for synthtic resource
> -------------------------------------------------
>
>                 Key: SLING-528
>                 URL: https://issues.apache.org/jira/browse/SLING-528
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: christian
>            Assignee: Felix Meschberger
>
> Have a Resource at path "/synthetic"
> Requesting this resource SlingDefaultGetServlet throws an ServletException with the message
> "path=/synthetic does not adapt to a Node or a Property".
> This is thrown by the PlainTextRendererSerlvet, which expects a JCR Resource.
> I would suggest to fail gracefully. Like rendering the ResourceMetadata

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SLING-528) ServletException on request for synthtic resource

Robert Munteanu (Jira)
In reply to this post by Robert Munteanu (Jira)

    [ https://issues.apache.org/jira/browse/SLING-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604544#action_12604544 ]

christian commented on SLING-528:
---------------------------------

Ah sorry, only statet the failing resource type within the title.
Yes at path "/synthetic" theres is a Resource of type "SyntheticResource"

> ServletException on request for synthtic resource
> -------------------------------------------------
>
>                 Key: SLING-528
>                 URL: https://issues.apache.org/jira/browse/SLING-528
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: christian
>            Assignee: Felix Meschberger
>
> Have a Resource at path "/synthetic"
> Requesting this resource SlingDefaultGetServlet throws an ServletException with the message
> "path=/synthetic does not adapt to a Node or a Property".
> This is thrown by the PlainTextRendererSerlvet, which expects a JCR Resource.
> I would suggest to fail gracefully. Like rendering the ResourceMetadata

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


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SLING-528) ServletException on request for synthtic resource

Robert Munteanu (Jira)
In reply to this post by Robert Munteanu (Jira)

    [ https://issues.apache.org/jira/browse/SLING-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604568#action_12604568 ]

Felix Meschberger commented on SLING-528:
-----------------------------------------

Ehrm, a SyntheticResource does not really exist and is an "include" artifact. But probably, we should do better in this case than just throwing a ServletException, anyway .

> ServletException on request for synthtic resource
> -------------------------------------------------
>
>                 Key: SLING-528
>                 URL: https://issues.apache.org/jira/browse/SLING-528
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: christian
>            Assignee: Felix Meschberger
>
> Have a Resource at path "/synthetic"
> Requesting this resource SlingDefaultGetServlet throws an ServletException with the message
> "path=/synthetic does not adapt to a Node or a Property".
> This is thrown by the PlainTextRendererSerlvet, which expects a JCR Resource.
> I would suggest to fail gracefully. Like rendering the ResourceMetadata

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


Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (SLING-528) ServletException on request for synthtic resource

Robert Munteanu (Jira)
In reply to this post by Robert Munteanu (Jira)

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

Carsten Ziegeler closed SLING-528.
----------------------------------

       Resolution: Won't Fix
    Fix Version/s: Servlets Get 2.0.4

I'll close this as the behaviour in the get servlets has changed. If there is still an issue please open a new bug.

> ServletException on request for synthtic resource
> -------------------------------------------------
>
>                 Key: SLING-528
>                 URL: https://issues.apache.org/jira/browse/SLING-528
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: christian
>            Assignee: Felix Meschberger
>             Fix For: Servlets Get 2.0.4
>
>
> Have a Resource at path "/synthetic"
> Requesting this resource SlingDefaultGetServlet throws an ServletException with the message
> "path=/synthetic does not adapt to a Node or a Property".
> This is thrown by the PlainTextRendererSerlvet, which expects a JCR Resource.
> I would suggest to fail gracefully. Like rendering the ResourceMetadata

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