Question about CacheKeyTemplate

Krinetzki, Stephan Krinetzki at itc.rwth-aachen.de
Thu Aug 14 07:31:04 UTC 2025


Hi Scott,

sadly the Key is not logged:

2025-08-14 09:27:42,857|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:329]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Creating request using attribute resolution context net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext at 6b78aa6
2025-08-14 09:27:42,859|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:347]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Adding dependency rwthFIMID to context with 1 value(s)
2025-08-14 09:27:42,862|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:395]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Creating cache key using attribute resolution context net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext at 6b78aa6
2025-08-14 09:27:42,863|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:407]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Adding dependency rwthFIMID to context with 1 value(s)
2025-08-14 09:27:43,421|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:329]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Creating request using attribute resolution context net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext at 6b78aa6
2025-08-14 09:27:43,422|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:347]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Adding dependency rwthFIMID to context with 1 value(s)
2025-08-14 09:27:43,423|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:395]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Creating cache key using attribute resolution context net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext at 6b78aa6
2025-08-14 09:27:43,423|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:407]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Adding dependency rwthFIMID to context with 1 value(s)
2025-08-14 09:27:43,526|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:329]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Creating request using attribute resolution context net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext at 6b78aa6
2025-08-14 09:27:43,527|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:347]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Adding dependency rwthFIMID to context with 1 value(s)
2025-08-14 09:27:43,528|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:395]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Creating cache key using attribute resolution context net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext at 6b78aa6
2025-08-14 09:27:43,528|TRACE|[net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder:407]|134.130.43.118|6C107D015EDF3AA241E3B682B8B9E110|Adding dependency rwthFIMID to context with 1 value(s)

There is just the info that a cache key is created

Regards 

Stephan

--
Stephan Krinetzki
 
IT Center
Gruppe: Anwendungsbetrieb und Cloud
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23 
52074 Aachen
Tel: +49 241 80-24866
Fax: +49 241 80-22134
krinetzki at itc.rwth-aachen.de
www.itc.rwth-aachen.de

Social Media Kanäle des IT Centers:
https://blog.rwth-aachen.de/itc/ 
https://www.facebook.com/itcenterrwth 
https://www.linkedin.com/company/itcenterrwth
https://twitter.com/ITCenterRWTH
https://www.youtube.com/channel/UCKKDJJukeRwO0LP-ac8x8rQ​

-----Original Message-----
From: Cantor, Scott <cantor.2 at osu.edu> 
Sent: Wednesday, August 13, 2025 4:09 PM
To: Shib Users <users at shibboleth.net>
Cc: Krinetzki, Stephan <Krinetzki at itc.rwth-aachen.de>
Subject: Re: Question about CacheKeyTemplate

> However, this has now led to an error: Apparently, all users have now 
> received the same cached entry.

If you want a direct read on it, set this category to TRACE for logging:

net.shibboleth.idp.attribute.resolver.dc.http.impl.TemplatedBodyBuilder

It will dump out the cache key it generates.

Velocity defaults to handling "invalid or non-exixtent" references to variables by just echoing through the literal text of the variable expression, so if they're all getting the same one, it's likely that expression isn't right and there is no such attribute being fed in.

Or there's a bug of course.

All my caching connectors are GET, so I have not had to try the feature.

-- Scott


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7338 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20250814/2305adf0/attachment.p7s>


More information about the users mailing list