Uploaded image for project: 'Yetus'
  1. Yetus
  2. YETUS-446

releasedocmaker not handling 0 version in a range correctly?

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Component/s: Release Doc Maker
    • Labels:
      None

      Description

      Playing around this morning, I seem to have hit an interesting bug.

      releasedocmaker --project FALCON --outputdir FALCON --projecttitle 'Apache Falcon' --version 0 --version 1 --range --index --license
      

      results in this URL getting generated:

      https://issues.apache.org/jira/rest/api/2/search?jql=project+in+%28%27FALCON%27%29+and++++++++++++++++fixVersion+in+%28%270.0%27%29+and++++++++++++++++resolution+%3D+Fixed&startAt=0&maxResults=100
      

      A completely valid URL. However, RDM reports on the screen:

      JIRA returns HTTP error 400: Bad Request. Aborting.
      Please make sure the specified projects are correct.
      

      whereas JIRA spits back

      {"errorMessages":["The value '0.0' does not exist for the field 'fixVersion'."],"errors":{}}
      

      So somewhere we are generating an invalid version and not verifying it with JIRA. Additionally, our error message is wrong which isn't going to help the user at all.

        Attachments

        1. YETUS-446.00.patch
          3 kB
          Ajay Yadav
        2. YETUS-446.01.patch
          4 kB
          Ajay Yadav
        3. YETUS-446.02.patch
          4 kB
          Ajay Yadav
        4. YETUS-446.03.patch
          3 kB
          Ajay Yadav

          Activity

            People

            • Assignee:
              ajayyadava Ajay Yadav
              Reporter:
              aw Allen Wittenauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: