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

Searchbox cannot be used inside a folder

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            danielbeck 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).

            Show
            danielbeck 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).
            Hide
            jglick Jesse Glick added a comment -
            Show
            jglick 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 .
            Hide
            danielbeck 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.

            Show
            danielbeck 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.
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            changelog.html
            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/64e832f9d6ff460a648eefcc5575158704b138b3
            Log:
            [FIXED JENKINS-24433] Noting merge of #1581.

            Compare: https://github.com/jenkinsci/jenkins/compare/1a8a00a82c3b...64e832f9d6ff

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html 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/64e832f9d6ff460a648eefcc5575158704b138b3 Log: [FIXED JENKINS-24433] Noting merge of #1581. Compare: https://github.com/jenkinsci/jenkins/compare/1a8a00a82c3b...64e832f9d6ff
            Hide
            scm_issue_link 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/0c2f237b261a76ddf6b6fc3b440fc91ab79467bf
            Log:
            JENKINS-24433 Searchbox doesn't work properly inside a folder

            (cherry picked from commit 44db6aef3f055455635da1e126bcd162c95f80df)

            Show
            scm_issue_link 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/0c2f237b261a76ddf6b6fc3b440fc91ab79467bf Log: JENKINS-24433 Searchbox doesn't work properly inside a folder (cherry picked from commit 44db6aef3f055455635da1e126bcd162c95f80df)
            Hide
            scm_issue_link 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/4535beee8552aeaa73e2d811e5a4e07cecd35a2d
            Log:
            JENKINS-24433 Improving tests

            (cherry picked from commit cb174607b348636eeaf27c6b0eab502ec1f2f3a6)

            Show
            scm_issue_link 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/4535beee8552aeaa73e2d811e5a4e07cecd35a2d Log: JENKINS-24433 Improving tests (cherry picked from commit cb174607b348636eeaf27c6b0eab502ec1f2f3a6)

              People

              • Assignee:
                fbelzunc FĂ©lix Belzunce Arcos
                Reporter:
                rocha909 Romain Chalumeau
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: