yetus-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajay Yadava (JIRA)" <>
Subject [jira] [Commented] (YETUS-446) releasedocmaker not handling 0 version in a range correctly?
Date Fri, 26 Aug 2016 17:47:20 GMT


Ajay Yadava commented on YETUS-446:

h5. Preliminary Analysis:
When giving range, the endpoints of the range are not validated to be valid fixVersions(release
version) and are always added to the list of fixVersions for which JIRA issues will be queried.

For example, if we assume that Falcon project has 1.4 and 1.5 only as valid fixVersions the
following command
releasedocmaker --project FALCON --outputdir FALCON --projecttitle 'Apache Falcon' --version
1 --version 2 --range --index --license

will look for JIRA issues for versions : {{\[1, 1.4, 1.5, 2 \]}} Though as per our assumption,
1 and 2 are not valid fixVersions, when querying for issues with 1/2 as fixVersion([query
url for issues with fixVersion 1 |
], [query url for issues with fixVersion 2 |])
JIRA api doesn't throw a bad request and returns a response as below:

This is handled by [this fragment |]
of the code where it prints a message and moves on to next fixVersion. 

However, interestingly if we [query for fixVersion "0" |],
JIRA api returns an error code of 400(Bad Request) with following response:
{"errorMessages":["The value '0.0' does not exist for the field 'fixVersion'."],"errors":{}}

> releasedocmaker not handling 0 version in a range correctly?
> ------------------------------------------------------------
>                 Key: YETUS-446
>                 URL:
>             Project: Yetus
>          Issue Type: Bug
>          Components: Release Doc Maker
>    Affects Versions: 0.4.0
>            Reporter: Allen Wittenauer
>            Assignee: Ajay Yadava
> Playing around this morning, I seem to have hit an interesting bug.
> {code}
> releasedocmaker --project FALCON --outputdir FALCON --projecttitle 'Apache Falcon' --version
0 --version 1 --range --index --license
> {code}
> results in this URL getting generated:
> {code}
> {code}
> A completely valid URL.  However,  RDM reports on the screen:
> {code}
> JIRA returns HTTP error 400: Bad Request. Aborting.
> Please make sure the specified projects are correct.
> {code}
>  whereas JIRA spits back
> {code}
> {"errorMessages":["The value '0.0' does not exist for the field 'fixVersion'."],"errors":{}}
> {code}
> 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.  :(

This message was sent by Atlassian JIRA

View raw message