The addInputStream() method of AbstractInputStreamMappingBinding does not close its InputStream in cases where it rejects the input due to an invalid suffix.
The suffix check should be moved inside the try/finally block to ensure stream closure.
While I'm here, could you make Compass log some error messages when things like the suffix don't match? It's frustrating when it just silently rejects things without telling you why.
Description
The addInputStream() method of AbstractInputStreamMappingBinding does not close its InputStream in cases where it rejects the input due to an invalid suffix.
The suffix check should be moved inside the try/finally block to ensure stream closure.
While I'm here, could you make Compass log some error messages when things like the suffix don't match? It's frustrating when it just silently rejects things without telling you why.