You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Chug Rolke <cr...@redhat.com> on 2014/03/13 20:14:05 UTC

Review Request 19199: Invalid URL throws illegal exception during client connection creation

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/19199/
-----------------------------------------------------------

Review request for qpid and Gordon Sim.


Bugs: QPID-5623
    https://issues.apache.org/jira/browse/QPID-5623


Repository: qpid


Description
-------

This patch intercepts any qpid::Exception traps that are not types::Exception and rethrows them as messaging::ConnectionError.

The issue was first noted using amqp1.0 as it is handled correctly in amqp0-10.

This code could be moved to other places in amqp1.0 handlers such as ConnectionHandle.cpp:52 and ConnectionContext.cpp:89. However, there the try/catch would be inserted into constructor initialization lists where it looks ugly and is hard to read.


Diffs
-----

  trunk/qpid/cpp/src/qpid/messaging/amqp/ConnectionHandle.cpp 1577280 

Diff: https://reviews.apache.org/r/19199/diff/


Testing
-------

Linux client/broker from command line.


Thanks,

Chug Rolke


Re: Review Request 19199: Invalid URL throws illegal exception during client connection creation

Posted by Gordon Sim <gs...@redhat.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/19199/#review37107
-----------------------------------------------------------

Ship it!


Ship It!

- Gordon Sim


On March 13, 2014, 7:14 p.m., Chug Rolke wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/19199/
> -----------------------------------------------------------
> 
> (Updated March 13, 2014, 7:14 p.m.)
> 
> 
> Review request for qpid and Gordon Sim.
> 
> 
> Bugs: QPID-5623
>     https://issues.apache.org/jira/browse/QPID-5623
> 
> 
> Repository: qpid
> 
> 
> Description
> -------
> 
> This patch intercepts any qpid::Exception traps that are not types::Exception and rethrows them as messaging::ConnectionError.
> 
> The issue was first noted using amqp1.0 as it is handled correctly in amqp0-10.
> 
> This code could be moved to other places in amqp1.0 handlers such as ConnectionHandle.cpp:52 and ConnectionContext.cpp:89. However, there the try/catch would be inserted into constructor initialization lists where it looks ugly and is hard to read.
> 
> 
> Diffs
> -----
> 
>   trunk/qpid/cpp/src/qpid/messaging/amqp/ConnectionHandle.cpp 1577280 
> 
> Diff: https://reviews.apache.org/r/19199/diff/
> 
> 
> Testing
> -------
> 
> Linux client/broker from command line.
> 
> 
> Thanks,
> 
> Chug Rolke
> 
>