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.