-
Notifications
You must be signed in to change notification settings - Fork 26.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring-security codec ignore error #12192
Conversation
支持Jackson序列化器扩展配置 代码格式化调整
# Conflicts: # dubbo-plugin/dubbo-spring-security/src/main/java/org/apache/dubbo/spring/security/jackson/ObjectMapperCodecCustomer.java
# Conflicts: # dubbo-distribution/dubbo-all/pom.xml # dubbo-plugin/dubbo-spring-security/src/main/java/org/apache/dubbo/spring/security/jackson/ObjectMapperCodec.java
Codecov Report
@@ Coverage Diff @@
## 3.2 #12192 +/- ##
============================================
- Coverage 69.77% 69.54% -0.24%
+ Complexity 318 2 -316
============================================
Files 3406 1593 -1813
Lines 159452 65445 -94007
Branches 26575 9528 -17047
============================================
- Hits 111256 45511 -65745
+ Misses 38464 15547 -22917
+ Partials 9732 4387 -5345 see 1837 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Kudos, SonarCloud Quality Gate passed! |
在spring security Authentication 对象中,大部份实现都是有参构造,如果开发者扩展Authentication认证对象是有参构造实现,那么在反序列化时就需为ObjectMapper注册反序列器。在dubbo体系中,可以通过ObjectMapperCodecCustomer扩展完成。
如果开发者没有实现反序列化器导致的调用错误,dubbo 会忽略当前错误。