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

CoreSession#removeDocuments should handle proxy with null target

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2021.x, 2023.x
    • Component/s: Core
    • Tags:
    • Team:
      PLATFORM
    • Sprint:
      nxplatform next
    • Story Points:
      3

      Description

      When trying to remove a proxy with a null target this method throws a DocumentNotFoundException which prevent to remove the proxy.

      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 
      

      Note that as a temporary workaround the TrashAction is catching this exception to avoid a failure.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bdelbosc Benoit Delbosc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: