Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6182

AMQP 1.0 consumer should be able to get messages from browse-only queue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.30
    • Fix Version/s: 0.31
    • Component/s: C++ Broker
    • Labels:

      Description

      Description of problem:
      Qpid broker allows 0-10 consumers on browse-only queues, but does not allow 1.0 consumers there. It should allow 1.0 consumers as well, marking them internally as browsers instead (like it does for 0-10 consumer).

      Version-Release number of selected component (if applicable):
      0.30

      How reproducible:
      100%

      Steps to Reproduce:
      1. service qpidd restart
      2. qpid-config add queue q --argument=qpid.browse-only=true --limit-policy=ring --max-queue-count=100
      3. qpid-send -a q -m1
      4. qpid-receive -a q # works fine
      5. qpid-receive -a q --connection-option "

      {protocol:amqp1.0}

      "

      Actual results:
      Step 5 returns:
      qpid-receive: Link detached by peer with amqp:internal-error: not-allowed: Queue q is browse only. Refusing acquiring consumer. (/home/pmoravec/qpid-trunk/qpid/cpp/src/qpid/broker/Queue.cpp:552)

      Expected results:
      Both 4. and 5. to return one message (one empty line corresponding to empty message content).

      Additional info:

        Attachments

          Activity

            People

            • Assignee:
              pmoravec Pavel Moravec
              Reporter:
              pmoravec Pavel Moravec
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: