Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearer error message if Codec loading fails under a Security Manager #12300

Open
gus-asf opened this issue May 16, 2023 · 0 comments · May be fixed by #12301
Open

Clearer error message if Codec loading fails under a Security Manager #12300

gus-asf opened this issue May 16, 2023 · 0 comments · May be fixed by #12301

Comments

@gus-asf
Copy link
Contributor

gus-asf commented May 16, 2023

Description

I just spent quite a while tracking down a problem wherein a SecurityManager was silently ignoring the META-INF/services/org.apache.lucene.codecs.Codec file. We should enhance the message in the event that a security manager is detected to alert the user to this possibility and the potentially surprising detail that no SecurityException is thrown by java when it fails to load a file via the classpath. Even more confusingly, java can load classes and then silently fail to load files from the same jar file that the class came from, so alerting the user to this complex situation seems worthwhile. (PR soon)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant