[jira] [Commented] (JCR-5105) Update commons-io dependency to 2.17.0

2024-10-03 Thread Julian Reschke (Jira)


[ 
https://issues.apache.org/jira/browse/JCR-5105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886760#comment-17886760
 ] 

Julian Reschke commented on JCR-5105:
-

trunk: 
[8837e8ed7|https://github.com/apache/jackrabbit/commit/8837e8ed71bd1a5879d51cad1c769051738ee734]

> Update commons-io dependency to 2.17.0
> --
>
> Key: JCR-5105
> URL: https://issues.apache.org/jira/browse/JCR-5105
> Project: Jackrabbit Content Repository
>  Issue Type: Task
>  Components: parent
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_jackrabbit_2.20, candidate_jackrabbit_2.22
> Fix For: 2.24, 2.23.1
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (JCR-5105) Update commons-io dependency to 2.17.0

2024-10-03 Thread Julian Reschke (Jira)


[ 
https://issues.apache.org/jira/browse/JCR-5105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886702#comment-17886702
 ] 

Julian Reschke commented on JCR-5105:
-

The root issue is that 
https://github.com/apache/jackrabbit/blob/545ca83d78970a81683c791d92d16c1cc44dc82d/jackrabbit-data/src/main/java/org/apache/jackrabbit/core/data/db/DbInputStream.java#L66
 makes assumptions about the behavior of the stream it extends that are not 
true anymore.

> Update commons-io dependency to 2.17.0
> --
>
> Key: JCR-5105
> URL: https://issues.apache.org/jira/browse/JCR-5105
> Project: Jackrabbit Content Repository
>  Issue Type: Task
>  Components: parent
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_jackrabbit_2.20, candidate_jackrabbit_2.22
> Fix For: 2.24
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (JCR-5105) Update commons-io dependency to 2.17.0

2024-10-03 Thread Julian Reschke (Jira)


[ 
https://issues.apache.org/jira/browse/JCR-5105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886639#comment-17886639
 ] 

Julian Reschke commented on JCR-5105:
-

Seems ro be caused by this change in commons-io:

{noformat}
commit 1040e74d4c05930a7ed8864c87a5578c10bb9e99
Author: Gary Gregory 
Date:   Sun Jul 7 14:12:24 2024 -0400

AutoCloseInputStream(InputStream) uses ClosedInputStream.INSTANCE when
its input is null

 src/changes/changes.xml   |  1 +
 .../apache/commons/io/input/AutoCloseInputStream.java |  3 ++-
 .../apache/commons/io/input/ClosedInputStream.java| 12 +++-
 .../commons/io/input/AutoCloseInputStreamTest.java| 19 +++
 .../commons/io/input/ClosedInputStreamTest.java   |  9 +
 5 files changed, 42 insertions(+), 2 deletions(-)
{noformat}

> Update commons-io dependency to 2.17.0
> --
>
> Key: JCR-5105
> URL: https://issues.apache.org/jira/browse/JCR-5105
> Project: Jackrabbit Content Repository
>  Issue Type: Task
>  Components: parent
>Reporter: Julian Reschke
>Assignee: Julian Reschke
>Priority: Minor
>  Labels: candidate_jackrabbit_2.20, candidate_jackrabbit_2.22
> Fix For: 2.24
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (JCR-5105) Update commons-io dependency to 2.17.0

2024-10-02 Thread Julian Reschke (Jira)


[ 
https://issues.apache.org/jira/browse/JCR-5105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886442#comment-17886442
 ] 

Julian Reschke commented on JCR-5105:
-

Interestingly, this breaks tests in jackrabbit-core:

{noformat}
[ERROR] Tests run: 33, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 16.09 
s <<< FAILURE! -- in org.apache.jackrabbit.core.data.TestAll
[ERROR] org.apache.jackrabbit.core.data.DBDataStoreTest.testConcurrentRead -- 
Time elapsed: 0.207 s <<< FAILURE!
junit.framework.AssertionFailedError: expected:<234> but was:<-1>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.Assert.assertEquals(Assert.java:241)
at junit.framework.TestCase.assertEquals(TestCase.java:384)
at 
org.apache.jackrabbit.core.data.DBDataStoreTest.testConcurrentRead(DBDataStoreTest.java:178)
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 junit.framework.TestCase.runTest(TestCase.java:177)
at junit.framework.TestCase.runBare(TestCase.java:142)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:130)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at 
org.apache.jackrabbit.test.ConcurrentTestSuite.access$001(ConcurrentTestSuite.java:29)
at 
org.apache.jackrabbit.test.ConcurrentTestSuite$2.run(ConcurrentTestSuite.java:67)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown 
Source)
at java.base/java.lang.Thread.run(Thread.java:834)

[ERROR] org.apache.jackrabbit.core.data.DBDataStoreTest.testDbInputStreamReset 
-- Time elapsed: 0.076 s <<< FAILURE!
junit.framework.AssertionFailedError: expected:<-1> but was:<1024>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.Assert.assertEquals(Assert.java:241)
at junit.framework.TestCase.assertEquals(TestCase.java:384)
at 
org.apache.jackrabbit.core.data.DBDataStoreTest.testDbInputStreamReset(DBDataStoreTest.java:106)
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 junit.framework.TestCase.runTest(TestCase.java:177)
at junit.framework.TestCase.runBare(TestCase.java:142)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:130)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at junit.framework.TestSuite.run(TestSuite.java:236)
at junit.framework.TestSuite.runTest(TestSuite.java:241)
at 
org.apache.jackrabbit.test.ConcurrentTestSuite.access$001(ConcurrentTestSuite.java:29)
at 
org.apache.jackrabbit.test.ConcurrentTestSuite$2.run(ConcurrentTestSuite.java:67)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown 
Source)
at java.base/java.lang.Thread.run(Thread.java:834)

[ERROR] org.apache.jackrabbit.core.data.DBDataStoreTest.testGetRecord -- Time 
elapsed: 0.052 s <<< FAILURE!
junit.framework.AssertionFailedError: expected:<234> but was:<-1>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.Assert.assertEquals(Assert.java:241)
at junit.framework.TestCase.assertEquals(TestCase.java:384)
at