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 ?

@piyusshkumar piyusshkumar force-pushed the restricting-queryparams branch 2 times, most recently from 450d659 to 0fc75ea Compare December 4, 2025 18:25
@piyusshkumar piyusshkumar force-pushed the restricting-queryparams branch from eb3c761 to d6aca85 Compare December 6, 2025 14:52
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