• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Jenkins ver. 1.559
      CloudBees Folders Plugin 4.5

      When using the jenkins searchbox inside a folder, the current folder path is kept in the search results.

      For instance, in my svr "my_jenkins", i am in the "my_folder" folder.
      I search the job "a_job", it returns the result "job/another_folder/job/a_job"

      The final url is http://my_jenkins/job/my_folder/job/another_folder/job/a_job which returns a 404.

      It works fine when used at the root level.

          [JENKINS-24433] Searchbox cannot be used inside a folder

          Romain Chalumeau created issue -

          Daniel Beck added a comment - - edited

          Likely a result from https://github.com/jenkinsci/jenkins/pull/893 (or rather, that commit added support for that kind of search to begin with, but didn't consider the case described here).

          Daniel Beck added a comment - - edited Likely a result from https://github.com/jenkinsci/jenkins/pull/893 (or rather, that commit added support for that kind of search to begin with, but didn't consider the case described here).

          Jesse Glick added a comment -

          Jesse Glick added a comment - Weird, I had thought I fixed up the search bar for folders in https://github.com/jenkinsci/cloudbees-folder-plugin/commit/c006194cec064331b273050177d67c883b6e6d27 .

          Daniel Beck added a comment -

          Same issue occurs when in a folder 'F' and searching for the top-level job 'a', it will jump to /job/F/job/a rather than /job/a.

          Reproduced on 1.577-SNAPSHOT from Aug 20 with Folders 4.6.1.

          Daniel Beck added a comment - Same issue occurs when in a folder 'F' and searching for the top-level job 'a', it will jump to /job/F/job/a rather than /job/a. Reproduced on 1.577-SNAPSHOT from Aug 20 with Folders 4.6.1.
          Jesse Glick made changes -
          Assignee Original: Jesse Glick [ jglick ] New: Félix Belzunce Arcos [ fbelzunc ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 1581 (Web Link)" [ 12123 ]
          Ryan Campbell made changes -
          Labels Original: folders gui New: folders gui lts-candidate

          Code changed in jenkins
          User: Felix Belzunce Arcos
          Path:
          core/src/main/java/hudson/search/Search.java
          core/src/main/java/hudson/search/SuggestedItem.java
          test/src/test/java/hudson/search/SearchTest.java
          http://jenkins-ci.org/commit/jenkins/44db6aef3f055455635da1e126bcd162c95f80df
          Log:
          JENKINS-24433 Searchbox doesn't work properly inside a folder

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Felix Belzunce Arcos Path: core/src/main/java/hudson/search/Search.java core/src/main/java/hudson/search/SuggestedItem.java test/src/test/java/hudson/search/SearchTest.java http://jenkins-ci.org/commit/jenkins/44db6aef3f055455635da1e126bcd162c95f80df Log: JENKINS-24433 Searchbox doesn't work properly inside a folder

          Code changed in jenkins
          User: Felix Belzunce Arcos
          Path:
          test/src/test/java/hudson/search/SearchTest.java
          http://jenkins-ci.org/commit/jenkins/cb174607b348636eeaf27c6b0eab502ec1f2f3a6
          Log:
          JENKINS-24433 Improving tests

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Felix Belzunce Arcos Path: test/src/test/java/hudson/search/SearchTest.java http://jenkins-ci.org/commit/jenkins/cb174607b348636eeaf27c6b0eab502ec1f2f3a6 Log: JENKINS-24433 Improving tests

            fbelzunc Félix Belzunce Arcos
            rocha909 Romain Chalumeau
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: