[
https://issues.apache.org/jira/browse/SLING-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler closed SLING-3247.
-----------------------------------
> 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.2#6252)