Unexpected null body when deserializing empty optional serialized by conjure-undertow
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 conjure-retrofit 如何反序列化 conjure-undertow 返回的空 Optional,然后比较客户端和服务器对空序列化 body 的处理方式。添加一个覆盖返回 Optional.empty() 的 endpoint 的回归测试,并验证客户端不再抛出 Unexpected null body。
由索引模型根据 Issue 内容生成。
描述
What happened?
com.palantir.logsafe.exceptions.SafeNullPointerException: Unexpected null body is thrown when calling a conjure-undertow server endpoint via conjure-retrofit.
Repro steps:
- conjure an endpoint with return type any
- have the conjure-undertow server return
Optional.empty() - use the conjure-retrofit client to call the endpoint
What did you want to happen?
The conjure-retrofit client should understand the conjure-undertow server when an Optional.empty() is serialized and deserialized.
- 主要语言
- Java
- 星标
- 96
- 派生
- 95
- 平均合并
- 8 分钟
- 30 天内合并 PR
- 55
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
palantir/conjure-java-runtime 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
palantir/conjure-java-runtime#3585 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 50/100
palantir/conjure-java-runtime#3166 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
palantir/conjure-java-runtime#2490 · 3 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
palantir/conjure-java-runtime#2248 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
palantir/conjure-java-runtime#2131 · 1 条评论 ·
维护者通常 1 天内回复
查看 palantir/conjure-java-runtime 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
pdfium-drift
难度 1/5 1 小时以内 新手友好度 84/100
Stirling-Tools/JPDFium#240 ·
维护者通常 1 天内回复
-
Bug
难度 2/5 1-3 小时 新手友好度 60/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
Vakore/ZappierGames#285 ·