[asterisk-bugs] [JIRA] (ASTERISK-21971) POST to /stasis/bridges/?type=[bridgetype] fails silently

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Jun 27 19:13:03 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207544#comment-207544 ] 

Matt Jordan commented on ASTERISK-21971:
----------------------------------------

Per David's investigation, we actually are responding with a "302 Found" to the POST request.

Quoting him here:

{quote}
Note: RFC 1945 and RFC 2068 specify that the client is not allowed
      to change the method on the redirected request.  However, most
      existing user agent implementations treat 302 as if it were a 303
      response, performing a GET on the Location field-value regardless
      of the original request method.
{quote}
                
> POST to /stasis/bridges/?type=[bridgetype] fails silently
> ---------------------------------------------------------
>
>                 Key: ASTERISK-21971
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21971
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Core/Stasis, Resources/res_stasis_http
>    Affects Versions: 12
>            Reporter: Matt Jordan
>
> POSTing the URI {{/stasis/bridges/?type=holding}} will fail silently.
> It appears the reason is because {{/stasis/}} matches a URI handler in {{main/http.c}} and calls the callback registered by stasis, but stasis doesn't actually handle the POST (because it doesn't actually match a valid URI) and fails silently.
> Note that some libraries will, at this point, switch to a GET, which will return data, causing some very odd behavior - instead of making a new bridge you get a listing of all existing bridges.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list