[Bug]: v1.0和v0.3相互转换时,如果parts中的metadata中的值为null,会抛NPE异常
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
Research direction
The NPE is reported in TextPart_v0_3 and DataPart_v0_3 in the org.a2aproject.sdk.compat03.spec package, during conversion between v1.0 and v0.3 parts. Start with those two classes and find where their metadata map is read or copied during conversion. Confirm the null-value case with a round-trip conversion of a part whose metadata contains a null value. Done when both directions convert such parts without an exception and the null values are preserved.
Written by the indexing model from the issue text.
Description
What happened?
org.a2aproject.sdk.compat03.spec.TextPart_v0_3 类中。
v1.0和v0.3相互转换时,如果parts中的metadata中的值为null,会抛NPE异常.实际上A2A协议中可以允许medata的value为空.
同样的,在org.a2aproject.sdk.compat03.spec.DataPart_v0_3中也有这个问题.
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
- Dominant language
- Java
- Stars
- 510
- Forks
- 196
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 50
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from a2aproject/a2a-java
-
fix: handle blank push notification config id consistently across transportsPossibly taken @prachisinghal-1 claimed this 11 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
a2aproject/a2a-java#1012 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a2aproject/a2a-java#464 · 1 comment ·
Maintainers usually reply within 1 day
-
Create a sample that demonstrates how to use a shared contextId across multiple tasksMay be free again @tanish111 claimed this 378 days ago, and no pull request is open. Opensample
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
a2aproject/a2a-java#375 · 5 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Task state transitions are not trackedMay be free again @sumitvairagar claimed this 17 days ago, and no pull request is open. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
a2aproject/a2a-java#1222 · 4 comments ·
Maintainers usually reply within 1 day
-
No structured payload loggingPossibly taken @katepallewarprathmesh-sketch claimed this 15 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 18/100
a2aproject/a2a-java#1221 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in a2aproject/a2a-java
Similar issues
-
status:pending type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EngineHub/WorldGuard#2329 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Dans-Plugins/Medieval-Roleplay-Engine#396 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 6 days
-
type: dependency-upgrade
Difficulty 1/5 Under an hour Newbie friendliness 70/100
spring-projects/spring-session#4156 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quarkiverse/quarkus-langchain4j#3127 · 1 comment ·
Maintainers usually reply within 1 day