Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-1606

UserGroup Attributes not getting picked from the ModelUserGroup instead is picked from Model User

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.2
    • guacamole
    • Patch

    Description

      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(), // should be getUserGroupAttributes()

      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()));

      }

       

      ============

      Attachments

        Activity

          People

            mjumper Mike Jumper
            chitra17 chitralekha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified