Project

General

Profile

Bug #7231

listViews() isn't hooked up

Added by Andrei Buium over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Buium
Category:
cn_metacat
Start date:
2015-06-24
Due date:
% Done:

100%

Estimated time:
1.00 h
Story Points:
Sprint:

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

Revision 15823
Added by Andrei Buium over 9 years ago

Trying to fix a bug with listViews() not working correctly
refs #7231

Revision 15823
Added by Andrei Buium over 9 years ago

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.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)