Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16844

Spring overrides user requested STOMP version

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.7, 5.1 RC1
    • Component/s: Messaging
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      There is currently no way for a client application to set the accepted STOMP version value.  In the org.springframework.messaging.simp.stomp.DefaultStompSession.afterConnected() method, the code calls 

      accessor.setAcceptVersion("1.1,1.2");
      

      This overrides any version that the application may have requested in the StompHeaders.   The preferred behavior would be to check the StompHeaders for an "accept-version" header and if found use that value instead of the hard-coded "1.1,1.2" value.

      The specific use case I have for this feature is that there is currently a bug in the Apache Artemis message broker that affects STOMP 1.2 but not STOMP 1.1.  Therefore to avoid this bug I would like to specify STOMP 1.1 but using a Spring based client I am unable to do so.

        Attachments

          Activity

            People

            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              jkranes Jon Kranes
              Last updater:
              Stéphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                12 weeks, 6 days ago