Michael Bildner created AMQ-4813:
------------------------------------
Summary: Viewing message details when message ID contains a plus
results in " No message could be found for ID {messageID}"
Key: AMQ-4813
URL: https://issues.apache.org/jira/browse/AMQ-4813
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 5.8.0
Reporter: Michael Bildner
Priority: Minor
Steps to reproduce:
# Using the admin console, go to the Queues page.
# Click on one of the queues to get to the queue's browse page.
# Click on a message ID that contains a plus sign (+).
Expected:
See the message's headers, properties, actions, and details.
Actual:
Get a page with the error message "No message could be found for ID
{messageID}", where {messageID} contains the message ID clicked on. Note that
the message ID displayed in the error message replaces the plus sign (+) with a
space.
Underlying cause:
The html link that is created for each message ID in the queue's browse page
does not properly URL encode the message ID. In my particular example, the
link for message ID "AgXkceW74zCq+kZB1llPos1QcmTfOziGAmWRuk1forI=" is:
http://localhost:8161/admin/message.jsp?id=AgXkceW74zCq{color:red}+{color}kZB1llPos1QcmTfOziGAmWRuk1forI=&JMSDestination=AMQPTest
when it should be:
http://localhost:8161/admin/message.jsp?id=AgXkceW74zCq{color:red}%2B{color}kZB1llPos1QcmTfOziGAmWRuk1forI=&JMSDestination=AMQPTest
The trouble area is shown with a red font.
--
This message was sent by Atlassian JIRA
(v6.1#6144)