Bug #7231
listViews() isn't hooked up
100%
Description
Calling CN.listViews() doesn't seem to hit the correct endpoint:
https://cn-dev-ucsb-1.test.dataone.org/cn/v2/views
yields:
NotFound exception:
No system metadata could be found for given PID: cn/v2/views
Associated revisions
Trying to fix a bug with listViews() not working correctly
refs #7231
Trying to fix a bug with listViews() not working correctly
refs #7231
History
#1 Updated by Andrei Buium over 9 years ago
- % Done changed from 0 to 30
- Status changed from New to In Progress
#2 Updated by Andrei Buium over 9 years ago
- % Done changed from 30 to 50
- Status changed from In Progress to Testing
Fix committed. Needs patching and testing.
#3 Updated by Dave Vieglais over 9 years ago
- Target version changed from CCI-2.0-TRUNK to CCI-2.0.0
#4 Updated by Dave Vieglais over 9 years ago
- Project changed from Infrastructure to CN REST
- Category changed from Metacat to cn_metacat
Looks like the trailing slash is needed. Should correct this or ensure documentation indicates that the trailing slash is required.
#5 Updated by Matthew Jones over 9 years ago
I would vote for correcting it, as its a common problem and causes undue issues for API users. I've seen similar issues with the /query endpoint, and it would be good to allow both URIs across all of our services.
#6 Updated by Andrei Buium over 9 years ago
- % Done changed from 50 to 100
- Status changed from Testing to Closed
Tested and verified that listViews() works on both /views and /views/ endpoints now.