Hello Gary,

thanks for your advice. All test mentioned run fine with commons-io 2.5, 
addressing it here seems right.

There are new issues with the current 2.9.0-snapshot. Previously with 2.8.0 it 
was 
https://github.com/wildfly/wildfly-core/blob/ce3b0e1b66ac39c1832dfea1735069e17bbc4fe1/testsuite/standalone/src/test/java/org/jboss/as/test/integration/management/cli/ModuleTestCase.java#L395
 addModuleWithDirectoryAndInvalidLinks2 which failed.

With 2.9.0 different tests fail, please find details below:

commons-io 2.9.0-snapshot out of git commit 
4b92e65963105eedf469ace591ae0b84aa1c3afc

https://github.com/wildfly/wildfly-core/blob/ce3b0e1b66ac39c1832dfea1735069e17bbc4fe1/testsuite/standalone/src/test/java/org/jboss/as/test/integration/management/cli/ModuleTestCase.java#L430

[ERROR]
addModuleWithDirectoryAndInvalidLinks3(org.jboss.as.test.integration.management.cli.ModuleTestCase)
Time elapsed: 0.006 s  <<< ERROR!
java.io.IOException: Unable to delete
/home/borisunckel/javaprojects/wildfly/wildfly-core/testsuite/standalone/target/C
     at org.apache.commons.io.FileUtils.delete(FileUtils.java:1122)
     at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1143)
     at
org.jboss.as.test.integration.management.cli.ModuleTestCase.addModuleWithDirectoryAndInvalidLinks3(ModuleTestCase.java:468)
     at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
     at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
     at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
     at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
     at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
     at
org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
     at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
     at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
     at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
     at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
     at
org.wildfly.core.testrunner.WildflyTestRunner.run(WildflyTestRunner.java:157)
     at org.junit.runners.Suite.runChild(Suite.java:128)
     at org.junit.runners.Suite.runChild(Suite.java:27)
     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
     at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
     at
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
     at
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
     at
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
     at
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
     at
org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
     at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
     at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
     at
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
     at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)

https://github.com/wildfly/wildfly-core/blob/ce3b0e1b66ac39c1832dfea1735069e17bbc4fe1/testsuite/standalone/src/test/java/org/jboss/as/test/integration/management/cli/ModuleTestCase.java#L267

[ERROR]
addModuleWithDirectoryError(org.jboss.as.test.integration.management.cli.ModuleTestCase)
Time elapsed: 0.008 s  <<< ERROR!
org.apache.commons.io.IOExceptionList: 1 exceptions:
[java.io.IOException: Unable to delete file:
/home/borisunckel/javaprojects/wildfly/wildfly-core/testsuite/standalone/target/1610275423109dir/1610275423109file.txt]
     at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:301)
     at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1140)
     at
org.jboss.as.test.integration.management.cli.ModuleTestCase.addModuleWithDirectoryError(ModuleTestCase.java:289)
     at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
     at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
     at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
     at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
     at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
     at
org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
     at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
     at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
     at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
     at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
     at
org.wildfly.core.testrunner.WildflyTestRunner.run(WildflyTestRunner.java:157)
     at org.junit.runners.Suite.runChild(Suite.java:128)
     at org.junit.runners.Suite.runChild(Suite.java:27)
     at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
     at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
     at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
     at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
     at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
     at
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
     at
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
     at
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
     at
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
     at
org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
     at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
     at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
     at
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
     at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
Caused by: java.io.IOException: Unable to delete file:
/home/borisunckel/javaprojects/wildfly/wildfly-core/testsuite/standalone/target/1610275423109dir/1610275423109file.txt
     at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1344)
     at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:294)
     ... 44 more
Caused by: java.nio.file.AccessDeniedException:
/home/borisunckel/javaprojects/wildfly/wildfly-core/testsuite/standalone/target/1610275423109dir/1610275423109file.txt
     at
java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
     at
java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
     at
java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
     at
java.base/sun.nio.fs.LinuxDosFileAttributeView.updateDosAttribute(LinuxDosFileAttributeView.java:278)
     at
java.base/sun.nio.fs.LinuxDosFileAttributeView.setReadOnly(LinuxDosFileAttributeView.java:191)
     at org.apache.commons.io.file.PathUtils.setReadOnly(PathUtils.java:875)
     at org.apache.commons.io.file.PathUtils.deleteFile(PathUtils.java:486)
     at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:393)
     at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1341)
     ... 45 more


-----Ursprüngliche Nachricht-----
Von: Gary Gregory <garydgreg...@gmail.com> 
Gesendet: Freitag, 8. Januar 2021 15:51
An: Commons Developers List <dev@commons.apache.org>
Betreff: Re: [IO] Release 2.8.1 or 2.9 for IO-692 fix

In the meantime, you would be well advised to test with a 2.9.0-SNAPSHOT build.

Gary

On Fri, Jan 8, 2021, 09:50 Gary Gregory <garydgreg...@gmail.com> wrote:

> I plan on creating a release candidate for 2.9.0 "soon", maybe this 
> weekend or next, no guarantees though...
>
> Gary
>
> On Fri, Jan 8, 2021, 05:18 <bunc...@vhv.de> wrote:
>
>> Dear IO developers,
>>
>>
>>
>> you already fixed https://issues.apache.org/jira/browse/IO-692 The 
>> underlying issue blocks the component upgrade in WildFly Core, due to 
>> a breaking integration unit test. (Pull is here:
>> https://github.com/wildfly/wildfly-core/pull/4400 ) It would be great 
>> to have the new enhancements and fixes of IO to be integrated there.
>>
>>
>>
>> Could you please release a 2.8.1 or 2.9 version including the IO-692 fix?
>>
>>
>>
>> Kind regards
>>
>> Boris
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
>> For additional commands, e-mail: dev-h...@commons.apache.org
>
>
Diese Mail wurde aus Datenschutzgründen verschlüsselt versandt.

Reply via email to