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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF55
    • Component/s: Relations
    • Release Notes Summary:
      The Document.DeleteRelation operation is fixed.
    • Backlog priority:
      800

      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:
                0 Vote for this issue
                Watchers:
                2 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 - 30 minutes
                  30m