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

UpdateConflict Exception is translated to ConstraintException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • OpenCMIS 0.10.0
    • None
    • None
    • WIN

    Description

      I run tck using latest workbench chemistry-opencmis-workbench-1.0.0, changetoken test didn't pass.

      Change Token Test (ATOMPUB) (0 ms)Creates a document and a folder and updates them with an outdated change token.
      WARNING: New document object spec compliance (AbstractSessionTest.java:444) [stacktrace]
      WARNING: Content MIME types don't match! (AbstractSessionTest.java:1364) [stacktrace]
      INFO: expected: text/plain / actual: text/plain;charset=utf-8
      UNEXPECTED_EXCEPTION: Exception: org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: Conflict (AbstractSessionTest.java:163) [stacktrace] [exception details].

      Our cmis server returns the update conflict exception in the http response.

      HTTP/1.1 409 Conflict
      Content-Type: text/plain;charset=utf-8
      Content-Language: en-US
      Connection: Close
      Date: Tue, 11 Feb 2014 06:14:07 GMT
      Server: WebSphere Application Server/7.0
      Content-Length: 4196

      com.ibm.ecm.cmis.exceptions.UpdateConflictException: CIL2200: The object cannot be updated because the object is no longer the current version.
      Explanation: A newer version of the object exists on the repository.
      Action: Specify the current version of the object and try again.

      com.ibm.ecm.cmis.exceptions.UpdateConflictException: CIL2200: The object cannot be updated because the object is no longer the current version.
      Explanation: A newer version of the object exists on the repository.
      Action: Specify the current version of the object and try again.

      I see the AbstractAtomPusService.convertStatusCode() convert 409 to CmisConstraintException instead of updateConflict exception.

      Attachments

        Activity

          People

            fmui Florian Müller
            lixuhua@cn.ibm.com James Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: