Skip to content
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

Merged
merged 14 commits into from
Apr 27, 2023
Merged

Conversation

jojocodeX
Copy link
Contributor

  • 在spring security Authentication 对象中,大部份实现都是有参构造,如果开发者扩展Authentication认证对象是有参构造实现,那么在反序列化时就需为ObjectMapper注册反序列器。在dubbo体系中,可以通过ObjectMapperCodecCustomer扩展完成。

  • 如果开发者没有实现反序列化器导致的调用错误,dubbo 会忽略当前错误。

支持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-commenter
Copy link

Codecov Report

Merging #12192 (c64656e) into 3.2 (4f86a3b) will decrease coverage by 0.24%.
The diff coverage is n/a.

❗ Current head c64656e differs from pull request most recent head c363fdf. Consider uploading reports for the commit c363fdf to get more accurate results

@@             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

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

6.7% 6.7% Coverage
0.0% 0.0% Duplication

@AlbumenJ AlbumenJ merged commit 69bd263 into apache:3.2 Apr 27, 2023
@Ineffable919 Ineffable919 mentioned this pull request May 18, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants