Felix Meschberger created SLING-3247:
----------------------------------------

             Summary: 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)

Reply via email to