atharvalade opened a new issue, #2981: URL: https://github.com/apache/iggy/issues/2981
The Rust wire format for `CreateUser` always includes `permissions_len:u32_le` on the wire, even when `has_permissions=0`. The server-side decoder unconditionally reads these 4 bytes (see [create_user.rs#L82-L83](https://github.com/apache/iggy/blob/master/core/binary_protocol/src/requests/users/create_user.rs#L82-L83)), and the Rust encoder always writes them (see [create_user.rs#L61-L62](https://github.com/apache/iggy/blob/master/core/binary_protocol/src/requests/users/create_user.rs#L61-L62)). In the Go SDK (`foreign/go/internal/command/user.go`), the nil-permissions branch only writes `has_permissions=0` (1 byte) and skips the 4-byte `permissions_len=0`: ```go } else { bytes[position] = byte(0) // writes flag only, no permissions_len } -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
