WordCurlyQuotesRequestWrapper breaks OAuth signing process

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • 4.0.2
    • Affects Version/s: 4.0
    • Component/s: None
    • 4

      If you make a GET request such as

      http://jira.atlassian.com/rest/gadget/1.0/pickers/projectsAndFilters?fieldName=quickfind&query=%20

      Tomcat will actually serve up the parameters as
      fieldName="quickfind"
      query="" (EMPTYSTRING).

      This means any attempt to use query parameters which consist only of space characters (such as typing just the space key in the project picker) will have an invalid OAuth signature as it is expected to have a value of %20.
      This then causes the token to be revoked (joy!) and pretty much prevents the gadget from working after that.

      Possibly the fix for this should be in our OAuth infrastructure, but it would appear the REST api is going to need to have a way to deal with this situation anyway so I have created this issue against JIRA.

              Assignee:
              Unassigned
              Reporter:
              Andrew Lynch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: