This is/was a security hole and a big anti-pattern.
Velocity is removed from the upcoming 9.0 release, so guess you're on your own 
if you want to keep using it.

Jan

> 3. feb. 2022 kl. 08:58 skrev Schluchtmann, Jan Christopher 
> <jan.christopher.schluchtm...@continental-corporation.com>:
> 
> I need your help ...
> 
> In SOLR 7.5 I was able to get hold of JAVA objects by using "Class.forName"/ 
> "getClass.forName":
> #set($sysEnv=$engine.getClass.forName('java.lang.System'))
> #set($sysEnv=$engine.class.forName('java.lang.System'))
> 
> In SOLR 8.11.1 this doesn't work any more and I don't know why.
> It is probably a configuration problem. I assume, it has security reasons.
> 
> I tried a lot but couldn't find a solution yet and I am a bit desperate right 
> now.
> I hope, you can help me or point me into the right direction.
> 
> Thank you very much!
> 
> 
> Thank you very much!
> Regrads
> Jan

Reply via email to