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 2008/01/18 14:46:34 UTC
[jira] Resolved: (SLING-161) request to a repository property
throws ClassCastException
[ https://issues.apache.org/jira/browse/SLING-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-161.
-------------------------------------
Resolution: Fixed
Added a JcrPropertyResource and a Resource factory method to the JcrResourceResolver in Rev. 613159. The JcrResourceResolverFactoryImpl.getResource method now just forwards to this factory method.
> request to a repository property throws ClassCastException
> ----------------------------------------------------------
>
> Key: SLING-161
> URL: https://issues.apache.org/jira/browse/SLING-161
> Project: Sling
> Issue Type: Bug
> Reporter: Tobias Bocanegra
> Assignee: Felix Meschberger
>
> The node '/content/test/ contains a property named 'test':
> The requested URL /content/test/test.html resulted in an error in Sling Default Error Handler Servlet.
> Exception:
> java.lang.ClassCastException: org.apache.jackrabbit.core.PropertyImpl
> at org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource.(JcrNodeResource.java:77)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.getResource(JcrResourceResolverFactoryImpl.java:247)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.getResourceInternal(JcrResourceResolver.java:594)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.scanPath(JcrResourceResolver.java:575)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.transformURL(JcrResourceResolver.java:545)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:251)
> at org.apache.sling.jcr.resource.internal.JcrResourceResolver.resolve(JcrResourceResolver.java:103)
> at org.apache.sling.core.impl.request.RequestData.(RequestData.java:157)
> ....
> Suggest to ignore properties in resource resolution and interpret them as suffix. so the above should resolve to the resource at '/content/test'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.