[JIRA] Trying to submit a bug report (documentation issue)
Scott Cantor
scott at restingparrotsoftware.com
Mon Feb 9 20:37:35 UTC 2026
On Feb 9, 2026, at 3:20 PM, John Porter <jporter2 at swarthmore.edu> wrote:
>
> You are correct that we had one reference to Predicate (no S) and I have commented that out and one of the warnings does go away. This was in our cas-protocol.xml file. No issue doing away with that reference.
>
> But in our relying-party.xml file I have the following block which definitely is using predicateS (plural). I can comment out this block and reload relying party, 2 deprecated warnings go away. I can then uncomment this block and 2 deprecated warnings re-appear. This is the exact block I'm toggling. If it is the case that the deprecation warning is throwing a false negative, that would be fantastic!:
>
> <bean id="shibboleth.regexRelyingParty" parent="RelyingParty" >
> <property name="activationCondition" >
> <bean class="net.shibboleth.idp.profile.logic.RelyingPartyIdPredicate" >
> <constructor-arg name="pred" >
> <bean class="com.google.common.base.Predicates" factory-method="or" >
> <constructor-arg>
> <util:list>
> <bean class="com.google.common.base.Predicates" factory-method="containsPattern" c:_0="https:\/\/(.+\.)?redacted\.com\/.*" />
> <bean class="com.google.common.base.Predicates" factory-method="containsPattern" c:_0="https:\/\/redacted\.redacted\.edu\/.*" />
> </util:list>
> </constructor-arg>
> </bean>
> </constructor-arg>
> </bean>
> </property>
> <property name="profileConfigurations">
> <list>
> <ref bean="CAS.LoginConfiguration" />
> <ref bean="CAS.ProxyConfiguration" />
> <bean parent="CAS.ValidateConfiguration" p:userAttribute="email" />
> </list>
> </property>
> </bean>
My guess is the factory-method="or" call is manufacturing something that's triggering a warning I wouldn't think is even possible, but the replacement for that is already in the other page, it's the <bean parent="shibboleth.Conditions.OR"> syntax.
"contains" is not a method anything in Java supports so that one can't be replaced, but conjunctions are built-in.
There's no reason to comment anything out in either place, it's a matter of correction, not removal.
I don't even know when those warnings were removed but I can't find any reference to them anywhere in any version going back a very long way, so I suppose the warnings themselves are long gone by now. Or I just can't remember how they were generated. The Guava to Java predicate migration is very old, when V4 shipped on Java 11.
-- Scott
More information about the users
mailing list