Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-10846

The user can update the Test Run custom field via the Rest API, even without execution permission in a restricted workflow status.

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Xray DC 7.11.3
    • None
    • None
    • REST API

    • UNCOVERED

    Description

      Description
      The user can update the Test Run custom field via the Rest API, even without execution permission in a restricted workflow status.

      Pre-conditions

      1. Go to Admin settings >> Manage Apps >> Xray >> Miscellaneous >> Disallow Test executions with workflow status.
      2. Create a Test Run Custom field.

      How to reproduce

      1. Create a Test Execution.
      2. Add a Test to the Test Execution.
      3. Move the workflow status to the In progress(Disallowed status)
      4. Update the Test Run Custom field with REST API(/testrun/{id}/customfield/{customFieldId})

      Actual result/Attachments

      The user is able to update the Test Run custom field in a restricted workflow status.

      Expected result

      It should throw an error as below.

      Version

      • 7.11.3-j9

      Workaround

       

      Attachments

        1. image-2025-04-17-21-05-51-686.png
          67 kB
          Sandeep Gurram
        2. image-2025-04-17-21-12-21-432.png
          13 kB
          Sandeep Gurram
        3. image-2025-04-17-21-12-29-757.png
          13 kB
          Sandeep Gurram

        Activity

          People

            joana.fonseca Joana Fonseca
            sandeep.gurram Sandeep Gurram
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: