You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2013/04/12 09:33:16 UTC
[jira] [Assigned] (CMIS-644) NullPointerException when
RepositoryInfo is initialized without supportedPermission in Acl
Capabilities
[ 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