Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-10050

Problem with getting plan results beyond max-result number

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 3.2.2
    • REST API
    • standalone, linux/centos 5.5, jdk 1.6.0_25

    Description

      Whatever range I provide to results via

      expand=result[n:m]
      

      I cannot get results older than 25 last results. Still, I can get particular result providing it's number. Examples:

      https://bamboo.hurra/rest/api/latest/result/SEM-TOD?expand=results[23:25]

      <results expand="results"><results expand="result" size="657" max-result="25" start-index="0"><result id="25658441" number="647" lifeCycleState="Finished" state="Successful" key="SEM-TOD-647"><link rel="self" href="https://bamboo.hurra/rest/api/latest/result/SEM-TOD-647"/></result><result id="25658437" number="646" lifeCycleState="Finished" state="Failed" key="SEM-TOD-646"><link rel="self" href="https://bamboo.hurra/rest/api/latest/result/SEM-TOD-646"/></result></results><link rel="self" href="https://bamboo.hurra/rest/api/latest/result/SEM-TOD"/></results>
      

      https://bamboo.hurra/rest/api/latest/result/SEM-TOD?expand=results[25:26]

      <results expand="results"><results expand="result" size="657" max-result="25" start-index="0"/><link rel="self" href="https://bamboo.hurra/rest/api/latest/result/SEM-TOD"/></results>
      

      https://bamboo.hurra/rest/api/latest/result/SEM-TOD?expand=results[25:]

      <results expand="results"><results expand="result" size="657" max-result="25" start-index="0"/><link rel="self" href="https://bamboo.hurra/rest/api/latest/result/SEM-TOD"/></results>
      

      https://bamboo.hurra/rest/api/latest/result/SEM-TOD?expand=results[-27:-26]

      <results expand="results"><results expand="result" size="657" max-result="25" start-index="0"/><link rel="self" href="https://bamboo.hurra/rest/api/latest/result/SEM-TOD"/></results>
      

      Still, single result for any particular request below this limit works OK:

      https://bamboo.hurra/rest/api/latest/result/SEM-TOD-649

      <result restartable="false" continuable="false" id="25658449" number="649" lifeCycleState="Finished" state="Successful" key="SEM-TOD-649" expand="changes,metadata,artifacts,comments,labels,jiraIssues,stages"><link rel="self" href="https://bamboo.hurra/rest/api/latest/result/SEM-TOD-649"/><planName>bamboo-tod</planName>....
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              d734c6282f75 Piotr Piątkowski
              Votes:
              6 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: