Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-1710

We must change the REST API to get templates by scope

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Release 5.4.3
    • None
    • None
    • UNCOVERED

    Description

      Xporter should have a different approach in order to get templates by Scope.
      Until now, Xporter uses the following request to get all the Structure templates:

      http://localhost:8080/rest/jiraxporter/1.0/templates/byScope/[7]
      

      And we must have to change the request to use numbers instead of an array.
      For example:

      http://localhost:8080/rest/jiraxporter/1.0/templates/byScope/7
      

      Please, be aware we also need to check this solution for Scheduled Reports.

      In order to reproduce this error:
      Please, set up an environment using a simple reverse proxy (nginx) (Atlassian Documentation).
      After this, please, try to get all the templates by scope using the REST API:

      http://localhost:8080/rest/jiraxporter/1.0/templates/byScope/[7]
      

      Expected Result:

      java.lang.IllegalArgumentException: Illegal character in path at index 68
      

      Attachments

        Issue Links

          Activity

            People

              rmbr Rui Rodrigues
              afro Andre Fernandes Rodrigues
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: