Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-2722

make UserManagerImpl.searchPrincipals not force substring search to avoid failure on large directories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.5, 5.2 M2
    • Fix Version/s: 5.1.6, 5.2 M3
    • Component/s: Directory
    • Impact type:
      Configuration format change
    • Upgrade notes:
      Hide

      The UserManager extension point syntax for defining custom user search fields has changed from:

      <users>
      <searchFields>
      <searchField>first</searchField>
      <searchField>last</searchField>
      </searchFields>
      </users>

      to:

      <users>
      <searchFields>
      <substringMatchSearchField>first</substringMatchSearchField>
      <exactMatchSearchField>last</exactMatchSearchField>
      </searchFields>
      </users>

      The old <searchField/> tags are interpreted as <substringMatchSearchField/> to maintain backward compatibility with the old syntax.

      Show
      The UserManager extension point syntax for defining custom user search fields has changed from: <users> <searchFields> <searchField>first</searchField> <searchField>last</searchField> </searchFields> </users> to: <users> <searchFields> <substringMatchSearchField>first</substringMatchSearchField> <exactMatchSearchField>last</exactMatchSearchField> </searchFields> </users> The old <searchField/> tags are interpreted as <substringMatchSearchField/> to maintain backward compatibility with the old syntax.

      Description

      Currently UserManager.searchPrincipals uses substring search on all userSearchFields which makes search on ID field only indexed for exact match fail on very large directories.

      Proposed fix: make it possible to choose between exact match and substring match for each field in the UserManager extension point configuration.

        Attachments

          Activity

            People

            • Assignee:
              ogrisel Olivier Grisel
              Reporter:
              ogrisel Olivier Grisel
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 1 hour
                1d 1h