Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-644

NullPointerException when RepositoryInfo is initialized without supportedPermission in Acl Capabilities

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • OpenCMIS 0.8.0
    • OpenCMIS 0.9.0
    • opencmis-commons
    • None

    Description

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

      AclCapabilitiesDataImpl aclCaps = new AclCapabilitiesDataImpl();
              aclCaps.setAclPropagation(AclPropagation.REPOSITORYDETERMINED);
              aclCaps.setPermissionDefinitionData(null);
              aclCaps.setPermissionMappingData(null);
              repoInfo.setAclCapabilities(aclCaps);
      
      
      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)
      

      Attachments

        Activity

          People

            fmui Florian Müller
            boulayj Julien Boulay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: