You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not currently possible to specify both the gemPath and a custom classloader. We are missing this permutation in the list of create methods.
Additionally, I think the gemPath should be set to null by default when a custom classloader is specified. Passing a custom classloader is a strong signal that AsciidoctorJ is being run in a modular environment which should be completely isolated. We don't want to leak the global GEM_PATH (or GEM_HOME) when running in such an environment.
It is useful to be able to specify the gemPath for debugging purposes, so I still think we should have it as an option. Just not the default.
It's not currently possible to specify both the gemPath and a custom classloader. We are missing this permutation in the list of
create
methods.Additionally, I think the gemPath should be set to null by default when a custom classloader is specified. Passing a custom classloader is a strong signal that AsciidoctorJ is being run in a modular environment which should be completely isolated. We don't want to leak the global GEM_PATH (or GEM_HOME) when running in such an environment.
It is useful to be able to specify the gemPath for debugging purposes, so I still think we should have it as an option. Just not the default.
Here's the method in question: https://github.com/asciidoctor/asciidoctorj/blob/master/asciidoctorj-core/src/main/java/org/asciidoctor/Asciidoctor.java#L708-L710
The text was updated successfully, but these errors were encountered: