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

ItemGroup.getUrlChildPrefix not honored by views

      View.getJob(String} works for URL binding only in case ItemGroup.getUrlChildPrefix returns "job". It would be nicer to allow "item", "branch", etc. to be used, but these do not get URL-bound. Perhaps View.getDynamic(String) needs to consider the prefix?

      (AbstractFolder could do the same, though it is expected that a subclass overriding getUrlChildPrefix would add a static binding getter.)

      According to AbstractItem.getShortUrl, the prefix may be ".", which is to say no prefix at all. This is used by MatrixProject and others, though I suspect never for a TopLevelItem child.

          [JENKINS-35243] ItemGroup.getUrlChildPrefix not honored by views

          Jesse Glick added a comment -

          See symptom in JENKINS-32178.

          Jesse Glick added a comment - See symptom in JENKINS-32178 .

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/com/cloudbees/hudson/plugins/folder/AbstractFolder.java
          http://jenkins-ci.org/commit/cloudbees-folder-plugin/40f005e0cec4b4ffa9df5267c48dc47ab2dd7620
          Log:
          JENKINS-35243 Adding a TODO comment at @stephenc’s suggestion.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/com/cloudbees/hudson/plugins/folder/AbstractFolder.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/40f005e0cec4b4ffa9df5267c48dc47ab2dd7620 Log: JENKINS-35243 Adding a TODO comment at @stephenc’s suggestion.

          Jesse Glick added a comment -

          Nonstandard values will also break the normal JENKINS-19413 trick.

          Jesse Glick added a comment - Nonstandard values will also break the normal JENKINS-19413 trick.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: