NASA-PDS / harvest

Standalone Harvest client application providing the functionality for capturing and indexing product metadata into the PDS Registry system (https://github.com/nasa-pds/registry).
https://nasa-pds.github.io/registry
Other
4 stars 3 forks source link

Incorrect "lidvid" and "_id" fields are ingested (trailing zeros are truncated) #90

Closed tdddblog closed 2 years ago

tdddblog commented 2 years ago

🐛 Describe the bug

If a version_id field has trailing zeros, for example 1.10, the value is truncated to 1.1 when lidvid and _id fields are generated. For example logical_identifier = urn:nasa:pds:maven.anc, version_id = 1.10. Generated lidvid and _id = urn:nasa:pds:maven.anc::1.1

📜 To Reproduce

Steps to reproduce the behavior:

  1. Create a label with the version_id field containing trailing zeros, for example, 1.10
  2. Run Harvest to Ingest the label.
  3. Check the lidvid and _id fields in OpenSearch / Elasticsearch.

🕵️ Expected behavior

version_id should not be truncated.

tloubrieu-jpl commented 2 years ago

@tloubrieu-jpl Need to create point build for this bug fix