Project

General

Profile

Bug #7363

CN.getLogRecords returns 0 result

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2015-09-17
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

Robert reported:

robert: the query returns:

robert: Jing. curl --trace curl.out --cert /etc/dataone/client/private/cnDevUCSB1.pem "https://cn-dev-unm-1.test.dataone.org/metacat/d1/cn/v1/log?start=0&count=1000"
[09:44am] robert: the query returns:
[09:44am] robert: <?xml version="1.0" encoding="UTF-8"?>


Related issues

Related to Infrastructure - Bug #7370: TypeFactory.convertTypeFromType does not use xmlValue comparisons for Enum conversions New 2015-09-21

Associated revisions

Revision 16347
Added by Robert Waltz almost 7 years ago

refs #7363

Investigating this bug I found the log path was duplicated. (metacat/d1/cn/v1/log/v1/log) This does not fix the bug because independent tests show that there are still no log entries returned when the additional /v1/log is removed.

Revision 16347
Added by Robert Waltz almost 7 years ago

refs #7363

Investigating this bug I found the log path was duplicated. (metacat/d1/cn/v1/log/v1/log) This does not fix the bug because independent tests show that there are still no log entries returned when the additional /v1/log is removed.

Revision 16366
Added by Rob Nahf almost 7 years ago

fixes #7363: issue with Event conversion - DataONE enums use the xmlValue, which are lowercase versions of the Java Enum name. Made the comparison case insensitive so the comparisons work. This is not a precise solution, but will work for all conversions between v1 and v2 types, where the only Enum being converted (Event) has xmlValues that are lowercases of the Enum constant names. (See Permission type for counter-example).

Revision 16366
Added by Rob Nahf almost 7 years ago

fixes #7363: issue with Event conversion - DataONE enums use the xmlValue, which are lowercase versions of the Java Enum name. Made the comparison case insensitive so the comparisons work. This is not a precise solution, but will work for all conversions between v1 and v2 types, where the only Enum being converted (Event) has xmlValues that are lowercases of the Enum constant names. (See Permission type for counter-example).

History

#1 Updated by Jing Tao almost 7 years ago

  • Subject changed from CN.getLogRecords returns results to CN.getLogRecords returns 0 result

#2 Updated by Rob Nahf almost 7 years ago

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

Applied in changeset d1-python:d1_python|r16366.

#3 Updated by Rob Nahf almost 7 years ago

  • Related to Bug #7370: TypeFactory.convertTypeFromType does not use xmlValue comparisons for Enum conversions added

#4 Updated by Jing Tao almost 7 years ago

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

Hi rob, robert's command still gets 0 return.

#5 Updated by Jing Tao almost 7 years ago

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

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)