Fixes regression on copyURLToFile with partial regression tests#319
Fixes regression on copyURLToFile with partial regression tests#319chadlwilson wants to merge 1 commit intoapache:masterfrom
Conversation
c9fba85 to
41408e3
Compare
|
If the intent is to re-use NIO logic, I suppose the The usage of |
41408e3 to
b1d6806
Compare
…r impl - when parent dirs need creation - when target file already exists - reverts part of f22b426 43bd7ee8d957e13a
b1d6806 to
f077bb9
Compare
Hi @chadlwilson |
I don't really understand the original "NIO" change, because
From my perspective, right now |
|
Hello @chadlwilson |
|
Okay thanks, will give it a go when the snapshot is rebuilt. |
|
Does something need to be done to trigger a snapshot build off master? I thought they were dailies if there were any new commits, but I don't see new snapshot builds yet at https://repository.apache.org/content/repositories/snapshots/commons-io/commons-io/2.12.0-SNAPSHOT/ |
|
Someone has to set it up on https://ci2.apache.org/#/ IIRC |
|
Hmm, if it hasn't been set up on ci2/buildbot I'm a bit confused as to how those previous snapshots got there as https://builds.apache.org/job/Commons/job/commons-io/ seems to imply the build there has been failing for a year. Eek. |
|
I just published a snapshot and reconfigured the Jenkins job to only use Java 8. |
|
Thanks! I have got past this particular error and the bunch of tests that were triggering it, but now there seems to be another problem due to 1e73dd9 or perhaps related commits elsewhere which affects dynamic creation of files/paths which I am having trouble tracking down. There appears to be some change which is leading a file to be created for something that should be a (parent) directory, which then leads to issues with Will see if I can track down what changed. |
|
OK, the problem is that The below works under the old impl, but now fails. I guess the root cause is that I guess this regression is different to the one discussed in this PR so probably should raise a new PR with failing test(s). |
|
Hi @chadlwilson |
The change in f22b426#r63142538 seemed to accidentally break the contract on
copyURLToFilein the Javadoccommons-io/src/main/java/org/apache/commons/io/FileUtils.java
Lines 1042 to 1045 in ae2f2cd
This
I'm not sure of the intent of the original change, so this does not attempt to address that. Feel free to update this PR to do so if it makes sense.