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

DRY plugin report generation - Hudson not on root

    XMLWordPrintable

Details

    Description

      When Hudson is not installed at the root of the webserver, the DRY plugin report
      does not render correctly. this is what shows up on the browser.

      Quote:
      dragdrop/dragdrop-min.js">Skip to content
      title
      help for search
      login | sign up
      Hudson » MarketRisk » #1405 » Duplicate Code
      End quote:

      Quote: (view source)
      dragdrop/dragdrop-min.js"></script><script
      src="/static/0d946710/scripts/hudson-behavior.js"
      type="text/javascript"></script><link type="text/css" rel="stylesheet"
      href="/static/0d946710/scripts/yui/container/assets/container.css"></link><link
      type="text/css" rel="stylesheet"
      href="/static/0d946710/scripts/yui/assets/skins/sam/skin.css"></link><link
      type="text/css" rel="stylesheet"
      href="/static/0d946710/scripts/yui/button/assets/skins/sam/button.css"></link><link
      type="text/css" rel="stylesheet"
      href="/static/0d946710/scripts/yui/menu/assets/skins/sam/menu.css"></link><link
      type="application/opensearchdescription+xml" rel="search" title="Hudson"
      href="/opensearch.xml"></link><meta content="INDEX,NOFOLLOW"
      name="ROBOTS"></meta></head><body class="yui-skin-sam"><a class="skiplink"
      href="#skip2content">Skip to content</a><table border="0" width="100%"
      cellpadding="0" cellspacing="0" id="header"><tr><td id="top-panel"
      colspan="2"><table border="0" width="100%" cellpadding="0"
      cellspacing="0"><tr><td style="font-weight:bold; font-size: 2em;"><a
      href="/"><img src="/static/0d946710/images/title.png"
      alt="title"></img></a></td><td style="vertical-align: middle; text-align: right;
      padding-right: 1em;"><form style="position:relative;" class="no-json"
      action="/job/MarketRisk/1405/search/" method="get" name="search"><div
      id="search-box-minWidth"></div><div id="search-box-sizer"></div><div
      id="searchform"><input class="has-default-text defaulted" value="search"
      id="search-box" name="q"></input> <a
      href="http://hudson.gotdns.com/wiki/display/JENKINS/Search+Box"><img
      src="/static/0d946710/images/16x16/help.png" alt="help for
      search"></img></a><div
      id="search-box-completion"></div><script>createSearchBox("/job/MarketRisk/1405/search/");</script></div></form></td><td
      id="login-field"><span> <a style="color:inherit"
      href="/login?from=/job/MarketRisk/1405/dryResult/ "><b>login</b></a>

      <a href="/signup"><b>sign up</b></a></span></td></tr></table></td></tr><tr
      id="top-nav"><td id="left-top-nav"><a href="/">Hudson</a> » <a
      href="/job/MarketRisk/">MarketRisk</a> » <a
      href="/job/MarketRisk/1405/">#1405</a> » <a
      href="/job/MarketRisk/1405/dryResult/">Duplicate Code</a></td><td
      id="right-top-nav"></td></tr></table><table style="background-image:
      url(/static/0d946710/images/hudson.png); background-repeat:
      no-repeat; background-position: bottom left;" border="0" width="100%"
      id="main-table" height="70%"><tr><td width="20%" id="side-panel"><div
      style="margin-left: 20px; margin-right: 20px; border-top: 1px solid
      #bbb"></div><div id="navigation"><div id="tasks"><div class="task"><a
      href="/job/MarketRisk/"><img src="/static/0d946710/images/24x24/up.gif"
      style="margin: 2px;" width="24" alt="" height="24"></img></a> <a
      href="/job/MarketRisk/">Back to Project</a></div><div class="task"><a
      href="/job/MarketRisk/1405/"><img src="/static/0d946710/images/24x24/search.gif"
      style="margin: 2px;" width="24" alt="" height="24"></img></a> <a
      href="/job/MarketRisk/1405/">Status</a></div><div class="task"><a
      href="/job/MarketRisk/1405/changes"><img
      src="/static/0d946710/images/24x24/notepad.gif" style="margin: 2px;" width="24"
      alt="" height="24"></img></a> <a
      href="/job/MarketRisk/1405/changes">Changes</a></div><div class="task"><a
      href="/job/MarketRisk/1405/console"><img
      src="/static/0d946710/images/24x24/terminal.gif" style="margin: 2px;" width="24"
      alt="" height="24"></img></a> <a href="/job/MarketRisk/1405/console">Console
      Output</a> <a href="/job/MarketRisk/1405/consoleText">[raw]</a></div><div
      class="task"><a href="/job/MarketRisk/1405/tagBuild/"><img
      src="/static/0d946710/images/24x24/save.gif" style="margin: 2px;" width="24"
      alt="" height="24"></img></a> <a href="/job/MarketRisk/1405/tagBuild/">Tag this
      build</a></div><div class="task"><a href="/job/MarketRisk/1405/violations/"><img
      src="/plugin/violations/images/24x24/dialog-warning.png" style="margin: 2px;"
      width="24" alt="" height="24"></img></a> <a
      href="/job/MarketRisk/1405/violations/">Violations</a></div><div class="task"><a
      href="/job/MarketRisk/1405/redeploy/"><img
      src="/static/0d946710/images/24x24/redo.gif" style="margin: 2px;" width="24"
      alt="" height="24"></img></a> <a href="/job/MarketRisk/1405/redeploy/">Redeploy
      Artifacts</a></div><div class="task"><a
      href="/job/MarketRisk/1405/pmdResult/"><img
      src="/plugin/pmd/icons/pmd-24x24.gif" style="margin: 2px;" width="24" alt=""
      height="24"></img></a> <a href="/job/MarketRisk/1405/pmdResult/">PMD
      Warnings</a></div><div class="task"><a
      href="/job/MarketRisk/1405/dryResult/"><img
      src="/plugin/dry/icons/dry-24x24.png" style="margin: 2px;" width="24" alt=""
      height="24"></img></a> <a href="/job/MarketRisk/1405/dryResult/"><b>Duplicate
      Code</b></a><div class="subtasks"></div></div><div class="task"><a
      href="/job/MarketRisk/1405/testReport/"><img
      src="/static/0d946710/images/24x24/clipboard.gif" style="margin: 2px;"
      width="24" alt="" height="24"></img></a> <a
      href="/job/MarketRisk/1405/testReport/">Test Result</a></div><div
      class="task"><a href="/job/MarketRisk/1405/fingerprints/"><img
      src="/static/0d946710/images/24x24/fingerprint.gif" style="margin: 2px;"
      width="24" alt="" height="24"></img></a> <a
      href="/job/MarketRisk/1405/fingerprints/">See Fingerprints</a></div><div
      class="task"><a href="/job/MarketRisk/1404/dryResult/"><img
      src="/static/0d946710/images/24x24/previous.gif" style="margin: 2px;" width="24"
      alt="" height="24"></img></a> <a href="/job/MarketRisk/1404/dryResult/">Previous
      Build</a></div><div class="task"><a href="/job/MarketRisk/1406/dryResult/"><img
      src="/static/0d946710/images/24x24/next.gif" style="margin: 2px;" width="24"
      alt="" height="24"></img></a> <a href="/job/MarketRisk/1406/dryResult/">Next
      Build</a></div></div></div></td><td width="80%" id="main-panel" height="100%"><a
      name="skip2content"></a><h1>Duplicate Code Result</h1><h2>Warnings
      Trend</h2><table class="pane" id="summary"><tr><td class="pane-header">All
      Warnings</td><td class="pane-header">New Warnings</td><td
      class="pane-header">Fixed Warnings</td></tr><tbody><tr><td
      class="pane">188</td><td class="pane"><a href="new">188</a></td><td class="pane">

      0
      </td></tr></tbody></table><h2>Summary</h2><table class="pane"
      id="dry.summary"><tr><td class="pane-header">Total</td><td
      class="pane-header">High Priority</td><td class="pane-header">Normal
      Priority</td><td class="pane-header">Low Priority</td></tr><tbody><tr><td
      class="pane">188</td><td class="pane"><a href="HIGH">12</a></td><td
      class="pane"><a href="NORMAL">70</a></td><td class="pane"><a
      href="LOW">106</a></td></tr></tbody></table><script
      src="/plugin/dry/yui/utilities.js" type="text/javascript"></script><script
      src="/plugin/dry/yui/tabview-min.js" type="text/javascript"></script><script
      src="/plugin/dry/yui/dispatcher-min.js" type="text/javascript"></script><script
      type="text/javascript">
      var myTabs = new YAHOO.widget.TabView("statistics");

      YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab(

      { label: 'Modules', dataSrc: 'tab.modules', cacheData: true, active: false }

      ), myTabs);

      YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab(

      { label: 'Packages', dataSrc: 'tab.packages', cacheData: true, active: false }

      ), myTabs);

      YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab(

      { label: 'Files', dataSrc: 'tab.files', cacheData: true, active: false }

      ), myTabs);

      YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab(

      { label: 'Warnings', dataSrc: 'tab.warnings', cacheData: true, active: false }

      ), myTabs);

      YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab(

      { label: 'New', dataSrc: 'tab.new', cacheData: true, active: false }

      ), myTabs);

      YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab(

      { label: 'High', dataSrc: 'tab.high', cacheData: true, active: false }

      ), myTabs);

      YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab(

      { label: 'Normal', dataSrc: 'tab.normal', cacheData: true, active: false }

      ), myTabs);

      YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab(

      { label: 'Low', dataSrc: 'tab.low', cacheData: true, active: false }

      ), myTabs);

      myTabs.set('activeIndex', 0);

      </script><style type="text/css">

      /* .yui-navset defaults to .yui-navset-top */
      .yui-skin-sam .yui-navset .yui-nav,
      .yui-skin-sam .yui-navset .yui-navset-top .yui-nav

      { /* protect nested tabviews from other orientations */ border:solid #b0b0b0; /* color between tab list and content */ border-width:0 0 0px; color:#bbb; Xposition:relative; zoom:1; }

      .yui-skin-sam .yui-navset .yui-nav li,
      .yui-skin-sam .yui-navset .yui-navset-top .yui-nav li

      { margin:0 0.16em 0 0; /* space between tabs */ padding:1px 0 0; /* gecko: make room for overflow */ zoom:1; }

      .yui-skin-sam .yui-navset .yui-nav a,
      .yui-skin-sam .yui-navset .yui-navset-top .yui-nav a

      { background:#ffffff url(../../../../assets/skins/sam/sprite.png) repeat-x; /* tab background */ border:solid #b0b0b0; border-width:0 1px; color:#000; text-decoration:none; }

      .yui-skin-sam .yui-navset .yui-nav a em,
      .yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em

      { border:solid #b0b0b0; border-width:1px 0 0; cursor:hand; padding:0.25em .75em; left:0; right: 0; bottom: 0; /* protect from other orientations */ top:-1px; /* for 1px rounded corners */ position:relative; }

      .yui-skin-sam .yui-navset .yui-nav .selected a,
      .yui-skin-sam .yui-navset .yui-nav .selected a:focus, /* no focus effect
      for selected */
      .yui-skin-sam .yui-navset .yui-nav .selected a:hover

      { /* no hover effect for selected */ background:#f0f0f0 url(../../../../assets/skins/sam/sprite.png) repeat-x left -1400px; /* selected tab background */ color:#000; font-weight:bold; }

      .yui-skin-sam .yui-navset .yui-nav a:hover,
      .yui-skin-sam .yui-navset .yui-nav a:focus

      { background:#b0b0b0 url(../../../../assets/skins/sam/sprite.png) repeat-x left -1300px; /* selected tab background */ outline:0; border-bottom: 1px solid #b0b0b0; }

      .yui-skin-sam .yui-navset .yui-nav .selected a em

      { padding:0.35em 0.75em; /* raise selected tab */ }

      .yui-skin-sam .yui-navset .yui-nav .selected a,
      .yui-skin-sam .yui-navset .yui-nav .selected a em

      { border-color:#b0b0b0; /* selected tab border color */ }

      .yui-skin-sam .yui-navset .yui-content

      { background:#ffffff; /* content background color */ }

      .yui-skin-sam .yui-navset .yui-content,
      .yui-skin-sam .yui-navset .yui-navset-top .yui-content

      { border:1px solid #b0b0b0; /* content border */ border-top-color:#b0b0b0; /* different border color */ padding:0.25em 0.5em; /* content padding */ }

      #statistics .yui-content

      { padding:1em; }

      #statistics .loading

      { background:#ffffff; /* content background color */ background-image:url(/plugin/dry/icons/spinner.gif); background-position:center center; background-repeat:no-repeat; }

      .priority-high

      { background: #EF2929; background-image:url(/plugin/dry/icons/clearpixel.gif); }

      .priority-normal

      { background: #FCE94F; background-image:url(/plugin/dry/icons/clearpixel.gif); }

      .priority-low

      { background: #729FCF; background-image:url(/plugin/dry/icons/clearpixel.gif); }

      </style><h2>Details</h2><div class="yui-navset"
      id="statistics"></div></td></tr></table><table width="100%"><tr><td
      id="footer"><a href="http://hudson.dev.java.net/">

      Hudson ver. 1.285</a></td></tr></table><script>
      updateCenter.postBackURL = "/updateCenter/postBack";
      updateCenter.info =

      { version:"1.285" }

      ;
      updateCenter.url = "https://hudson.dev.java.net/";
      Behaviour.addLoadEvent(updateCenter.checkUpdates);
      </script></body></html>
      End Quote:

      Attachments

        Activity

          deenar_db deenar_db created issue -
          drulli Ulli Hafner made changes -
          Field Original Value New Value
          Priority Major [ 3 ] Minor [ 4 ]
          drulli Ulli Hafner made changes -
          Component/s checkstyle [ 15512 ]
          Component/s findbugs [ 15496 ]
          Component/s pmd [ 15511 ]
          Component/s tasks-plugin [ 15498 ]
          Component/s warnings [ 15513 ]
          drulli Ulli Hafner made changes -
          Component/s analysis-core [ 15709 ]
          Component/s findbugs [ 15496 ]
          Component/s tasks-plugin [ 15498 ]
          Component/s pmd [ 15511 ]
          Component/s checkstyle [ 15512 ]
          Component/s warnings [ 15513 ]
          Component/s dry [ 15591 ]

          Code changed in hudson
          User: : drulli
          Path:
          trunk/hudson/plugins/analysis-collector/src/main/resources/hudson/plugins/analysis/collector/AnalysisResultAction/summary.jelly
          trunk/hudson/plugins/analysis-core/src/main/resources/hudson/plugins/analysis/core/AbstractProjectAction/index.jelly
          trunk/hudson/plugins/analysis-core/src/main/resources/util/graphtype.jelly
          trunk/hudson/plugins/checkstyle/src/main/resources/hudson/plugins/checkstyle/CheckStyleResultAction/summary.jelly
          trunk/hudson/plugins/dry/src/main/resources/hudson/plugins/dry/DryResultAction/summary.jelly
          trunk/hudson/plugins/findbugs/plugin/src/main/resources/hudson/plugins/findbugs/FindBugsResultAction/summary.jelly
          trunk/hudson/plugins/pmd/src/main/resources/hudson/plugins/pmd/PmdResultAction/summary.jelly
          trunk/hudson/plugins/tasks/src/main/resources/hudson/plugins/tasks/TasksResultAction/summary.jelly
          http://jenkins-ci.org/commit/30465
          Log:
          [FIXED JENKINS-3525] Added $rootURL prefix for all resources.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : drulli Path: trunk/hudson/plugins/analysis-collector/src/main/resources/hudson/plugins/analysis/collector/AnalysisResultAction/summary.jelly trunk/hudson/plugins/analysis-core/src/main/resources/hudson/plugins/analysis/core/AbstractProjectAction/index.jelly trunk/hudson/plugins/analysis-core/src/main/resources/util/graphtype.jelly trunk/hudson/plugins/checkstyle/src/main/resources/hudson/plugins/checkstyle/CheckStyleResultAction/summary.jelly trunk/hudson/plugins/dry/src/main/resources/hudson/plugins/dry/DryResultAction/summary.jelly trunk/hudson/plugins/findbugs/plugin/src/main/resources/hudson/plugins/findbugs/FindBugsResultAction/summary.jelly trunk/hudson/plugins/pmd/src/main/resources/hudson/plugins/pmd/PmdResultAction/summary.jelly trunk/hudson/plugins/tasks/src/main/resources/hudson/plugins/tasks/TasksResultAction/summary.jelly http://jenkins-ci.org/commit/30465 Log: [FIXED JENKINS-3525] Added $rootURL prefix for all resources.
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          abayer Andrew Bayer made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 133598 ] JNJira + In-Review [ 202280 ]

          People

            drulli Ulli Hafner
            deenar_db deenar_db
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: