chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Boulay (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-644) NullPointerException when RepositoryInfo is initialized without supportedPermission in Acl Capabilities
Date Thu, 11 Apr 2013 21:37:17 GMT
Julien Boulay created CMIS-644:
----------------------------------

             Summary: NullPointerException when RepositoryInfo is initialized without supportedPermission
in Acl Capabilities
                 Key: CMIS-644
                 URL: https://issues.apache.org/jira/browse/CMIS-644
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-commons
    Affects Versions: OpenCMIS 0.8.0
            Reporter: Julien Boulay
            Priority: Minor


When creating a CMIS server and implementing RepositoryInfo without initializing supportedPermission
on AclCapabilities, the JSONConverter generates NullPointerException.

{code:java}
AclCapabilitiesDataImpl aclCaps = new AclCapabilitiesDataImpl();
        aclCaps.setAclPropagation(AclPropagation.REPOSITORYDETERMINED);
        aclCaps.setPermissionDefinitionData(null);
        aclCaps.setPermissionMappingData(null);
        repoInfo.setAclCapabilities(aclCaps);

{code}

{code}
java.lang.NullPointerException
        at org.apache.chemistry.opencmis.commons.impl.JSONConverter.convert(JSONConverter.java:246)
        at org.apache.chemistry.opencmis.commons.impl.JSONConverter.convert(JSONConverter.java:180)
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message