You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2016/02/19 09:01:18 UTC

[jira] [Closed] (SLING-5491) JcrResourceProvider#delete should not cast Resource to JcrItemResource

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

Carsten Ziegeler closed SLING-5491.
-----------------------------------

> JcrResourceProvider#delete should not cast Resource to JcrItemResource
> ----------------------------------------------------------------------
>
>                 Key: SLING-5491
>                 URL: https://issues.apache.org/jira/browse/SLING-5491
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: JCR Resource 2.7.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Resource 2.7.2
>
>
> The code at
> https://github.com/apache/sling/blob/f4751528432eca4e54e3161d501b43b605f92ae7/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java#l440
> is directly casting to a JcrItemResource - if e.g. a wrapped resource is passed in, this fails



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)