Michael Reinsch created PROTON-2581:
---------------------------------------

             Summary: user / password from URL are not unescaped
                 Key: PROTON-2581
                 URL: https://issues.apache.org/jira/browse/PROTON-2581
             Project: Qpid Proton
          Issue Type: Bug
          Components: ruby-binding
    Affects Versions: proton-c-0.37.0
            Reporter: Michael Reinsch
            Assignee: Alan Conway


The user / password section in a URL have to be escaped in case they contain 
special characters. But they are not unescaped when opening a connection.

See 
[https://github.com/apache/qpid-proton/blob/0c240d12a2ceca3e361a4c6efce86a984c316927/ruby/lib/core/container.rb#L126]
 

The fixed code would read something like this:
{code:java}
      if url.user || url.password        
        opts[:user] ||= CGI.unescape(url.user)
        opts[:password] ||= CGI.unescape(url.password)
      end {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to