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
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:
(where
client
is theEventStoreDBProjectionManagementClient
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:
EventStore details
"21.10.2.0" ("tags/oss-v21.10.2"/"501a2f89d", "Fri, 4 Mar 2022 14:14:52 +0100
Linux ("Unix 5.10.102.1")
4.0.0
Additional context It seems like this has already been fixed for the
C#
client: https://github.com/EventStore/EventStore/issues/1451DEV-123