You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Julien Boulay (JIRA)" <ji...@apache.org> on 2013/04/11 23:37:17 UTC

[jira] [Created] (CMIS-644) NullPointerException when RepositoryInfo is initialized without supportedPermission in Acl Capabilities

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