Skip to content

Bugfix: Added defaults to optional query parameters for water contract creation - #1891

Open
zack-rma wants to merge 2 commits into
USACE:developfrom
zack-rma:bugfix/water-contract-create-defaults
Open

Bugfix: Added defaults to optional query parameters for water contract creation#1891
zack-rma wants to merge 2 commits into
USACE:developfrom
zack-rma:bugfix/water-contract-create-defaults

Conversation

@zack-rma

Copy link
Copy Markdown
Collaborator

Summary

Added defaults to optional query parameters for water contract creation. Previously had optional query parameters parsed into primitive booleans, which would break when parameters were not provided.

Checklist

  • AI tools used

@zack-rma
zack-rma marked this pull request as ready for review August 21, 2026 21:07

@oskarhurst oskarhurst left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi the fixes look good but can you also add these same fixes to some other places in the code where the same error still exists, just so we can make sure to knock them all out at once. specifically

WaterUserCreateController.java:85
boolean failIfExists = Boolean.parseBoolean(ctx.queryParam(FAIL_IF_EXISTS));

WaterContractDeleteController.java:85
WaterUserDeleteController.java:84
DeleteMethod deleteMethod = getDeleteMethod(ctx.queryParam(METHOD));

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants