Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50144

Autocomplete not consistent over user input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None

      In the Log Recorders page, when you add a new log recorder (or configure an existing one) there is an autocomplete field that help you find the log name you want.

      The suggestions that are shown are not consistent over the user input but over the server response timing. This cause user experience troubles.

      Reproduction steps (by code, require restart)
      • add a Thread.sleep() just before the return line of LogRecorder#doAutoCompleteLoggerName
      • run the instance
      • type "hudson", wait a second
      • append "z" (to have hudsonz)
      Reproduction steps (manual, just need an attached debugger)
      • put a breakpoint in LogRecorder#doAutoCompleteLoggerName's return line
      • edit that breakpoint to sleep like in the attached screenshot.
      • type "hudson", wait a second
      • append "z" (to have hudsonz)

      Expected behavior: the list of suggestion must be empty, and stay empty as there is no logger with name hudsonz.

      Actual behavior: the list is empty during a moment and then after the sleep (could be large as there is a lot of logger with hudson), a list of suggestion appeared, but it's related to hudson and not hudsonz, that's the bug.

            Unassigned Unassigned
            wfollonier Wadeck Follonier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: