Matadata aggregator , federation named groupID for filters

Ian Young ian at iay.org.uk
Thu May 5 13:04:54 UTC 2022



> On 2022-05-04, at 22:08, jehan.procaccia at tem-tsp.eu wrote:
> 
> I realized that by default there is no ValidUntil , nor CacheDuration after aggregation by aggregator-cli-0.9.2
> 
Right.

> so I took my sample config from old aggregator-cli-0.7.0  adding stages addValidUntil and addCacheDuration in my config file [3] + associated beans definitions [4] 
> 
> unfortunatly it did not create a validUntil and cacheDuration in the main aggregator element EntitiesDescriptor [1]  => this is where I want it ! , but finally appears in each individual EntityDescriptor [2] (which I don't need) 
> 
> is my config file ([3] / [4] ) incorrect  ?
> 
In a pipeline, a collection of items is passed to each listed stage in turn. In your pipeline, you collect the entities and then apply the cacheDuration and validUntil stages, then a stage to collect those into an EntitiesDescriptor. You're asking those two stages to operate on the individual entities rather than on the EntitiesDescriptor.

If you want those two stages to act on the EntitiesDescriptor rather than the individual entities, you need to move them down the pipeline until after the entities have been combined into an EntitiesDescriptor:

>                 <ref bean="createEntitiesDescriptor"/>
> 
>                 <ref bean="addCacheDuration"/>
>                 <ref bean="addValidUntil"/>
> 

Hope that helps,

    -- Ian




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20220505/52d3c11e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3883 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20220505/52d3c11e/attachment.p7s>


More information about the users mailing list