REST returned artifact url incorrect

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 3.4 M0, 3.4
    • Affects Version/s: 3.3.2
    • Component/s: REST API
    • Environment:

      OSX 10.7.2

      The build log url is ok, but the readme url contains an extra slash. Removing the %2F from the url works. Configured base url is http://imac.local:8307

      Request
      http://imac.local:8307/rest/api/latest/result/XXX-DEF-JOB1/latest?os_authType=basic&expand=artifact
      
      result
      <artifacts size="2" max-result="2" start-index="0">
      <artifact>
      <name>Build log</name>
      <link rel="self" href="http://imac.local:8307/download/XXX-DEF-JOB1/build_logs/XXX-DEF-JOB1-16.log"/>
      <producerJobKey>XXX-DEF-JOB1-16</producerJobKey>
      <shared>false</shared>
      </artifact>
      <artifact>
      <name>readme</name>
      <link rel="self" href="http://imac.local:8307/%2Fbrowse%2FXXX-DEF-16%2Fartifact%2FJOB1%2Freadme%2FREADME.txt"/>
      <producerJobKey>XXX-DEF-JOB1-16</producerJobKey>
      <shared>false</shared>
      <size>1506</size>
      <prettySizeDescription>1 KB</prettySizeDescription>
      </artifact>
      </artifacts>
      

              Assignee:
              Marcin Gardias
              Reporter:
              Bob Swift
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: