Skip to content

Fix NoSuchMethodError when using IOUtils.toString(InputStream, Charset)#516

Merged
yahavi merged 1 commit intojfrog:masterfrom
yahavi:ioutils-tostring
Jun 21, 2021
Merged

Fix NoSuchMethodError when using IOUtils.toString(InputStream, Charset)#516
yahavi merged 1 commit intojfrog:masterfrom
yahavi:ioutils-tostring

Conversation

@yahavi
Copy link
Copy Markdown
Member

@yahavi yahavi commented Jun 11, 2021

  • All tests passed. If this feature is not already covered by the tests, I added new tests.

Same as #450
Resolves jfrog/jenkins-artifactory-plugin#506

Use IOUtils.toString(InputStream,String) instead of IOUtils.toString(InputStream, Charset) to support usage of Apache Commons older than 2.3. This issue may occur in the Jenkins plugin whereby Apache Commons 2.2 used in the classloader from one of the other plugins.

@yahavi yahavi merged commit 4e50b66 into jfrog:master Jun 21, 2021
@yahavi yahavi deleted the ioutils-tostring branch June 21, 2021 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants