Uploaded image for project: 'ZZZ-WSO2 ESB'
  1. ZZZ-WSO2 ESB
  2. ESBJAVA-1389

New line characters get appended to transport properties

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0 M5
    • Component/s: None
    • Labels:
      None

      Description

      When we set Authorization transport headers, a new line character get appended to the property value. Please see the following message trace from tcpmon.

      config:
      <property name="Authorization" expression="fn:concat('Basic ', base64Encode('foo:bar'))" scope="transport"/>

      HTTP GET:
      ---------------
      GET /WebAPI/Services/BasicService/foo/bar HTTP/1.1
      Content-Type: application/x-www-form-urlencoded; charset=UTF-8;action="query";
      Accept-Encoding: gzip,deflate
      Authorization: Basic xxxxxxxxxxxx

      Host: 192.168.0.20:6060
      SOAPAction: query
      Connection: Keep-Alive
      User-Agent: Synapse-HttpComponents-NIO

        Attachments

          Activity

            People

            • Assignee:
              isuruu@wso2.com Isuru Udana Loku Narangoda
              Reporter:
              kasun@wso2.com Kasun Indrasiri
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: