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

Update Smoke Test: always fail with empty properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.10.0
    • OpenCMIS 0.12.0
    • opencmis-tck
    • None

    Description

      Update a docuemnt with an empty set of properties is tried as part of the Update Smoke Test. This is always failing because the OpenCMIS client is checking that the set ois not empty. So the exception is always thrown in the OpenCMIS client, not in the server.

      Update Smoke Test code
      org.apache.chemistry.opencmis.tck.tests.crud.UpdateSmokeTest.updateDocument(Session, Folder)
      	...
              // update nothing
              try {
                  properties = new HashMap<String, Object>();
                  doc2.updateProperties(properties, false);
              } catch (Exception e) {
                  addResult(createResult(WARNING,
                          "updateProperties without property changes returned an error: " + e.getMessage(), e, false));
              }
      	...
      
      OpenCMIS client code
      		
      org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(Map<String, ?>, boolean)
      	...
              if (properties == null || properties.isEmpty()) {
                  throw new IllegalArgumentException("Properties must not be empty!");
              }
      	...
      

      Attachments

        Activity

          People

            fmui Florian Müller
            aquiporras Jaime Porras López
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: