Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-3514

Can't login with Crowd SSO user anymore if Crowd is started a bit later than Stash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.6.0
    • 2.4.2
    • None

    Description

      Steps to reproduce:

      1. Configure Stash to use Crowd SSO
      2. Make a script to start both Stash and Crowd at the same time
      3. Stash will get the following error in the log:
        2013-05-27 22:02:13,690 INFO  [http-bio-7990-exec-1] 1322x2x2 88.194.145.17,88.194.145.17 "GET /rest/capabilities HTTP/1.1" c.a.c.s.client.ClientPropertiesImpl Loading property: 'session.validationinterval' : '3'
        2013-05-27 22:02:13,690 INFO  [http-bio-7990-exec-1] 1322x2x2 88.194.145.17,88.194.145.17 "GET /rest/capabilities HTTP/1.1" c.a.c.s.client.ClientPropertiesImpl Failed to find value for property: cookie.domain
        2013-05-27 22:02:33,844 DEBUG [http-bio-7990-exec-1] 1322x2x2 88.194.145.17,88.194.145.17 "GET /rest/capabilities HTTP/1.1" c.a.s.p.a.c.i.DefaultCrowdSsoService Could not retrieve SSO cookie configuration
        com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://localhost:8095/rest/usermanagement/1/config/cookie
        	at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.executeCrowdServiceMethod(RestExecutor.java:455) ~[crowd-integration-client-rest-2.6.2-m4.jar:na]
        	at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:341) ~[crowd-integration-client-rest-2.6.2-m4.jar:na]
        	at com.atlassian.crowd.integration.rest.service.RestCrowdClient.getCookieConfiguration(RestCrowdClient.java:1017) ~[crowd-integration-client-rest-2.6.2-m4.jar:na]
        	at com.atlassian.stash.plugin.auth.crowd.internal.DefaultCrowdSsoService.fetchCookieConfiguration(DefaultCrowdSsoService.java:155) [stash-auth-crowd-sso-2.4.2_1369112172000.jar:na]
        	at com.atlassian.stash.plugin.auth.crowd.internal.DefaultCrowdSsoService.getConfiguration(DefaultCrowdSsoService.java:193) [stash-auth-crowd-sso-2.4.2_1369112172000.jar:na]
        
      4. Can't login to Stash with Crowd user anymore
      5. From the log, Crowd has been successfully started but still can't login:
        2013-05-27 22:02:49,471 INFO  [scheduler_Worker-4]  c.a.c.d.DbCachingRemoteDirectory FULL synchronisation complete for directory [ 819201 ] in [ 39971ms ]
        ...
        2013-05-27 22:02:52,613 DEBUG [http-bio-7990-exec-3] 1322x6x3 88.194.145.17,88.194.145.17 "GET /mvc/error404 HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.stash.stash-auth-crowd-sso:crowdSsoAuthHandler
        
      6. Login with internal user
      7. Re-add the Crowd directory
      8. Can login with Crowd user now

      This problem does not happen if Crowd is not started. Since this problem is intermittent, it might be Crowd is partly started that cause the problem.

      Attachments

        Activity

          People

            mheemskerk Michael Heemskerk (Inactive)
            klfoong Foong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: