You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by "zivshits (via GitHub)" <gi...@apache.org> on 2026/10/20 11:41:44 UTC

[PR] GUACAMOLE-181: Allow granting or revoking all connection permissions at once. [guacamole-client]

zivshits opened a new pull request, #1259:
URL: https://github.com/apache/guacamole-client/pull/1259

   Implements [GUACAMOLE-181](https://issues.apache.org/jira/browse/GUACAMOLE-181): granting access to every connection within a connection group currently requires checking each connection individually.
   
   Following the approach described in [GUACAMOLE-959](https://issues.apache.org/jira/browse/GUACAMOLE-959), recursive granting is an explicit administrator action rather than a side effect of checking a group:
   
   - **Select All / Clear All** in the header of the connection permission editor grant or revoke READ for every displayed connection, connection group, and sharing profile.
   - **All / None** beside each organizational connection group grant or revoke READ for that group and everything within it.
   - Checking a group's own checkbox is unchanged and still affects only that group.
   - The contents of balancing groups are never affected, as those contents are not normally exposed to users having access to the balancing group. The balancing group itself is still granted/revoked, and balancing groups do not get their own All / None actions.
   - While a filter is applied, only the matching items are affected, and the per-group actions are hidden (the hierarchy is flattened).
   
   Changes go through the existing `permissionsAdded` / `permissionsRemoved` bookkeeping, so selecting and then clearing the same items results in no change on save. The editor is shared by the user and user group management screens, so both gain the actions.
   
   ![Per-group and global actions](https://raw.githubusercontent.com/honeybadger-technologies/guacamole-client/cc496d3b6ad9cb88addce00a1f9f77dad5a43ed9/GUACAMOLE-181/editor.png)
   
   ![Select All while filtered affects only matching items](https://raw.githubusercontent.com/honeybadger-technologies/guacamole-client/cc496d3b6ad9cb88addce00a1f9f77dad5a43ed9/GUACAMOLE-181/filtered.png)
   
   ### Testing
   
   Verified against the PostgreSQL extension with a tree containing nested organizational groups, a balancing group with a child connection, and a sharing profile, checking the saved permissions through the REST API after each save:
   
   - **All** on a group: the group, its subgroups, their connections, and the sharing profile were granted; the balancing group was granted but its child connection was not.
   - **Clear All** then **Select All**: everything revoked, then everything granted except the balancing group's child.
   - Filter + **Clear All**: only the matching connections (and their sharing profiles) were revoked; groups and non-matching connections were untouched.
   - Same behavior on the user group management screen.
   


-- 
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: dev-unsubscribe@guacamole.apache.org

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