chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Assigned] (CMIS-644) NullPointerException when RepositoryInfo is initialized without supportedPermission in Acl Capabilities
Date Fri, 12 Apr 2013 07:33:16 GMT

     [ https://issues.apache.org/jira/browse/CMIS-644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Müller reassigned CMIS-644:
-----------------------------------

    Assignee: Florian Müller
    
> 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
>            Assignee: Florian Müller
>            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