We're updating the issue view to help you get more done. 

WPS RawDataEncoderDelegate should close the stream after the copy

Description

While running some WPS Download tests on Windows I have noticed a couple of tests requiring several minutes to be completed.
The reason was the resourceManager unable to lock/delete the temp files, finally giving up after thousands of attempts (therefore a couple of minutes).
Looks like the RawDataEncoderDelegate gets an inputStream to be copied over an outputStream wihtout closing it.

Environment

None

Status

Assignee

Daniele Romagnoli

Reporter

Daniele Romagnoli

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium