[FEATURE] Read时 ValueFilters 不起作用。源码发现 Read 暂不支持 ValueFilter,作者能否增强对Read 支持 ValueFilter,搜了issue,很多人都有统一的的需求。
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
FastJsonHttpMessageConverter converter = new FastJsonHttpMessageConverter();
config.setReaderFilters(new FieldCodecDecodeValueFilter());
public class FieldCodecDecodeValueFilter implements ExtraProcessor {
@Override
public void processExtra(Object object, String key, Object value) {
System.out.println("test");
}
}
http post 数据到 Controller 中,参数是Java对象,设置了 ReaderFilters ,processExtra 不起任何作用,完全没有被执行。
Contributor guide
Research direction
Start with FastJsonHttpMessageConverter, setReaderFilters, and the ExtraProcessor implementation shown in the report; reproduce the HTTP POST into a Controller parameterized by a Java object. The work is done when processExtra executes for supported Read deserialization with a ValueFilter, with coverage for the reported configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100