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

two portlets having the same name fails graphics

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If two portlets have the same name and one of them is a graphical portlet than the graphics of this portlet is not available.
      example:
      both portlets "Test Statistcs Grid" and "Test Statistics Chart" where used in the dashboard-view and got the same name "Test Stats". the grid is displayed without problem but the chart portlet just shows its title but no chart, just the text "[Test Summary graph]". (see attached screenshot)
      And if the tilte of the chart portlet gets clicked the test statistcs grid is displayed full size.

      either it should be prevented that two (different) portlets get the same name or it should work.

        Attachments

          Activity

          Hide
          petehayes Peter Hayes added a comment -

          You're right. The name of the portlet is used in the callback urls for the images. I think the fix here is to prevent portlets being named the same name.

          Show
          petehayes Peter Hayes added a comment - You're right. The name of the portlet is used in the callback urls for the images. I think the fix here is to prevent portlets being named the same name.
          Hide
          drulli Ulli Hafner added a comment -

          Wouldn't it be easier to use a static field in DashboardPortlet to compute the URL of a portlet? Currently, you can press OK in every screen of Hudson (event thought there are validation errors). Maybe a user wants to use the same name, isn't that restriction too hard?

          Show
          drulli Ulli Hafner added a comment - Wouldn't it be easier to use a static field in DashboardPortlet to compute the URL of a portlet? Currently, you can press OK in every screen of Hudson (event thought there are validation errors). Maybe a user wants to use the same name, isn't that restriction too hard?
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mambu
          Path:
          trunk/hudson/plugins/dashboard-view/src/main/java/hudson/plugins/view/dashboard/Dashboard.java
          trunk/hudson/plugins/dashboard-view/src/main/java/hudson/plugins/view/dashboard/DashboardPortlet.java
          trunk/hudson/plugins/dashboard-view/src/main/resources/hudson/plugins/view/dashboard/DashboardPortlet/config.jelly
          http://jenkins-ci.org/commit/31165
          Log:
          [dashboard-view] Added unique id to each portlet [FIXED JENKINS-6118]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mambu Path: trunk/hudson/plugins/dashboard-view/src/main/java/hudson/plugins/view/dashboard/Dashboard.java trunk/hudson/plugins/dashboard-view/src/main/java/hudson/plugins/view/dashboard/DashboardPortlet.java trunk/hudson/plugins/dashboard-view/src/main/resources/hudson/plugins/view/dashboard/DashboardPortlet/config.jelly http://jenkins-ci.org/commit/31165 Log: [dashboard-view] Added unique id to each portlet [FIXED JENKINS-6118]

            People

            • Assignee:
              mambu Marco Ambu
              Reporter:
              starfury starfury
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: