[JIRAALIGN-2667] API 2.0 - Update Features using PATCH fails if any of "Test Categories" are checked

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 10.89
    • Affects Version/s: 10.85
    • Component/s: REST API
    • None
    • 1
    • Severity 3 - Minor
    • Breakers - VH5
    • None

      Issue Summary

      The endpoint Features will fail with an error similar to below if any of the "Test Categories" checkboxes on a Feature are checked.

      API: /rest/align/api/2/Features/<id> [PATCH]
      Body:

      [{"value":"ABC","path":"tags","op":"replace"}]
      

      Error:

      Cannot update feature with id 9999. Value for testCategoryId with id 3 is invalid.
      

      Steps to Reproduce

      1. Create a Feature
      2. Check one of the "Test Categories" boxes
      3. Using the API 2.0 try to update the Feature
      4. The error message will show

      Expected Results

      API saves the Feature updates

      Actual Results

      API doesn't save the updates and throws an error.

      Workaround

      None available at the moment.

              Assignee:
              Tony D. (Inactive)
              Reporter:
              Alessandro Macedo
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: