A customer with a custom ConfluenceAuthenticator (based on the Soulwing CAS Authenticatory is reporting that their method calls for getUser in the userAccessor class are returning null.

      The result is odd, because the behaviour of the authenticator is to:

      1. Check whether or not they exist in Confluence
      2. Create the user account via userAcessor.addUser
      3. Check the user account just created.

      The user has been added, and saved in Confluence's database yet the subsequent call to check if the user exists returns a null. However, if the server is bounced, the getUser query is successful

      What looked to be caused by not using the userAccessor.saveUser, but implementing this method did not resolve the issue.
      After reviewing the customer's source code with Paul, we suspect this problem may be caused by a particular hibernate query failing to execute:

          <query name="atluser.user_findAllUserNames"><![CDATA[
              select user.name
              from DefaultHibernateUser user
              order by user.name
       ]]></query>
      

      Hibernate logs show null returned immediately after a user is added.

        1. atlassian-bucket-1.2-SNAPSHOT.jar
          137 kB
          Anatoli
        2. atlassian-confluence_with_hibernate_logging2.log
          7.27 MB
          Justin Sabelko
        3. confluence_confg_and_added_files.zip
          436 kB
          Justin Sabelko
        4. ConfluenceCasAuthenticator.java
          6 kB
          Justin Sabelko
        5. custom_code.zip
          54 kB
          Justin Sabelko
        6. tomcat_and_other_confluence_config_files.zip
          9 kB
          Justin Sabelko
        7. UscmConfluenceCasAuthenticator.java
          2 kB
          Justin Sabelko

            [CONFSERVER-10915] calling getUser via the userAccessor returns null

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2898836 ] New: CONFSERVER Bug Workflow v4 [ 2993298 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2791450 ] New: JAC Bug Workflow v3 [ 2898836 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2721423 ] New: JAC Bug Workflow v2 [ 2791450 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2391413 ] New: JAC Bug Workflow [ 2721423 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2271419 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2391413 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2221580 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2271419 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2166465 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2221580 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1923826 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2166465 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1726370 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1923826 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1682065 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1726370 ]

              shaffenden Steve Haffenden (Inactive)
              ktran Kevin Tran [Atlassian]
              Affected customers:
              7 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: