Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-1008

Value setting though REST_URL_POSTFIX needs to be encoded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1
    • None
    • Core
    • None
    • Patch

    Description

      REST_URL_POSTFIX value is added at the end of URL when sending request out of Synapse. Currently if user sets a value with special characters (eg: space) it's not getting encoded. But according to REC-3986 [1], URL needs to be encoded. With this fix;

      <property name="REST_URL_POSTFIX" value="foo bar " scope="axis2"/>
      

      will result,

      GET /stockquote/foo%20bar%20 HTTP/1.1[\r][\n]
      

      [1] [RFC 3986] Uniform Resource Identifier (URI): Generic Syntax - http://tools.ietf.org/html/rfc3986

      Thanks,
      Buddhima

      Attachments

        1. url_post-fix.diff
          2 kB
          Buddhima Wijeweera

        Activity

          People

            hiranya Hiranya Kasub Jayathilaka
            buddhima Buddhima Wijeweera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: