[asterisk-bugs] [JIRA] (ASTERISK-22803) ari: GET /ari/endpoints/{invalid-tech} should return a 404

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Mon Nov 11 15:30:03 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Harwell reassigned ASTERISK-22803:
----------------------------------------

    Assignee: Kevin Harwell
    
> ari: GET /ari/endpoints/{invalid-tech} should return a 404
> ----------------------------------------------------------
>
>                 Key: ASTERISK-22803
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22803
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_ari
>    Affects Versions: 12.0.0-beta1
>            Reporter: David M. Lee
>            Assignee: Kevin Harwell
>
> The implementation listing endpoints by technology currently doesn't check to see if the technology provided is valid; it simply returns an empty array if no endpoints matching that technology are found.
> Returning a {{404 Not Found}} would provide better feedback, if someone were to accidentally try to, for example,  {{GET /ari/endpoints/SIIP}}.
> h2. Steps to reproduce
> # {{GET https://localhost:8088/ari/endpoints/invalid-tech-name}}
> h2. Expected results
> 404 Not Found
> h2. Actual Results
> 200 OK
> []

--
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