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

[c] pn_transport_set_server() must be called before pn_sasl()

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: proton-c-0.24.0
    • Fix Version/s: None
    • Component/s: proton-c
    • Labels:
      None

      Description

      PROTON-1884 shows that you must call pn_transport_set_server() before calling pn_sasl(), otherwise SASL is configured in client mode, and is not updated to server mode by the call to pn_transport_set_server().

      This can easily lead to confusing bugs where the SASL handshake fails for no obvious reason. Instead set_server() should update the SASL object (if it has already been created) to use server mode.

      When this issue is fixed, the example and API documentation updates of PROTON-1884 can be restored to their original simpler form.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                astitcher Andrew Stitcher
                Reporter:
                aconway Alan Conway
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: