apache / apache/servicecomb-java-chassis

Edge会拦截query类型的请求校验, 然后抛出Parameter is required,丢失了参数校验的message

Open
#4,265 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
814
Avg merge
8d 23h
Merged PRs (30d)
1

Description

```
public class Foo {
@NotNull(message = "not null")
private String bar;
}
```
### Expected:
抛出异常: ConstraintViolationException

### Actual:
被Edge的QueryProcesserCreator抛出 Parameter is required.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing Edge's QueryProcesserCreator handling of query requests and compare it with the ConstraintViolationException path. Reproduce the Foo example with @NotNull(message = "not null") and verify that the validation message is preserved instead of being replaced by "Parameter is required". Done means the expected exception and message are produced for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.