Cannot create jp2k coverage through rest (IndexOutOfBounds)

Description

Attempting to create a coverage via REST from a JP2K (Direct) store fails, returning an IndexOutOfBoundsException. Using the bogota.jp2 (+sidecars) file.

Can successully publish the same coverage via the UI. The cause is missing identifiers in the nativeCRS of the coverage. The UI solves this by doing an SRS lookup.

I propose doing the same for the initCoverage method used by the REST coverage handler.

Environment

None

Assignee

Morgan Thompson

Reporter

Morgan Thompson

Triage

None

Fix versions

Affects versions

Priority

Low
Configure