Bug #7363
CN.getLogRecords returns 0 result
100%
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
Associated revisions
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.
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.
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).
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 about 9 years ago
- Subject changed from CN.getLogRecords returns results to CN.getLogRecords returns 0 result
#2 Updated by Rob Nahf about 9 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 about 9 years ago
- Related to Bug #7370: TypeFactory.convertTypeFromType does not use xmlValue comparisons for Enum conversions added
#4 Updated by Jing Tao about 9 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 about 9 years ago
- % Done changed from 30 to 100
- Status changed from In Progress to Closed