GeoTIFF sources configured with GeoServer 2.14.x might not work in 2.15.x

Description

GeoServer 2.14.x (and possibly 2.13.x too) wrongly provided a URL input instead of a file to the GeotTiff reader on layer creation (possibly due to the Resource migration), causing the native name to be a generic "geotiff_coverage" instead of the file name:

GeoServer 2.15.x correctly provides a File as an input instead, causing the reader to configure itself using the name of the file.
Unfortunately, that breaks all name based access to the reader, due to the mismatch between the configured native name, and the actual name:

Since potentially lots of config files are broken and the UI offers no way to fix the native name, I'd suggest to recognize the "geotiff_coverage" case and remap it on the fly to the actual coverage name in ResourcePool.

Environment

None

Assignee

Unassigned

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Priority

Medium
Configure