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

Matt Jordan (JIRA) noreply at issues.asterisk.org
Fri Nov 1 10:24:03 CDT 2013


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

Matt Jordan updated ASTERISK-22803:
-----------------------------------

    Status: Open  (was: Triage)
    
> 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
>
> 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