Qpid
  1. Qpid
  2. QPID-2774

Incorrect logic when querying for existance of an exchange while parsing an address string.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Component/s: Java Client
    • Labels:
      None

      Description

      Consider the following address string,
      "HELLO/world;

      {create: never}

      ", where HELLO is a pre existing exchange of type 'direct'.

      Since the type of the exchange is not specified, the Java client defaults to 'topic' right at the beginning and incorrectly compares the exchange type when querying for the exchange.
      The default exchange type should only be specified if an exchange needs to be created and the type is missing.

        Activity

        Rajith Attapattu created issue -
        Rajith Attapattu made changes -
        Field Original Value New Value
        Description Consider the following address string,
        "HELLO/world; {create: never, node: { type: topic }}", where HELLO is a pre existing exchange of type 'direct'.

        Since the type of the exchange is not specified, the Java client defaults to 'topic' right at the beginning and incorrectly compares the exchange type when querying for the exchange.
        The default exchange type should only be specified if an exchange needs to be created and the type is missing.

        Consider the following address string,
        "HELLO/world; {create: never}", where HELLO is a pre existing exchange of type 'direct'.

        Since the type of the exchange is not specified, the Java client defaults to 'topic' right at the beginning and incorrectly compares the exchange type when querying for the exchange.
        The default exchange type should only be specified if an exchange needs to be created and the type is missing.

        Hide
        Rajith Attapattu added a comment -

        Fixed with a test case. See svn commits tab for details.

        Show
        Rajith Attapattu added a comment - Fixed with a test case. See svn commits tab for details.
        Rajith Attapattu made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        99d 1h 47m 1 Rajith Attapattu 05/Nov/10 00:15

          People

          • Assignee:
            Rajith Attapattu
            Reporter:
            Rajith Attapattu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development