Bug #7244
view service returns a 500 error when given an non-existent PID
Status:
Closed
Priority:
Normal
Assignee:
Category:
cn_metacat
Target version:
Start date:
2015-07-01
Due date:
% Done:
100%
Story Points:
Sprint:
Description
Should return a 404 error
e.g.:
https://cn-dev-ucsb-1.test.dataone.org/cn/v2/views/IDontExist-Really!
History
#1 Updated by Dave Vieglais over 9 years ago
- Project changed from Infrastructure to CN REST
- Category changed from d1_cn_service to cn_metacat
#2 Updated by Jing Tao over 9 years ago
We should include the theme in the url:
GET /views/{theme}/{id}
If you access this url, you will get the 404:
https://cn-dev-ucsb-1.test.dataone.org/cn/v2/views/knb/IDontExist-Really
#3 Updated by Jing Tao over 9 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
#4 Updated by Jing Tao over 9 years ago
If you don't specify the theme name, now you will get an invalid request exception.