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:29:21 UTC

[jira] [Created] (SLING-3247) ClassCastException may be thrown if Session is not a JackrabbitSession

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)