You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by "atharvalade (via GitHub)" <gi...@apache.org> on 2026/03/19 09:05:44 UTC

[I] Go SDK: CreateUser omits mandatory permissions_len field when permissions are nil [iggy]

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: commits-unsubscribe@iggy.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go SDK: CreateUser omits mandatory permissions_len field when permissions are nil [iggy]

Posted by "atharvalade (via GitHub)" <gi...@apache.org>.
atharvalade commented on issue #2981:
URL: https://github.com/apache/iggy/issues/2981#issuecomment-4088755774

   Please assign this to me


-- 
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: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Go SDK: CreateUser omits mandatory permissions_len field when permissions are nil [iggy]

Posted by "spetz (via GitHub)" <gi...@apache.org>.
spetz closed issue #2981: Go SDK: CreateUser omits mandatory permissions_len field when permissions are nil
URL: https://github.com/apache/iggy/issues/2981


-- 
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: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org