activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Bertram (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ARTEMIS-1323) REST: manual acknowledgment not working as documented
Date Tue, 08 Aug 2017 02:01:00 GMT

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

Justin Bertram resolved ARTEMIS-1323.
-------------------------------------
       Resolution: Fixed
         Assignee: Justin Bertram
    Fix Version/s: 2.3.0

> REST: manual acknowledgment not working as documented
> -----------------------------------------------------
>
>                 Key: ARTEMIS-1323
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1323
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: patrick peck
>            Assignee: Justin Bertram
>             Fix For: 2.3.0
>
>
> Manually acknowledging messages in the REST interface does not work as documented. 
> Documentation says:
> * HTTP code returned is 200
> * the response will contain a new msg-acknowledge-next header that you must use to obtain
the next message.
> However, it actually:
> * returns HTTP code 204
> * the msg-acknowledge-next header will always be "acknowledge-next-1"
> Relevant code is at the end of method AcknowledgedQueueConsumer.acknowledge()
> {{      Response.ResponseBuilder builder = Response.noContent();
>       setAcknowledgeLinks(uriInfo, basePath, builder, "-1");
>       return builder.build();}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message