BuildResource are not copied in AntActionUninstallerListener

Description

If you specify an AntAction.xml file with an uninstall_target referencing a target in an Ant file, you get a pretty nasty exception when uninstalling your software.

If you look closely at the java class AntActionUninstallerListener.java, line 220 of getBuildResource() :

You can see that the temporary ByteArrayInputStream bin is not used at all. The commit made by on 27 December 2016 related to broke this. We try to copy from the InputStream itself but no copy is made, therefore a SAXParser exception is thrown later on because the file cannot be read.

I have a pull request ready by just replacing the "is" variable by "bin" variable.

Environment

None

Status

Assignee

Samir Hadzic

Reporter

Samir Hadzic

Impact

Functional - may break existing environments

Components

Sprint

None

Fix versions

Affects versions

Priority

Highest
Configure