You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Roman Crudu (JIRA)" <ji...@apache.org> on 2014/08/27 22:01:59 UTC

[jira] [Updated] (AMQ-5335) activemq.web module: Infinite loop in MessageListenerServlet::doPost method

     [ https://issues.apache.org/jira/browse/AMQ-5335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roman Crudu updated AMQ-5335:
-----------------------------

    Description: 
MessageListenerServlet::doPost method contains such code:
//...
while (true) {
     //...
    try {
       Destination destination = getDestination(client, request, destinationName);
       messages++;
    //...
    } catch (JMSException e) {
        LOG.warn("jms", e);
    }
}

If method getDestination throws Exception (e.g. SecurityException) - code gets in infinite loop.



  was:
MessageListenerServlet::doPost method contains such code:
//...
while (true) {
try {
//...
       Destination destination = getDestination(client, request, destinationName);
messages++;
//...
} catch (JMSException e) {
LOG.warn("jms", e);
}
}

If method getDestination throws Exception (e.g. SecurityException) - code gets in infinite loop.




> activemq.web module: Infinite loop in MessageListenerServlet::doPost method
> ---------------------------------------------------------------------------
>
>                 Key: AMQ-5335
>                 URL: https://issues.apache.org/jira/browse/AMQ-5335
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.10.0
>            Reporter: Roman Crudu
>            Priority: Minor
>
> MessageListenerServlet::doPost method contains such code:
> //...
> while (true) {
>      //...
>     try {
>        Destination destination = getDestination(client, request, destinationName);
>        messages++;
>     //...
>     } catch (JMSException e) {
>         LOG.warn("jms", e);
>     }
> }
> If method getDestination throws Exception (e.g. SecurityException) - code gets in infinite loop.



--
This message was sent by Atlassian JIRA
(v6.2#6252)