mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #657] [MERGED] Handle null contents gracefully in message passing API
#658
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/657
Author: @HT154
Created: 9/22/2024
Status: ✅ Merged
Merged: 10/1/2024
Merged by: @bioball
Base:
main← Head:client-resource-reader-null-contents📝 Commits (1)
88b4483Handlenullcontents gracefully in message passing API📊 Changes
4 files changed (+86 additions, -2 deletions)
View changed files
📝
docs/modules/bindings-specification/pages/message-passing-api.adoc(+4 -0)📝
pkl-server/src/main/kotlin/org/pkl/server/ClientModuleKeyFactory.kt(+1 -1)📝
pkl-server/src/main/kotlin/org/pkl/server/ClientResourceReader.kt(+1 -1)📝
pkl-server/src/test/kotlin/org/pkl/server/AbstractServerTest.kt(+80 -0)📄 Description
In messages "Read Resource Response" and "Read Module Response", if
contentsanderrorare both null, default to an empty byte array/string.This resolves one of the issues reported in #656
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.