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

TrashAction should not fail on orphan proxies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.11, 2021.54
    • Component/s: Core

      Description

      When a proxy has a null target, it raises a DocumentNotFound exception this case must be handled instead of creating a stream failure:

      org.nuxeo.ecm.core.api.DocumentNotFoundException: Proxy has null target for doc: 79e6c81c-9746-4aa6-9d2d-8d3d60143f82org.nuxeo.ecm.core.api.DocumentNotFoundException: Proxy has null target for doc: 79e6c81c-9746-4aa6-9d2d-8d3d60143f82 at org.nuxeo.ecm.core.storage.dbs.DBSSession.getDocument(DBSSession.java:461) ~[nuxeo-core-storage-dbs-2021.48.10.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSSession.getDocument(DBSSession.java:440) ~[nuxeo-core-storage-dbs-2021.48.10.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSSession.getDocument(DBSSession.java:422) ~[nuxeo-core-storage-dbs-2021.48.10.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSSession.getDocumentByUUID(DBSSession.java:402) ~[nuxeo-core-storage-dbs-2021.48.10.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:385) ~[nuxeo-core-2021.48.10.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.removeDocuments(AbstractSession.java:1668) ~[nuxeo-core-2021.48.10.jar:?] at org.nuxeo.ecm.core.bulk.action.TrashAction$TrashComputation.removeProxies(TrashAction.java:110) ~[nuxeo-core-bulk-2021.48.10.jar:?] at org.nuxeo.ecm.core.bulk.action.TrashAction$TrashComputation.compute(TrashAction.java:96) ~[nuxeo-core-bulk-2021.48.10.jar:?] at org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation.lambda$processBatchOfDocuments$3(AbstractBulkComputation.java:151) ~[nuxeo-core-bulk-2021.48.10.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.lambda$runInTransaction$4(TransactionHelper.java:642) ~[nuxeo-runtime-jtajca-2021.48.10.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:675) ~[nuxeo-runtime-jtajca-2021.48.10.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:642) ~[nuxeo-runtime-jtajca-2021.48.10.jar:?] at org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation.processBatchOfDocuments(AbstractBulkComputation.java:145) ~[nuxeo-core-bulk-2021.48.10.jar:?] at 
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: