Project

General

Profile

Bug #7087

CN.resolve() is returning SystemMetadata instead of ObjectLocationList

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

Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
d1_cn_service
Start date:
2015-05-07
Due date:
% Done:

100%

Story Points:
Sprint:

Description

Calling CN.resolve() from libclient yields an exception:
java.lang.AssertionError: org.dataone.service.types.v2.SystemMetadata cannot be cast to org.dataone.service.types.v1.ObjectLocationList

It was found running testResolve() from SidCNTestImplementations.java against https://cn-dev-ucsb-1.test.dataone.org/cn/v2

Note: curl with or without -L (to disable following the redirect) returns "... <d1_v2.0:systemMetadata ..."
Tested with sid:
https://cn-dev-ucsb-1.test.dataone.org/cn/v2/resolve/S1_2015127122128447
and head pid:
https://cn-dev-ucsb-1.test.dataone.org/cn/v2/resolve/P2_2015127122128446)
/object/ yields an eml document

History

#1 Updated by Ben Leinfelder over 9 years ago

  • % Done changed from 0 to 30
  • Status changed from New to In Progress
  • Assignee changed from Robert Waltz to Ben Leinfelder
  • Target version set to CCI-2.0.0
  • Category set to d1_cn_service

I can take a look at this.

#3 Updated by Ben Leinfelder over 9 years ago

  • % Done changed from 30 to 100
  • Status changed from In Progress to Closed

Needed the ResolveFilterV2 bean to be declared. Note that the example URL that opened this will not work (I think it is because the nodeRefs are bogus and there is no replica info).

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)