Project

General

Profile

Bug #6744

Can't access the getLogRecord through v1 api

Added by Jing Tao over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Metacat
Target version:
Start date:
2015-01-07
Due date:
2015-01-13
% Done:

100%

Milestone:
CCI-2.0
Product Version:
*
Story Points:
Sprint:

Description

When I access a mn by:
https://valley.duckdns.org/metacat/d1/mn/v1/log

I got an error:

If I used the url:
https://valley.duckdns.org/metacat/d1/mn/v1/log?event=read
I got this error:


org.dataone.service.types.v2.LogEntry cannot be cast to org.dataone.service.types.v1.LogEntry


Related issues

Related to Java Client - Bug #6747: TypeMarshaller.convertTypeFromType can't convert the v2.Log object to v1.Log object Closed 2015-01-07

History

#1 Updated by Jing Tao over 7 years ago

For the ServiceFailure exception, it was cause by an NPE. If an Event object is null, the code will fail. This fixed.

#2 Updated by Jing Tao over 7 years ago

For the "org.dataone.service.types.v2.LogEntry cannot be cast to org.dataone.service.types.v1.LogEntry", I talked with Rob and he said he would file a ticket for that:

rob: There are 3 v2 “List” types (ObjectFormatList, NodeList, and Log)
[2:59pm] rob: maybe there are some commonalities in the solution for each.
[3:02pm] rob: I’ll submit a ticket to build a Factory type-converter class to put into d1_common_java

#3 Updated by Rob Nahf over 7 years ago

  • Due date changed from 2015-01-07 to 2015-01-13
  • Category set to Metacat

#4 Updated by Jing Tao over 7 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

I developed a convert which manually set and get the values from a v2 LogEntry object to a v1 object. It worked.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)