Also having a similar issue:

Caused by: java.lang.ClassCastException: 
org.opensaml.saml.ext.saml2mdui.impl.InformationURLImpl cannot be cast to 
org.opensaml.saml.saml2.metadata.LocalizedName
        at 
org.apereo.cas.support.saml.mdui.SamlMetadataUIInfo.loadLocalizedValues(SamlMetadataUIInfo.java:249)
 
~[cas-server-support-saml-mdui-core-5.1.7.jar:5.1.7]
        at 
org.apereo.cas.support.saml.mdui.SamlMetadataUIInfo.getInformationURL(SamlMetadataUIInfo.java:184)
 
~[cas-server-support-saml-mdui-core-5.1.7.jar:5.1.7]
        at 
org.apereo.cas.support.saml.mdui.SamlMetadataUIInfo.getInformationURL(SamlMetadataUIInfo.java:192)
 
~[cas-server-support-saml-mdui-core-5.1.7.jar:5.1.7]

On Thursday, August 24, 2017 at 6:51:55 AM UTC-4, Fabio Martelli wrote:
>
> Hi All, it seems there is a bug about Metadata UI info parsing. 
>
> Shortly, in SamlMetadataUIInfo, the methos getDisplayNames return a 
> Collection of String by using getStringValues method explicitly. 
>
> Unfortunately, the method to retrieve the localized display name 
> getDisplayName is leveraging on getLocalizedValues method which is 
> expecting a list of LocalizedName objects (not strings). 
>
> Thus, the parsing is failing reporting the following exception. 
>
> Can you confirm the bug? 
>
> BR, 
>
> F. 
>
> Caused by: java.lang.ClassCastException: java.lang.String cannot be cast 
> to org.opensaml.saml.saml2.metadata.LocalizedName 
>      at 
> org.apereo.cas.support.saml.mdui.SamlMetadataUIInfo.getLocalizedValues(SamlMetadataUIInfo.java:240)
>  
>
> ~[classes/:5.2.0-RC3-SNAPSHOT] 
>      at 
> org.apereo.cas.support.saml.mdui.SamlMetadataUIInfo.getDisplayName(SamlMetadataUIInfo.java:164)
>  
>
> ~[classes/:5.2.0-RC3-SNAPSHOT] 
>      at 
> org.apereo.cas.support.saml.mdui.SamlMetadataUIInfo.getDisplayName(SamlMetadataUIInfo.java:170)
>  
>
> ~[classes/:5.2.0-RC3-SNAPSHOT] 
>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_144] 
>      at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
>
> ~[?:1.8.0_144] 
>      at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  
>
> ~[?:1.8.0_144] 
>      at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_144] 
>      at 
> org.springframework.expression.spel.support.ReflectivePropertyAccessor$OptimalPropertyAccessor.read(ReflectivePropertyAccessor.java:636)
>  
>
> ~[spring-expression-4.3.10.RELEASE.jar:4.3.10.RELEASE] 
>      at 
> org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:213)
>  
>
> ~[spring-expression-4.3.10.RELEASE.jar:4.3.10.RELEASE] 
>      at 
> org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:94)
>  
>
> ~[spring-expression-4.3.10.RELEASE.jar:4.3.10.RELEASE] 
>      at 
> org.springframework.expression.spel.ast.PropertyOrFieldReference.access$000(PropertyOrFieldReference.java:46)
>  
>
> ~[spring-expression-4.3.10.RELEASE.jar:4.3.10.RELEASE] 
>      at 
> org.springframework.expression.spel.ast.PropertyOrFieldReference$AccessorLValue.getValue(PropertyOrFieldReference.java:379)
>  
>
> ~[spring-expression-4.3.10.RELEASE.jar:4.3.10.RELEASE] 
>      at 
> org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:88)
>  
>
> ~[spring-expression-4.3.10.RELEASE.jar:4.3.10.RELEASE] 
>      at 
> org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120)
>  
>
> ~[spring-expression-4.3.10.RELEASE.jar:4.3.10.RELEASE] 
>      at 
> org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:324)
>  
>
> ~[spring-expression-4.3.10.RELEASE.jar:4.3.10.RELEASE] 
>      at 
> org.thymeleaf.spring4.expression.SPELVariableExpressionEvaluator.evaluate(SPELVariableExpressionEvaluator.java:263)
>  
>
> ~[thymeleaf-spring4-3.0.7.RELEASE.jar:3.0.7.RELEASE] 
>
> -- 
> Fabio Martelli 
> https://it.linkedin.com/pub/fabio-martelli/1/974/a44 
> http://blog.tirasa.net/author/fabio/index.html 
>
> Tirasa - Open Source Excellence 
> http://www.tirasa.net/index.html?pk_campaign=email&pk_kwd=fm 
>
> Apache Syncope PMC 
> http://people.apache.org/~fmartelli/ 
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/91c5aad2-941b-4c48-8456-6f612ebb0c2d%40apereo.org.

Reply via email to