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

Confluence search for "null" returns all users; behaviour differs from non-Crowdified Confluence

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Low Low
    • None
    • 1.6.1
    • None

      When a Confluence plugin searches for null users, Confluence returns nothing. If that Confluence instance is connected to Crowd, the Crowd atlassian-user integration interprets that as a search for all users, and returns that large list.

      Related issue in CSUM Plugin that discovered the issue: http://developer.atlassian.com/jira/browse/SUSR-93.

            [CWD-1492] Confluence search for "null" returns all users; behaviour differs from non-Crowdified Confluence

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1510758 ] New: JAC Bug Workflow v3 [ 3365267 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1391417 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1510758 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 272013 ] New: Simplified Crowd Development Workflow v2 [ 1391417 ]
            jawong.adm made changes -
            Workflow Original: JIRA Bug Workflow v2 [ 173963 ] New: Crowd Development Workflow v2 [ 272013 ]
            David O'Flynn [Atlassian] made changes -
            Resolution New: Obsolete [ 11 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]

            This is being fixed as part of Confluence 3.5's rewrite of the user-management system.

            David O'Flynn [Atlassian] added a comment - This is being fixed as part of Confluence 3.5's rewrite of the user-management system.
            Justin Koke made changes -
            Workflow Original: jira [ 171542 ] New: JIRA Bug Workflow v2 [ 173963 ]

            David, sounds great! We'll probably leave the workaround fix in future versions of the CSUM plugin (2.0.3+), but it will definitely be nice to have this work the same for both Confluence on its own and Confluence connected with Crowd:

            String partialSearchTerm = null;
            UserNameTermQuery query = new UserNameTermQuery(partialSearchTerm, TermQuery.SUBSTRING_STARTS_WITH);
            SearchResult result = userAccessor.findUsers(query);
            

            Gary Weaver added a comment - David, sounds great! We'll probably leave the workaround fix in future versions of the CSUM plugin (2.0.3+), but it will definitely be nice to have this work the same for both Confluence on its own and Confluence connected with Crowd: String partialSearchTerm = null ; UserNameTermQuery query = new UserNameTermQuery(partialSearchTerm, TermQuery.SUBSTRING_STARTS_WITH); SearchResult result = userAccessor.findUsers(query);

            Thanks for adding this, David. It would definitely help to have the behavior be consistent one way or the other (and I'd vote for the Confluence version).

            -Timo
            P.S. I dig the "non-Crowdified" phraseology.

            Tim Colson added a comment - Thanks for adding this, David. It would definitely help to have the behavior be consistent one way or the other (and I'd vote for the Confluence version). -Timo P.S. I dig the "non-Crowdified" phraseology.
            David O'Flynn [Atlassian] created issue -

              doflynn David O'Flynn [Atlassian]
              doflynn David O'Flynn [Atlassian]
              Affected customers:
              2 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: