PATCH API request to cancel/delete a work items returns a success/204 when it should fail

XMLWordPrintable

      Issue Summary

      PATCH API request to cancel a work item shows a success/204 message when it should fail (it's read-only according to the API documentation.

      Steps to Reproduce

       

      1. Send a PATCH request to either cancel work item
        1. URL - https://|https:]hostname.com/rest/align/api/2/Features/id
        2. Request body to Cancel work item 
          [{
          "op": "replace",
          "path": "/canceledObject",
          "value": 1
          }
          ]
          
      1. Received HTTP 204 No Content
      2. Check the work item from UI - No change to Cancel flag

      Expected Results

      An error message

      Actual Results

      The work item is unchanged. API request received HTTP 204 with no response body. 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Andrew Zhang
            Reporter:
            Andrew Zhang
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: