Skip to content

Fix ShareFolderCommand#1994

Closed
lthievenaz-keeper wants to merge 1 commit intoKeeper-Security:masterfrom
lthievenaz-keeper:fix-sharedFolderUpdateUser-bools
Closed

Fix ShareFolderCommand#1994
lthievenaz-keeper wants to merge 1 commit intoKeeper-Security:masterfrom
lthievenaz-keeper:fix-sharedFolderUpdateUser-bools

Conversation

@lthievenaz-keeper
Copy link
Copy Markdown
Contributor

@lthievenaz-keeper lthievenaz-keeper commented Apr 27, 2026

Running this:
sf <folder> -e <user> yields this error:
Folder.SharedFolderUpdateUser.manageRecords: Expected an int, got a boolean.

This is because the SharedFolderUpdateUser proto accepts SetBooleanValue as manageRecords and manageUsers, but that's not what we're setting conditionally.
This isn't a problem for SharedFolderUpdateTeam because these accept bool.
This isn't a problem for SharedFolderUpdateRecord because we make sure to only set SetBooleanValue

Running this:
`sf <folder> -e <user>`  yields this error:
` Folder.SharedFolderUpdateUser.manageRecords: Expected an int, got a boolean.`  

This is because the `SharedFolderUpdateUser` proto accepts `SetBooleanValue` as `manageRecords` and `manageUsers`, but that's not what we're setting conditionally.
This isn't a problem for  `SharedFolderUpdateTeam` because these accept `bool`.
This isn't a problem for  `SharedFolderUpdateRecord` because we make sure to only set `SetBooleanValue`
@lthievenaz-keeper
Copy link
Copy Markdown
Contributor Author

Closed to re-push into release - see:
#1995

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant