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

Fix deletion of versions when permanently deleting the parent folder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 10.10, 2021.0, 2023.x
    • Fix Version/s: None
    • Component/s: Core
    • Backlog priority:
      700
    • Sprint:
      nxplatform #75, nxplatform #76
    • Story Points:
      1

      Description

      How to reproduce:

      • create a folder named Folder_XXX and create a File document named XXX in it
      • create a version for the File document named XXX
      • The following search returns 2 results, the live document and the version:
        curl -su Administrator:Administrator -XPOST -H'Content-Type:application/json' \
        http://localhost:8080/nuxeo/api/v1/automation/Repository.Query \
        -d "{ \"params\": { \"query\":\"SELECT * FROM Document WHERE ecm:mixinType != 'HiddenInNavigation' AND dc:title = 'XXX'\" }}" \
        | jq
        
      • permanently delete folder Folder_XXX
      • execute the same search:
        curl -su Administrator:Administrator -XPOST -H'Content-Type:application/json' \
        http://localhost:8080/nuxeo/api/v1/automation/Repository.Query \
        -d "{ \"params\": { \"query\":\"SELECT * FROM Document WHERE ecm:mixinType != 'HiddenInNavigation' AND dc:title = 'XXX'\" }}" \
        | jq
        

      Expected result: no document returned
      Actual result: the search returns the version

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: