[JIRA] (IDP-1890) Property resolution not working during stale request error

Constantin Matheis (Jira) jira at shibboleth.atlassian.net
Mon Dec 20 08:34:42 UTC 2021


Constantin Matheis ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=61bcb867643e8f006a760a6a ) *commented* on IDP-1890 ( https://shibboleth.atlassian.net/browse/IDP-1890?atlOrigin=eyJpIjoiNDA0Y2EwZTcwYWYwNDA4YmE1ZmFjYmVkMzM1OGFmZWYiLCJwIjoiaiJ9 )

Re: Property resolution not working during stale request error ( https://shibboleth.atlassian.net/browse/IDP-1890?atlOrigin=eyJpIjoiNDA0Y2EwZTcwYWYwNDA4YmE1ZmFjYmVkMzM1OGFmZWYiLCJwIjoiaiJ9 )

I tried this workaround in error.vm:

#if (!$environment && $springContext)
   #set ($environment = $springContext.getBean("environment"))
#end

Unfortunately, this won't work in every situation. Assume you have the following in idp.properties:

hello.string=hello
error.property=%{hello.string}

And use error.property in error.vm:

$environment.getProperty("error.property")

then the property reference doesn't work and %{hello.string} is written to the page.

( https://shibboleth.atlassian.net/browse/IDP-1890#add-comment?atlOrigin=eyJpIjoiNDA0Y2EwZTcwYWYwNDA4YmE1ZmFjYmVkMzM1OGFmZWYiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/IDP-1890#add-comment?atlOrigin=eyJpIjoiNDA0Y2EwZTcwYWYwNDA4YmE1ZmFjYmVkMzM1OGFmZWYiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100187- sha1:ac4c716 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20211220/fea67ef5/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-4401d48f-7273-4c8f-9f36-c60d968f7649
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211220/fea67ef5/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-34cc6f17-2e6d-435f-9d0b-c441240b5933
Type: image/png
Size: 425 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211220/fea67ef5/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-4ee04298-d609-4855-b267-3c23d1dc1582
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211220/fea67ef5/attachment-0005.png>


More information about the commits mailing list