php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68497 Stomp client doesn't parse ERROR response on CONNECT
Submitted: 2014-11-25 16:14 UTC Modified: -
From: gena01 at gmail dot com Assigned:
Status: Closed Package: stomp (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gena01 at gmail dot com
New email:
PHP Version: OS:

 

 [2014-11-25 16:14 UTC] gena01 at gmail dot com
Description:
------------
Currently (stomp 1.0.5) doesn't parse or look for ERROR response frames when doing CONNECT. 
See here: https://github.com/php/pecl-tools-stomp/blob/master/php_stomp.c#L552

Should probably do something similar to: https://github.com/php/pecl-tools-stomp/blob/master/php_stomp.c#L893

When running Stomp against AMQP according to http://activemq.apache.org/stomp.html :
Stomp implementation fully supports an ActiveMQ security mechanism. This means that the CONNECT command will return an ERROR frame on unsuccessful authentication

This is on par with http://stomp.github.io/stomp-specification-1.1.html#Connecting

Expected result:
----------------
StompException containing the error message.

Actual result:
--------------
StompException: Stomp unknown error

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-07 18:03 UTC] pierrick@php.net
Automatic comment on behalf of fontanalorenzo@me.com
Revision: http://git.php.net/?p=pecl/tools/stomp.git;a=commit;h=8e18eb079da75adc9387c52657f11d5573908234
Log: Fix Bug #68497 Stomp client doesn't parse ERROR response on CONNECT
 [2014-12-07 18:03 UTC] pierrick@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC