apache / apache/dubbo

dubbo codec异常序列化反序列化欠优雅

Open
#5,039 1 comment 0 reactions 0 assignees View on GitHub
type/proposal
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

dubbo codec对所有参数及返回值,在readObject时都传递了class类型参数,唯有异常在序列化和反序列化过程没有传递类型信息,导致某些Serialization如gson无法简单处理异常的反序列化。如果需要正确处理,则所有object序列化都必须带上类型元信息。

Contributor guide

Open the contributing guide

Research direction

Start by tracing Dubbo's codec handling for exception serialization and deserialization, then compare it with the parameter and return-value paths described in the issue. Check how readObject receives type information and identify the relevant serialization tests or entry points; done means exception values can be handled correctly by serializers such as Gson without requiring unrelated object metadata changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.