Uploaded image for project: 'Opencast'
  1. MH-9518

CAS Authentication fails with <casFilter>' and '<org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>' have the same 'order' value

    Details

    • Severity:
      Non Functioning
    • Steps to reproduce:
      Hide
      Steps to reproduce:
      1. replace the mh_default_org.xml with the security_sample_cas_xml
      2.add the URL to your CAS server to that file at a couple of places and adjust the URL of your matterhorn server
      3.start matterhorn
       
       Actual Results:
       ERROR (SpringSecurityConfigurationArtifactInstaller:121) - Unable to refresh spring security configuration file /opt/matterhorn_1.4-rc6/trunk/etc/security/mh_default_org.xml:

      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Filter beans '<casFilter>' and '<org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>' have the same 'order' value. When using custom filters, please make sure the positions do not conflict with default filters. Alternatively you can disable the default filters by removing the corresponding child elements from <http> and avoiding the use of <http auto-config='true'>.

      Offending resource: OSGi resource[file:/opt/matterhorn_1.4-rc6/trunk/etc/security/mh_default_org.xml|bnd.id=95|bnd.sym=matterhorn-kernel]

       
       Expected Results:

      CAS Auth enabled
       
       
       Workaround (if any):
       
      security_sample_cas_xml has bad definition. Change this line

          <sec:custom-filter position="FORM_LOGIN_FILTER" ref="casFilter" />

      to

          <sec:custom-filter after="FORM_LOGIN_FILTER" ref="casFilter" />





      Show
      Steps to reproduce: 1. replace the mh_default_org.xml with the security_sample_cas_xml 2.add the URL to your CAS server to that file at a couple of places and adjust the URL of your matterhorn server 3.start matterhorn    Actual Results:  ERROR (SpringSecurityConfigurationArtifactInstaller:121) - Unable to refresh spring security configuration file /opt/matterhorn_1.4-rc6/trunk/etc/security/mh_default_org.xml: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Filter beans '<casFilter>' and '<org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>' have the same 'order' value. When using custom filters, please make sure the positions do not conflict with default filters. Alternatively you can disable the default filters by removing the corresponding child elements from <http> and avoiding the use of <http auto-config='true'>. Offending resource: OSGi resource[file:/opt/matterhorn_1.4-rc6/trunk/etc/security/mh_default_org.xml|bnd.id=95|bnd.sym=matterhorn-kernel]    Expected Results: CAS Auth enabled      Workaround (if any):   security_sample_cas_xml has bad definition. Change this line     <sec:custom-filter position="FORM_LOGIN_FILTER" ref="casFilter" /> to     <sec:custom-filter after="FORM_LOGIN_FILTER" ref="casFilter" />

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              greg_logan Greg Logan
              Reporter:
              madxdog Wesley Alan Wriight
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases