Summary: | ASTERISK-22803: ari: GET /ari/endpoints/{invalid-tech} should return a 404 | ||
Reporter: | David M. Lee (dlee) | Labels: | |
Date Opened: | 2013-11-01 09:29:10 | Date Closed: | 2013-11-12 16:16:03.000-0600 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Resources/res_ari |
Versions: | 12.0.0-beta1 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | 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 [] | ||
Comments: |