Uploaded image for project: 'Qpid JMS'
  1. Qpid JMS
  2. QPIDJMS-435

Failover reconnection fails when using Azure Sas token authentication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.37.0
    • None
    • qpid-jms-client
    • None

    Description

      For authenticating connections with the Azure Service Bus we use sasl mechanism ANONYMOUS. After a connection is opened, before any other activity, we send a sas token to a special queue. This works fine as long as the connection is not remotely closed.

      When the connection is remotely closed it cannot be restored by the FailoverProvider because of recovery of an active session on the connection. When the session is recovered it starts listening on an unauthenticated connection.

      This also prevents re-authenticating the connection by sending the sas token again. See attached log.

      Is it possible to prevent the recovery of the session? We already moved the re-authentication after the try-with-resources statement where the session is created. This way we assumed the session would be closed, preventing recovery.

      Attachments

        1. log.txt
          7 kB
          David De Franco

        Activity

          People

            Unassigned Unassigned
            ddfranco David De Franco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: