Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: PDFREPORT-0.1
    • Fix Version/s: PDFREPORT-0.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Unrelated
    • Number of attachments :
      0

      Description

      Problem
      -------------
      I'm feeding sonar with multiple versions of the same project via -Dbranch=(branch). The PDF Generator tries to access

      http://(server):9000/api/resources?resource=(group qualifier)&depth=0&format=xml

      without any branch qualifier, which results in an error

      <snip>
      [INFO] Retrieving project info for (group):(project)
      [ERROR] Can?t access to Sonar or project doesn't exist on Sonar instance. HTTP KO to http://(server):9000/api/resources?resource=(group):(project)&depth=0&format=xml
      java.io.IOException: Can?t access to Sonar or project doesn't exist on Sonar instance.
      at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:52)
      </snip>

      Solution
      ------------
      The plugin should support the sonar parameter -Dbranch=(branch) so that the URL resolves to

      http://(server):9000/api/resources?resource=(group qualifier):(branch)&depth=0&format=xml

        Activity

        Hide
        Antonio Manuel Muñiz Martín added a comment -

        Hello Jochen.

        You are right, the plugin should support branches. It will be fix in the next version (0.2).

        Thanks for your feedback!

        Show
        Antonio Manuel Muñiz Martín added a comment - Hello Jochen. You are right, the plugin should support branches. It will be fix in the next version (0.2). Thanks for your feedback!
        Hide
        Antonio Manuel Muñiz Martín added a comment -

        Fixed in development trunk.

        Now the plugin accept the parameter -Dbranch.

        Show
        Antonio Manuel Muñiz Martín added a comment - Fixed in development trunk. Now the plugin accept the parameter -Dbranch.

          People

          • Assignee:
            Antonio Manuel Muñiz Martín
            Reporter:
            Jochen Hinrichsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: