Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-42819

autocomplete-user returns 500 error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a bug
    • Low
    • None
    • 5.10.0
    • None

    Description

      Hi there,

      we test our plugins against the new release Confluecne 5.10.0 and found an error using the autocomplete-user class for a user picker. You use it the same way as we do and it also fails (Try "Manage Watchers").

      I started it with "atlas-debug".

      This call fails: http://localhost:1990/confluence/rest/prototype/1/search/user.json?max-results=10&query=admi&_=1234
      and returns

      GET http://localhost:1990/confluence/rest/prototype/1/search/user.json?max-results=10&query=ad 500 (Internal Server Error)
      XMLHttpRequest.send @ batch.js?atlassian.aui.raphael.disabled=true&devtoolbar=true&healthcheck-resources=true&hostenabled…:3533
      send @ batch.js?atlassian.aui.raphael.disabled=true&locale=en-GB:9585
      ajax @ batch.js?atlassian.aui.raphael.disabled=true&locale=en-GB:9064
      QuickSearchDropDown.options.getDataAndRunCallback @ batch.js?atlassian.aui.raphael.disabled=true&locale=en-GB:44185
      getDataAndRunCallback @ batch.js?atlassian.aui.raphael.disabled=true&locale=en-GB:43993
      (anonymous function) @ batch.js?atlassian.aui.raphael.disabled=true&locale=en-GB:44003
      

      This is the stacktrace at the backend:

      [INFO] [talledLocalContainer]  -- referer: http://localhost:1990/confluence/our.action | url: /confluence/rest/prototype/1/search/user.json | traceId: 82d7216ac7731038 | userName: admin
      [INFO] [talledLocalContainer] java.lang.NullPointerException: userkey
      [INFO] [talledLocalContainer] 	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
      [INFO] [talledLocalContainer] 	at com.atlassian.sal.api.user.UserKey.<init>(UserKey.java:24)
      [INFO] [talledLocalContainer] 	at com.atlassian.confluence.plugins.rest.entities.builders.PersonalInformationContentEntityBuilder.build(PersonalInformationContentEntityBuilder.java:154)
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            fb05aa474750 Paul Pasler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: