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 2013/11/17 02:31:20 UTC
[jira] [Resolved] (SLING-3247) ClassCastException may be thrown if
Session is not a JackrabbitSession
[ https://issues.apache.org/jira/browse/SLING-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-3247.
--------------------------------------
Resolution: Fixed
Fixed in Rev. 1542629
> ClassCastException may be thrown if Session is not a JackrabbitSession
> ----------------------------------------------------------------------
>
> Key: SLING-3247
> URL: https://issues.apache.org/jira/browse/SLING-3247
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Affects Versions: Tenant 1.0.0
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: Tenant 1.0.2
>
>
> When mapping a ResourceResolver to a tenant and the Session backing the ResourceResolver is not a JackrabbitSession, the TenantAdapter.getAdapter(Session, Class<?>) method throws a ClassCastException.
> Instead of checking for (session != null) at the beginning of the method we should actually check for (session instanceof JackrabbitSession).
--
This message was sent by Atlassian JIRA
(v6.1#6144)