activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Crudu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-5335) activemq.web module: Infinite loop in MessageListenerServlet::doPost method
Date Wed, 27 Aug 2014 20:01:59 GMT

     [ 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)

Mime
View raw message