Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16834

Development mode hot reload does not work well with CMIS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.1
    • Fix Version/s: QualifiedToSchedule
    • Component/s: CMIS, Core

      Description

      I'm accessing my Nuxeo server via CMIS using the Apache Chemistry Workbench. Development mode is enabled. Here is an example of the problem:

      • In Studio create document type, make sure it is not folderish.
      • Deploy the project.
      • Create some of these documents; don't version them.
      • Query via CMIS; this should not return any docs because there are no versions.
      • In Studio add the "folderish" facet to the new document type.
      • Update the server.
      • Query via CMIS; this should return the docs you just created because folderish types are returned as they lack versioning.
      • If you restart the server the documents are returned as expected.

      Also if you attempt to browse via the WorkBench and select one of these documents you get an error, here is the log.

      > 11:16:50 ERROR hemistry.opencmis.workbench.ClientHelper: CmisRuntimeException: Repository didn't return cmis:path!
      org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Repository didn't return cmis:path!
      	at org.apache.chemistry.opencmis.client.runtime.FolderImpl.getPath(FolderImpl.java:423)
      	at org.apache.chemistry.opencmis.workbench.details.ObjectPanel.objectLoaded(ObjectPanel.java:149)
      	at org.apache.chemistry.opencmis.workbench.model.ClientModel.setCurrentObject(ClientModel.java:413)
      	at org.apache.chemistry.opencmis.workbench.model.ClientModel.loadObject(ClientModel.java:214)
      	at org.apache.chemistry.opencmis.workbench.FolderTable$2.valueChanged(FolderTable.java:119)
      	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
      	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
      	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
      	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
      	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
      	at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
      	at javax.swing.JTable.changeSelectionModel(JTable.java:2389)
      	at javax.swing.JTable.changeSelection(JTable.java:2458)
      	at javax.swing.plaf.basic.BasicTableUI$Handler.adjustSelection(BasicTableUI.java:1115)
      > 11:16:50 ERROR hemistry.opencmis.workbench.ClientHelper: Error code: 0
      

      Once again if you restart the server things work as expected.

      Note: I don't know if this really has anything to do with CMIS so I won't choose a specific component.

      If you'd like you can use the Studio project here:

      https://connect.nuxeo.com/nuxeo/site/studio/ide?project=jfletcher-sandbox-7-1

      The type that I created is called "MaybeFolderish".

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: