activemq-web REST servlet support for JMSType is broken via typo
----------------------------------------------------------------

                 Key: AMQ-3590
                 URL: https://issues.apache.org/jira/browse/AMQ-3590
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.5.0
            Reporter: Chris Dolan
            Priority: Minor


As seen here:

        String type = (String)asString(parameters.remove("JMSType"));
        if (correlationID != null) {
            message.setJMSType(type);
        }

http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java?revision=1177445&view=markup#l130

there is a copy-paste typo in the MessageServletSupport class. The null-check 
conditional should check the "type" variable instead of "correlationId".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to