[
https://issues.apache.org/jira/browse/SLING-12962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus updated SLING-12962:
------------------------------------
Fix Version/s: Testing Sling Mock Oak 4.0.2-1.62.0
> sling-mock-oak: Update to Oak 1.86 for Java 23+ compatibility
> -------------------------------------------------------------
>
> Key: SLING-12962
> URL: https://issues.apache.org/jira/browse/SLING-12962
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Testing Sling Mock Oak 4.0.0-1.62.0
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: Testing Sling Mock Oak 4.0.2-1.62.0
>
>
> Oak prior version 1.74 is incompatible with Java 23+
> (https://issues.apache.org/jira/browse/OAK-11199) as by default no security
> manager is allowed and the following exception can be observed
> {code}
> java.lang.UnsupportedOperationException: getSubject is supported only if a
> security manager is allowed
> at java.base/javax.security.auth.Subject.getSubject(Subject.java:347)
> at
> org.apache.jackrabbit.oak.security.authentication.LoginContextProviderImpl.getSubject(LoginContextProviderImpl.java:97)
> at
> org.apache.jackrabbit.oak.security.authentication.LoginContextProviderImpl.getLoginContext(LoginContextProviderImpl.java:79)
> at
> org.apache.jackrabbit.oak.core.ContentRepositoryImpl.login(ContentRepositoryImpl.java:169)
> ....
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)