dbmdz / iiif-server-hymir

Hymir is a Java based IIIF Server. It is based on "IIIF Image API Java Libraries" and "IIIF Presentation API Java Libraries" projects (see https://github.com/dbmdz)
MIT License
27 stars 7 forks source link

Fix error handling for image requests with size or region of 0 #277

Closed bitzl closed 2 years ago

bitzl commented 2 years ago

Currently would yield an internal server error. This PR adds checks before the image processing starts so that the user would get an Invalid Request status code with a clear error message.