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

Document.DeleteRelation not removing relation when "outgoing" parameter is "false"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.1
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Rest API

      Description

      Steps to reproduce

        • Document.AddRelation
          • Input: <FROM document path>, e.g. /default-domain/workspaces/Sample Content/Pictures/Winter.jpg
          • object: <TO document id>, e.g. 29cd982b-fcd4-4679-82db-921cdd737a80
          • predicate: http://purl.org/dc/terms/ConformsTo
          • outgoing: cheked
        • Document.AddRelation
          • Input: <FROM document path>, e.g. /default-domain/workspaces/Sample Content/Pictures/Winter.jpg
          • object: <TO document id>, e.g. 29cd982b-fcd4-4679-82db-921cdd737a80
          • predicate: http://purl.org/dc/terms/ConformsTo
          • outgoing: uncheked
      • Both relations are added correctly
      • Remove both relations using Document.DeleteRelation end point
        • Document.DeleteRelation
          • Input: <FROM document path>, e.g. /default-domain/workspaces/Sample Content/Pictures/Winter.jpg
          • object: <TO document id>, e.g. 29cd982b-fcd4-4679-82db-921cdd737a80
          • predicate: http://purl.org/dc/terms/ConformsTo
          • outgoing: cheked
        • Document.DeleteRelation
          • Input: <FROM document path>, e.g. /default-domain/workspaces/Sample Content/Pictures/Winter.jpg
          • object: <TO document id>, e.g. 29cd982b-fcd4-4679-82db-921cdd737a80
          • predicate: http://purl.org/dc/terms/ConformsTo
          • outgoing: uncheked

      Both operations return a successful result but the second operation doesn't remove the relation.

      This operation is NOT removing the relation:

      • Document.DeleteRelation
        • Input: <FROM document path>, e.g. /default-domain/workspaces/Sample Content/Pictures/Winter.jpg
        • object: <TO document id>, e.g. 29cd982b-fcd4-4679-82db-921cdd737a80
        • predicate: http://purl.org/dc/terms/ConformsTo
        • outgoing: uncheked

      You can check that the relaion has not been deleted using Document.GetLinkedDocuments

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: