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

releasedocmaker not handling 0 version in a range correctly?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • Release Doc Maker
    • 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.03.patch
          3 kB
          Ajay Yadav
        2. YETUS-446.02.patch
          4 kB
          Ajay Yadav
        3. YETUS-446.01.patch
          4 kB
          Ajay Yadav
        4. YETUS-446.00.patch
          3 kB
          Ajay Yadav

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: