Dieter Stüken ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=6048e1a1ceccdd006a25ea04
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZWNhZmRiOTc2ZjNkNGQ4M2EwNWZmYjY4MzVkY2M3YjkiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10683?atlOrigin=eyJpIjoiZWNhZmRiOTc2ZjNkNGQ4M2EwNWZmYjY4MzVkY2M3YjkiLCJwIjoiaiJ9
 ) GEOS-10683 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10683?atlOrigin=eyJpIjoiZWNhZmRiOTc2ZjNkNGQ4M2EwNWZmYjY4MzVkY2M3YjkiLCJwIjoiaiJ9
 ) FileWrapperResourceTheoryTest fails on Windows since Java 11 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10683?atlOrigin=eyJpIjoiZWNhZmRiOTc2ZjNkNGQ4M2EwNWZmYjY4MzVkY2M3YjkiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.21.1 Assignee: Unassigned Components: Main 
Created: 29/Sep/22 1:53 PM Environment:

Windows + Java11

Priority: Medium Reporter: Dieter Stüken ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=6048e1a1ceccdd006a25ea04
 )

Since Java-11 the Windows path new File("C:", "Users") turns into "C:Users" 
instead of "C:\Users" , which becomes a relative path now.

See: https://bugs.openjdk.org/browse/JDK-8153250 ( 
https://bugs.openjdk.org/browse/JDK-8153250 )

This causes the Test 
FileWrapperResourceTheoryTest.theoryAddingFileToDirectoryAddsResource to fail. 
It happens at: FileWrapperResourceTheoryTest:39 ( 
https://github.com/geoserver/geoserver/blob/main/src/platform/src/test/java/org/geoserver/platform/resource/FileWrapperResourceTheoryTest.java#L31
 ) because the file is relative but the conversion into an absolute path fails 
badly.

The problem does not occur on the Windows GitHub CI workflow since it still 
uses Java-8 ( 
https://github.com/geoserver/geoserver/blob/main/.github/workflows/windows.yml#L22
 ).

Don’t know, of if the Resource concept is affected or if it is just a problem 
with this test class.

So I don’t have any fix by now.

org.junit.experimental.theories.internal.ParameterizedAssertionError: 
       theoryAddingFileToDirectoryAddsResource("DirC" <from getTestPaths[2]>)

at 
org.junit.experimental.theories.Theories$TheoryAnchor.reportParameterizedError(Theories.java:293)
at 
org.junit.experimental.theories.Theories$TheoryAnchor$1$1.evaluate(Theories.java:242)
at 
org.junit.experimental.theories.Theories$TheoryAnchor.runWithCompleteAssignment(Theories.java:223)
at 
org.junit.experimental.theories.Theories$TheoryAnchor.runWithAssignment(Theories.java:209)
at 
org.junit.experimental.theories.Theories$TheoryAnchor.runWithIncompleteAssignment(Theories.java:217)
at 
org.junit.experimental.theories.Theories$TheoryAnchor.runWithAssignment(Theories.java:207)
at 
org.junit.experimental.theories.Theories$TheoryAnchor.evaluate(Theories.java:192)
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.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at 
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at 
com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at 
com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at 
com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)

( 
https://osgeo-org.atlassian.net/browse/GEOS-10683#add-comment?atlOrigin=eyJpIjoiZWNhZmRiOTc2ZjNkNGQ4M2EwNWZmYjY4MzVkY2M3YjkiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10683#add-comment?atlOrigin=eyJpIjoiZWNhZmRiOTc2ZjNkNGQ4M2EwNWZmYjY4MzVkY2M3YjkiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- 
sha1:ee9e30a )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to