Skip to content

Conversation

@piyusshkumar
Copy link

This pr fixes #18891 where the API accepted any value for the latestsuccess query parameter in:
/build/{project}/_result?lastsuccess=1

Previously, the controller only checked for the presence of lastsuccess, without validating it. This update restricts the parameter to valid boolean values only: true/false or 1/0

Any other string or number will now return 400 Bad Request with a clear error message.

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Nov 28, 2025
@piyusshkumar
Copy link
Author

@rubhanazeem Please review my changes , should i also add test cases for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Things related to the OBS RoR app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align the behavior of boolean query parameters in API

1 participant