Updating projections with a non-JS handler type using the gRPC client
fxshlein opened this issue · 0 comments
fxshlein commented
Describe the bug
When updating projections over gRPC, the server seems to always assume that the projection has the type JS. When trying to update the internal projections, specifically $by_category, this results in an error: "Line 2: Unexpected end of input".
To Reproduce
Using the java client:
client.update("$by_category", "first\r\n:");
(where client is the EventStoreDBProjectionManagementClient instance)
Expected behavior
The handler type should be configurable through the client.
Actual behavior
The handler type for gRPC seems to be hard coded here.
Config/Logs/Screenshots
This message is logged:
Updating '"$by_category"' projection source to '"first\r\n:"' (Requested type is: '"JS"')
EventStore details
- EventStore server version:
"21.10.2.0" ("tags/oss-v21.10.2"/"501a2f89d", "Fri, 4 Mar 2022 14:14:52 +0100 - Operating system:
Linux ("Unix 5.10.102.1") - EventStore client version (if applicable):
4.0.0
Additional context
It seems like this has already been fixed for the C# client: EventStore/EventStore#1451