You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Mike Jumper (Jira)" <ji...@apache.org> on 2023/05/04 23:04:00 UTC
[jira] [Updated] (GUACAMOLE-1606) UserGroup Attributes not getting picked from the ModelUserGroup instead is picked from Model User
[ https://issues.apache.org/jira/browse/GUACAMOLE-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Jumper updated GUACAMOLE-1606:
-----------------------------------
Fix Version/s: 1.5.2
> UserGroup Attributes not getting picked from the ModelUserGroup instead is picked from Model User
> -------------------------------------------------------------------------------------------------
>
> Key: GUACAMOLE-1606
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-1606
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole
> Affects Versions: 1.4.0
> Reporter: chitralekha
> Assignee: Mike Jumper
> Priority: Major
> Labels: easyfix, patch
> Fix For: 1.6.0, 1.5.2
>
> Attachments: image-2022-05-12-14-37-05-140.png
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> As per the framework code and design pattern , every ObjectTranslator class exposes the method get<Model>Attributes to add and update attribute on usercontext
> For the usergroup looks like a mistake it using the UserAttributes instead of UserGroupAttributes.
> ====Code snippet From UserGroupObjectTranslator======
> @Override
> public void filterExternalObject(UserContext userContext, APIUserGroup object)
> throws GuacamoleException {
> // Filter object attributes by defined schema
> object.setAttributes(filterAttributes({*}userContext.getUserAttributes(){*}, // {color:#FF0000}should be {color}{color:#FF0000}getUserGroupAttributes(){color}
> object.getAttributes()));
> }
> =======
> ======Code snippet form connectObjectTranslator =======
> @Override
> public void filterExternalObject(UserContext userContext,
> APIConnection object) throws GuacamoleException {
> // Filter object attributes by defined schema
> object.setAttributes(filterAttributes(
> {*}userContext.getConnectionAttributes(){*}, object.getAttributes()));
> }
>
> ============
--
This message was sent by Atlassian Jira
(v8.20.10#820010)