DELETE for rest/api/latest/queue resource does not work

XMLWordPrintable

    • Type: Bug
    • Resolution: Done
    • Priority: Low
    • 5.14.0
    • Affects Version/s: None
    • Component/s: REST API
    • Severity 3 - Minor

      e.g.

      http://localhost:8085/bamboo/rest/api/latest/queue/WOO-LONG-7
      

      and

      http://localhost:8085/bamboo/rest/api/latest/queue/WOO-LONG-7
      

      The current errors are that "The specified HTTP method is not allowed for the requested resource."

      There are two problems

      • Currently there are conflicting endpoints. The pattern differences between the PUT and DELETE endpoints cause them to create different matching rules, and the above urls match both, unfortunately it is the PUT endpoint which ends up trying to resolve the request.
      • Even when resolving the above issue this rest end point does not work as expected. Passing a job key will not match the pattern expected and the request will be rejected. Passing a plan key will match and tell you it worked, but actually did nothing.

            Assignee:
            Alexey Chystoprudov
            Reporter:
            bmccoy
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: