DELETE /invdelete on primary node should probably throw REQUEST_INVALID instead of INVALID_OR_MISSING_PARM
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start in replication-src/src/main/java/org/cdlib/mrt/replic/basic/service/ReplicationServiceHandler.java at deleteObjectNode(), which currently throws INVALID_OR_MISSING_PARM for a primary storage node. Verify the endpoint’s exception-to-HTTP mapping, then ensure this client error results in TException.REQUEST_INVALID and a 400 Bad Request response.
Written by the indexing model from the issue text.
Description
The deleteObjectNode() method on ReplicationServiceHandler throws TException.INVALID_OR_MISSING_PARM if given a primary storage node, which translates to a 500 Internal Server Error.
Since this is a client (caller) error, rather than a problem with the server state, it would probably be more appropriate to return a 400 Bad Request by throwing TException.REQUEST_INVALID.
- Dominant language
- Java
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
Similar issues
-
JPA security login throws when the stored password or roles string is nullPossibly taken @SebTardif claimed this today. Openarea/security env/windows
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
quarkusio/quarkus#58548 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
marchof/java-almanac#354 ·
-
bug posit-ai
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
linkedin/shaky-android#103 ·