microsoft / microsoft/durabletask-java
Double-serialization of string as input to durable activities
未關閉
還沒有人認領這個 Issue。
P2
- 主要語言
- Java
- 星號
- 29
- 分支
- 18
- 平均合併
- 1 天 10 小時
- 30 天內合併 PR
- 2
描述
When sending a string as an input to a Durable activity, we get double serialization - "Seattle" becomes ""Seattle""
Code:
@FunctionName("HelloCities")
public List<String> runOrchestrator(
@DurableOrchestrationTrigger(name = "context") TaskOrchestrationContext ctx,
final ExecutionContext context) {
return ctx.callActivity("SayHello", "Seattle", String.class).await();
}
@FunctionName("SayHello")
public String sayHello(
@DurableActivityTrigger(name = "name") String name,
final ExecutionContext context) {
context.getLogger().info("Saying hello to " + name + ".");
return "Hello " + name + "!";
}
Returns "Hello "Seattle""
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,使用報告中所示的 runOrchestrator callActivity("SayHello", "Seattle", String.class) 路徑和 sayHello durable activity trigger 重現問題。追蹤字串輸入如何進行序列化和反序列化;當 activity 接收到不含額外引號的 Seattle 並回傳 "Hello Seattle!" 時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- backend, distributed-systems
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100