File::getCanonicalFile and File::getCanonicalPath are much slower since java 12

Description

regression resource.getCanonicalResourceEL is much slower with java 21 than 11, 23 is terrrible

Turns out there’s a JDK change involved….


this affects quite dramatically

https://bugs.openjdk.org/browse/JDK-8258036?focusedCommentId=14388171&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14388171

java 11

java 21

Environment

None

Attachments

7

Activity

Show:

Zac Spitzer 23 December 2024 at 16:40
Edited

related tomcat CVE-2024-50379 to sun.io.useCanonCaches disabling this slows down lucee a lot

i.e. this is vulnerable

That is only an issue when readonly is set to false (non default) Which lucee doesn’t ship

Zac Spitzer 23 December 2024 at 14:29
Edited

Michael Offner 20 December 2024 at 16:33

last comment is unrelated to the issue addressed in this ticket, the following ticket matches much better

Michael Offner 20 December 2024 at 14:13

racing condition

Zac Spitzer 20 December 2024 at 10:51
Edited

can repo locally with java 23

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Created 19 December 2024 at 18:48
Updated 1 March 2025 at 14:16
Resolved 6 January 2025 at 17:03