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

Fix detection of trashed state and browsing trashed folderish

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2
    • Fix Version/s: 10.3
    • Component/s: Core, Web UI

      Description

      Since NXP-23798 and NXP-24031, a new property is available for trashed state (former lifecycle deleted).
      It seems that WebUI doesn't correctly leverage the new property.

      Documents having isTrashed=false and state=deleted are detected as trashed by WebUI, this shouldn't be the case. As long as the new property isTrashed is present, WebUI shouldn't read the former lifecycle state.

      Json of such a document:

      {
      	"entity-type": "document",
      	"repository": "default",
      	"uid": "....",
      	"path": "/default-domain/workspaces/test/test",
      	"type": "Note",
      	"state": "deleted",
      	"parentRef": "...",
      	"isCheckedOut": false,
      	"isVersion": false,
      	"isProxy": false,
      	"changeToken": "7-0",
      	"isTrashed": false,
      	"title": "TEST",
      	"lastModified": "2018-09-01T18:59:45.086Z",
      	"properties": {
              ...
              }
      }
      

      Note: NXP-25761 should fix such cases after a migration, but having a document in deleted state and trashed state is still possible.

      Moreover, another issue is that when browsing a trashed folder, you cannot see its content.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 1 hour
                  1d 1h