Openfire (ARCHIVED)

BOSH session dropped when requests are received out of order

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.5.2, 3.6.0
  • Fix Version/s: 3.6.0
  • Component/s: Connection Manager
  • Acceptance Test - Add?:
    Yes
  • Acceptance Test - Entry:
    Hide

    1. Make two BOSH requests to Openfire, so that the first one has a request id of one more than the second one's request id.
    2. Openfire should respond to the latter request first, and then to the former request, gracefully.

    Show
    1. Make two BOSH requests to Openfire, so that the first one has a request id of one more than the second one's request id. 2. Openfire should respond to the latter request first, and then to the former request, gracefully.
  • Description:
    Hide

    As stated in XEP-0124, http://www.xmpp.org/extensions/xep-0124.html#rids-order :

    "When a client makes simultaneous requests, the connection manager may receive them out of order. The connection manager MUST forward the stanzas to the server and respond to the client requests in the order specified by the 'rid' attributes. The client MUST process responses received from the connection manager in the order the requests were made."

    When Openfire recevies two BOSH requests out of order, i.e. the one with the greader rid arrives first, it responds to the latter with:

    <body xmlns="http://jabber.org/protocol/httpbind" type="terminal" condition="item-not-found"></body>

    Subsequent requests from the client will be responded with 404-Not Found, since the session is dropped.

    Show
    As stated in XEP-0124, http://www.xmpp.org/extensions/xep-0124.html#rids-order : "When a client makes simultaneous requests, the connection manager may receive them out of order. The connection manager MUST forward the stanzas to the server and respond to the client requests in the order specified by the 'rid' attributes. The client MUST process responses received from the connection manager in the order the requests were made." When Openfire recevies two BOSH requests out of order, i.e. the one with the greader rid arrives first, it responds to the latter with: <body xmlns="http://jabber.org/protocol/httpbind" type="terminal" condition="item-not-found"></body> Subsequent requests from the client will be responded with 404-Not Found, since the session is dropped.

Activity

Safa Sofuoğlu made changes - 06/27/08 02:34 AM
Field Original Value New Value
Remaining Estimate 8 hours [ 28800 ] 2 days [ 172800 ]
Original Estimate 8 hours [ 28800 ] 2 days [ 172800 ]
Gaston Dombiak made changes - 06/27/08 11:05 PM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]

People

Dates

  • Created:
    06/27/08 02:32 AM
    Updated:
    06/27/08 11:05 PM
    Resolved:
    06/27/08 11:05 PM

Time Tracking

Estimated:
2d
Original Estimate - 2 days
Remaining:
2d
Remaining Estimate - 2 days
Logged:
Not Specified
Time Spent - Not Specified