Uploaded image for project: 'Gateway'
  1. Gateway
  2. GTWY-2201

login failing if more than one user with the same username present at the gateway

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.3.0-M3, 1.3.0
    • 1.3.0-M1
    • Login
    • None

      If a user from a different Gateway is present at a gateway where there's already a user with the same username, it is impossible to login (apparently the wrong user is picked up and the empty password string is tried to be parsed).

      Exception extract:
      2011-03-09 10:06:39,640 sgf.gateway.web.filters.exception.UnhandledExceptionFilter [ERROR]: This exception that was not handled by the UnhandledExceptionFilter
      java.lang.NullPointerException
              at sgf.gateway.service.security.impl.acegi.FreeBSDCryptPasswordEncoder.isPasswordValid(FreeBSDCryptPasswordEncoder.java:61)
              at org.springframework.security.authentication.dao.DaoAuthenticationProvider.additionalAuthenticationChecks(DaoAuthenticationProvider.java:68)
              at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:146)
              at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:130)

      I also see the following error message when starting the Gateway. I'm not sure it's related though:
      INFO 3/8/11 10:47 AM:liquibase: Successfully acquired change log lock
      INFO 3/8/11 10:47 AM:liquibase: Reading from public.databasechangelog
      INFO 3/8/11 10:47 AM:liquibase: Reading from public.databasechangelog
      INFO 3/8/11 10:47 AM:liquibase: Successfully released change log lock
      INFO 3/8/11 10:47 AM:liquibase: Successfully acquired change log lock
      INFO 3/8/11 10:47 AM:liquibase: Reading from public.databasechangelog
      INFO 3/8/11 10:47 AM:liquibase: Reading from public.databasechangelog
      INFO 3/8/11 10:47 AM:liquibase: Executing: classpath:liquibase/update-v1/changelog.xml despite precondition failure due to onFail='WARN':
            1 preconditions failed
           classpath:liquibase/update-v1/changelog.xml : SQL Precondition failed. Expected '1' got '2'

      INFO 3/8/11 10:47 AM:liquibase: Successfully released change log lock
      INFO 3/8/11 10:47 AM:liquibase: Successfully acquired change log lock
      INFO 3/8/11 10:47 AM:liquibase: Reading from public.databasechangelog
      INFO 3/8/11 10:47 AM:liquibase: Reading from public.databasechangelog
      INFO 3/8/11 10:47 AM:liquibase: Successfully released change log lock

              cgrant Christy Grant
              estanislao.gonzalez Estanislao Gonzalez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: