Velocity code not rendering in error.vm

Wessel, Keith kwessel at illinois.edu
Tue Apr 11 12:36:39 EDT 2017


That makes sense.

Is there an easy way, when $environment isn't available, to get an external variable? Would I need to use the custom variable to pass in the needed class? I'm guessing, if environment isn't available, neither would be custom, and I'm a bit stumped how else I'd pull in that variable. Any hints appreciated.

Keith


-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: Tuesday, April 11, 2017 11:33 AM
To: Shib Users <users at shibboleth.net>
Subject: RE: Velocity code not rendering in error.vm

> At this point, nearly any error condition I get the IdP to throw is displaying the
> unrendered Velocity code. In particular, the stale request error definitely
> displays it.

That's because that's almost always an MVC error raised in response to a Spring Web Flow exception. It would never be populated there. You have to conditionally evaluate the variables, and if you really need whatever is being set there you'll have to get it in some other way.

-- Scott

-- 
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net


More information about the users mailing list