Uploaded image for project: 'UY'
  1. UY
  2. UY-661

SAML request processing fails on dynamic attribute with disabled consent and user preferences

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: v2.4.0
    • Labels:
      None

      Description

      As reported from PCSS. For this bug to be triggered user must filter some attributes with preferences.

      2017-12-19T11:30:32,571 [qtp1815672030-29] DEBUG unity.server.saml.SSOResponseHandler: Sending SAML error to https://eptest.eudat.psnc.pl/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp in effect of exception handling
      java.lang.IllegalArgumentException: attribute type [memberOf] does not exist
          at pl.edu.icm.unity.store.rdbms.GenericNamedRDBMSCRUD.get(GenericNamedRDBMSCRUD.java:97) ~[unity-server-storage-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.engine.attribute.AttributeTypeHelper.getSyntaxForAttributeName(AttributeTypeHelper.java:75) ~[unity-server-engine-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.engine.attribute.AttributeTypeHelper$$FastClassBySpringCGLIB$$eca98da4.invoke(<generated>) ~[unity-server-engine-2.4.0-SNAPSHOT.jar:?]
          at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at pl.edu.icm.unity.store.rdbms.tx.SQLTransactionEngine.runInTransaction(SQLTransactionEngine.java:45) ~[unity-server-storage-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.store.tx.TransactionalAspect.retryIfNeeded4Method(TransactionalAspect.java:75) ~[unity-server-storage-2.4.0-SNAPSHOT.jar:?]
          at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) ~[?:?]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
          at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
          at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at pl.edu.icm.unity.engine.attribute.AttributeTypeHelper$$EnhancerBySpringCGLIB$$440f79ce.getSyntaxForAttributeName(<generated>) ~[unity-server-engine-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.engine.attribute.AttributeTypeSupportImpl.getSyntax(AttributeTypeSupportImpl.java:44) ~[unity-server-engine-2.4.0-SNAPSHOT.jar:?]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
          at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
          at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at pl.edu.icm.unity.store.rdbms.tx.SQLTransactionEngine.runInTransaction(SQLTransactionEngine.java:45) ~[unity-server-storage-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.store.tx.TransactionalAspect.retryIfNeeded4Method(TransactionalAspect.java:75) ~[unity-server-storage-2.4.0-SNAPSHOT.jar:?]
          at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) ~[?:?]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
          at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
          at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) ~[spring-aop-4.3.10.RELEASE.jar:4.3.10.RELEASE]
          at com.sun.proxy.$Proxy60.getSyntax(Unknown Source) ~[?:?]
          at pl.edu.icm.unity.saml.idp.processor.BaseResponseProcessor.findValue(BaseResponseProcessor.java:297) ~[unity-server-saml-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.saml.idp.processor.BaseResponseProcessor.filterAttributesWithPreferences(BaseResponseProcessor.java:284) ~[unity-server-saml-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.saml.idp.processor.BaseResponseProcessor.getAttributes(BaseResponseProcessor.java:258) ~[unity-server-saml-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.saml.idp.web.filter.IdpConsentDeciderServlet.autoReplay(IdpConsentDeciderServlet.java:200) [unity-server-saml-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.saml.idp.web.filter.IdpConsentDeciderServlet.serviceInterruptible(IdpConsentDeciderServlet.java:149) [unity-server-saml-2.4.0-SNAPSHOT.jar:?]
          at pl.edu.icm.unity.saml.idp.web.filter.IdpConsentDeciderServlet.doPost(IdpConsentDeciderServlet.java:117) [unity-server-saml-2.4.0-SNAPSHOT.jar:?]

        Attachments

          Activity

            People

            • Assignee:
              golbi Krzysztof Benedyczak
              Reporter:
              golbi Krzysztof Benedyczak
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: