Skip to content

Case sensitivity issues with collection ID prefix #543

Closed
@mcduffie

Description

@mcduffie

There are some inconsistencies in collection ID prefix case sensitivity consistent.

Using unity-sds-client I can only create collection IDs that begin wtih

urn:nasa:unity

Trying to capitalize this portion will result in this error:

UnityException: Collection Identifiers must start with urn:nasa:unity:unity:test

But when not giving an explicit prefix to stage out it will use the following before project/venue:

URN:NASA:UNITY

And if I query using get_collection_data from unity-sds-client with, for instance:

urn:nasa:unity:unity:test:MUSES-CRS1-MGLOS___1

I will get no results. But using the prefix capitalized like stage-out adds does result in hits:

URN:NASA:UNITY:unity:test:MUSES-CRS1-MGLOS___1

Looks like the STAC browser is also case sensitive in terms of prefix. So the products do not show up in the browser if they were registered with the lowercase urn:nasa:unity but submitted for ingestion by stage out using the uppercase prefix: URN:NASA:UNITY.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions