Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-725

pni_parse_url does not properly handle Base64 in URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • proton-0.8
    • proton-0.8
    • proton-c
    • None

    Description

      Our provisioning system provides us with a password in Base64 format, which can actually contain a slash character(s): '/'

      This breaks the ability of pni_parse_url() to handle such URLs.

      Example of URL string on which the parsing fails:

      amqps://0ABCDEF1:/ExlxtfN+UxfExRxuwxIeFxeFzXLxxg+fxPx3x8xxU=@myself.servicebus.windows.net/out/txxxx/Subscriptions/syyyy

      Instead of filling up the "user" and "password" variables, it puts the actual contents to "host" and "port".

      With the actual code it is a correct behavior - and it is also mentioned in the comment right in front of the pni_parse_url() function.
      Yet I would need an update to the functionality, to handle the Base64 in password properly (anyone on Azure platform might run to this issue, soon or later).

      Note. I'm running the SVN rev 1633464 (latest trunk of 10/23/2014) version of ProtonC (C / Linux).

      Thanks for looking at this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            E528527 German Shepherd (PrE)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: