Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1323

REST: manual acknowledgment not working as documented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • None
    • None

    Description

      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();}}

      Attachments

        Activity

          People

            jbertram Justin Bertram
            patrick@zync.at patrick peck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: