Bug #6744
Can't access the getLogRecord through v1 api
100%
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
History
#1 Updated by Jing Tao almost 10 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 almost 10 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 almost 10 years ago
- Due date changed from 2015-01-07 to 2015-01-13
- Category set to Metacat
#4 Updated by Jing Tao almost 10 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.