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

MongoDB cannot remove live proxy target in subfolder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 7.10-HF04, 8.2
    • Component/s: Core MongoDB

      Description

      Given the document and live proxy:

      • /folder/doc
      • /folder/proxy -> doc

      Trying to remove the folder fails on MongoDB with:

      java.lang.ClassCastException: com.mongodb.BasicDBList cannot be cast to [Ljava.lang.Object;
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.queryKeyValueArray(MongoDBRepository.java:651)
      	at org.nuxeo.ecm.core.storage.dbs.DBSTransactionState.getSubTree(DBSTransactionState.java:461)
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.remove(DBSSession.java:803)
      	at org.nuxeo.ecm.core.storage.dbs.DBSDocument.remove(DBSDocument.java:666)
      	at org.nuxeo.ecm.core.api.AbstractSession.removeNotifyOneDoc(AbstractSession.java:1333)
      	at org.nuxeo.ecm.core.api.AbstractSession.removeDocument(AbstractSession.java:1303)
      	at org.nuxeo.ecm.core.api.AbstractSession.removeDocument(AbstractSession.java:1293)
      	at org.nuxeo.ecm.core.TestSQLRepositoryVersioning.testRemoveProxyTarget(TestSQLRepositoryVersioning.java:1073)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: