[Bug]: The gate change endpoint for POST uses fail-if-exists for override protection
Open
Beginner friendly
Nobody has claimed this yet.
bug
priority:medium
- Dominant language
- Java
- Stars
- 28
- Forks
- 25
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 20
Description
Describe the bug
The query parameter fail-if-exists is mislabeled and is instead used for the override protection flag.
Expected behavior
The query parameter should be override-protection matching the turbine change endpoint.
To Reproduce
Priority
Medium
Logs/Incident Identifier
No response
CURL Commands
CDA Version
2026.08.14-testa
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at cwms-data-api/src/main/java/cwms/cda/api/location/kind/GateChangeCreateController.java around line 86, then compare the parameter naming with the turbine change endpoint. Confirm that the POST gate change endpoint exposes override-protection rather than fail-if-exists, and verify the endpoint's override protection behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100