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

ItemGroup.getUrlChildPrefix not honored by views

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            See symptom in JENKINS-32178.

            Show
            jglick Jesse Glick added a comment - See symptom in JENKINS-32178 .
            Hide
            scm_issue_link 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.

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

              People

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

                Dates

                • Created:
                  Updated: