Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2665

Installation creates username and groups when it fails to resolve local host name.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2.6
    • None
    • None
    • None

      From Scott McCulley,

      I ran in to some difficulties during the install of Crowd. I thought I might bring them up to as something to address in your next release.

      1) During the configuration of the default admin, the application attempts to resolve the hostname of the server. If it fails, it reports error. But before it does, it adds the user and group to the DB so it is impossible to re-use that admin user or create a new one, since the group already exists.

      Question:

      Is it really necessary to attempt to resolve the hostname of the server?  What if (and I am) using a different name to access Crowd, and it isn't the name of the server??
      

      Suggestion:

      1)  Ask for the name of the server (actually, I think you do.)  Then use that server name instead of attempting to use the hostname.
      2)  Don't create the user if you intend to fail.  Or if you fail, drop the user from the DB, so it can be re-used later.
      3)  Same goes for the admin group as well...
      

      Error log:

      2011-09-18 19:34:20,050 http-8095-1 INFO [console.action.setup.SelectSetupStep] Current setup step is /console/setup/directoryinternalsetup.action
      2011-09-18 19:34:24,651 http-8095-1 INFO [console.action.setup.SelectSetupStep] Current setup step is /console/setup/defaultadministrator.action
      2011-09-18 19:34:46,700 http-8095-1 ERROR [console.action.setup.DefaultAdministrator] web3.cardboard-box.com: web3.cardboard-box.com
      java.net.UnknownHostException: web3.cardboard-box.com: web3.cardboard-box.com
              at java.net.InetAddress.getLocalHost(InetAddress.java:1360)
              at com.atlassian.crowd.console.action.setup.DefaultAdministrator.addCrowdApplication(DefaultAdministrator.java:213)
              at com.atlassian.crowd.console.action.setup.DefaultAdministrator.doUpdate(DefaultAdministrator.java:112)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
      

            [CWD-2665] Installation creates username and groups when it fails to resolve local host name.

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1511064 ] New: JAC Bug Workflow v3 [ 3365565 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1393085 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1511064 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 344939 ] New: Simplified Crowd Development Workflow v2 [ 1393085 ]
            Diego Berrueta made changes -
            Remote Link New: This issue links to "Wiki Page (Extranet)" [ 34483 ]
            joe made changes -
            Link New: This issue is related to CWD-3061 [ CWD-3061 ]
            joe made changes -
            Fix Version/s New: 2.6 [ 25892 ]
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
            joe made changes -
            Sprint New: Sprint 7 [ 338 ]
            joe made changes -
            Rank New: Ranked higher
            joe made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            joe made changes -
            Assignee New: joe [ jwalton ]
            Vincent Choy (Inactive) created issue -

              jwalton joe
              vchoy Vincent Choy (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: