WCS 2.0.1 can send coverage in wrong format

Description

DescribeCoverage from the nurc__Img_Sample coverage which has an image "usa.jpeg" as source claim that the nativeFormat is image/jpeg

http://localhost:8080/geoserver/wcs?service=WCS&version=2.0.1&request=describecoverage&coverageid=nurc__Img_Sample

However, GetCoverage that is given without format parameter is returning tiff image

localhost:8080/geoserver/wcs?service=WCS&version=2.0.1&request=getcoverage&coverageid=nurc__Img_Sample

What returns should match the nativeFormat in DescribeCoverage. In this case the fix should IMHO be to change the nativeFormat into image/tiff because the definition of the native format in the standard is "encoding format where, in a GetCoverage request, the range set values can be obtained unaltered". This could potentially be true with jpeg if you
request the whole coverage, or on boundaries of JPEG blocks, but not in the
general case.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Jukka Rahkonen

Triage

None

Fix versions

Affects versions

2.7.2

Priority

Medium
Configure