Review Board 1.7.16


Asterisk: Creating a named ARI bridge twice causes a crash

Review Request #4349 - Created Jan. 15, 2015 and submitted

Ashley Sanders
branches/13
ASTERISK-24560
Reviewers
asterisk-dev
Asterisk
Currently in ARI (Asterisk REST Interface), posting to the: /ari/bridges/{bridgeId} endpoint without specifying a value for the [name] query parameter, will crash Asterisk if the bridge you are attempting to create (or update) has the same ID as an existing bridge. The internal mechanism of the POST operation interprets a null value for name, thus resulting in an error condition that crashes Asterisk.

The first step in resolving this was to construct tests to ensure that Asterisk behaves as expected when submitting requests for creating a new bridge when a bridge with the same ID already exists in memory. The expected behavior is to reject such requests and return an HTTP status code of 500 (Internal Server Error). 

You can find the review for the test suite at: https://reviewboard.asterisk.org/r/4348

 
Total:
2
Open:
0
Resolved:
1
Dropped:
1
Status:
From:
Review request changed
Updated (Jan. 20, 2015, 11:25 a.m.)
  • changed from pending to submitted
Committed in revision 430836

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.