You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2016/08/17 05:00:39 UTC

[1/2] incubator-guacamole-client git commit: GUACAMOLE-73: Clear permission cache when saving or updating to force permission reload.

Repository: incubator-guacamole-client
Updated Branches:
  refs/heads/master 8564f05ea -> a7e86a4d0


GUACAMOLE-73: Clear permission cache when saving or updating to force permission reload.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/32f8d84f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/32f8d84f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/32f8d84f

Branch: refs/heads/master
Commit: 32f8d84fdeae567d287c3e3b744ab7107c319e41
Parents: 8564f05
Author: James Muehlner <ja...@guac-dev.org>
Authored: Tue Aug 16 21:41:43 2016 -0700
Committer: James Muehlner <ja...@guac-dev.org>
Committed: Tue Aug 16 21:41:43 2016 -0700

----------------------------------------------------------------------
 .../main/webapp/app/rest/services/connectionGroupService.js  | 8 ++++++++
 .../src/main/webapp/app/rest/services/connectionService.js   | 8 ++++++++
 .../main/webapp/app/rest/services/sharingProfileService.js   | 8 ++++++++
 3 files changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/32f8d84f/guacamole/src/main/webapp/app/rest/services/connectionGroupService.js
----------------------------------------------------------------------
diff --git a/guacamole/src/main/webapp/app/rest/services/connectionGroupService.js b/guacamole/src/main/webapp/app/rest/services/connectionGroupService.js
index 0662e4d..5e554c1 100644
--- a/guacamole/src/main/webapp/app/rest/services/connectionGroupService.js
+++ b/guacamole/src/main/webapp/app/rest/services/connectionGroupService.js
@@ -145,6 +145,10 @@ angular.module('rest').factory('connectionGroupService', ['$injector',
             .success(function connectionGroupCreated(newConnectionGroup){
                 connectionGroup.identifier = newConnectionGroup.identifier;
                 cacheService.connections.removeAll();
+
+                // Clear users cache to force reload of permissions for this
+                // newly created connection group
+                cacheService.users.removeAll();
             });
         }
 
@@ -160,6 +164,10 @@ angular.module('rest').factory('connectionGroupService', ['$injector',
             // Clear the cache
             .success(function connectionGroupUpdated(){
                 cacheService.connections.removeAll();
+
+                // Clear users cache to force reload of permissions for this
+                // newly updated connection group
+                cacheService.users.removeAll();
             });
         }
 

http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/32f8d84f/guacamole/src/main/webapp/app/rest/services/connectionService.js
----------------------------------------------------------------------
diff --git a/guacamole/src/main/webapp/app/rest/services/connectionService.js b/guacamole/src/main/webapp/app/rest/services/connectionService.js
index 7b63a7e..e3ca620 100644
--- a/guacamole/src/main/webapp/app/rest/services/connectionService.js
+++ b/guacamole/src/main/webapp/app/rest/services/connectionService.js
@@ -152,6 +152,10 @@ angular.module('rest').factory('connectionService', ['$injector',
             .success(function connectionCreated(newConnection){
                 connection.identifier = newConnection.identifier;
                 cacheService.connections.removeAll();
+
+                // Clear users cache to force reload of permissions for this
+                // newly created connection
+                cacheService.users.removeAll();
             });
         }
 
@@ -167,6 +171,10 @@ angular.module('rest').factory('connectionService', ['$injector',
             // Clear the cache
             .success(function connectionUpdated(){
                 cacheService.connections.removeAll();
+
+                // Clear users cache to force reload of permissions for this
+                // newly updated connection
+                cacheService.users.removeAll();
             });
         }
 

http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/32f8d84f/guacamole/src/main/webapp/app/rest/services/sharingProfileService.js
----------------------------------------------------------------------
diff --git a/guacamole/src/main/webapp/app/rest/services/sharingProfileService.js b/guacamole/src/main/webapp/app/rest/services/sharingProfileService.js
index 304dbe5..4f1f905 100644
--- a/guacamole/src/main/webapp/app/rest/services/sharingProfileService.js
+++ b/guacamole/src/main/webapp/app/rest/services/sharingProfileService.js
@@ -127,6 +127,10 @@ angular.module('rest').factory('sharingProfileService', ['$injector',
             .success(function sharingProfileCreated(newSharingProfile){
                 sharingProfile.identifier = newSharingProfile.identifier;
                 cacheService.connections.removeAll();
+
+                // Clear users cache to force reload of permissions for this
+                // newly created sharing profile
+                cacheService.users.removeAll();
             });
         }
 
@@ -142,6 +146,10 @@ angular.module('rest').factory('sharingProfileService', ['$injector',
             // Clear the cache
             .success(function sharingProfileUpdated(){
                 cacheService.connections.removeAll();
+
+                // Clear users cache to force reload of permissions for this
+                // newly updated sharing profile
+                cacheService.users.removeAll();
             });
         }
 


[2/2] incubator-guacamole-client git commit: GUACAMOLE-73: Merge fix for stale permission cache.

Posted by mj...@apache.org.
GUACAMOLE-73: Merge fix for stale permission cache.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/a7e86a4d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/a7e86a4d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/a7e86a4d

Branch: refs/heads/master
Commit: a7e86a4d054e5811deb0de77dc266aac24fe4f4a
Parents: 8564f05 32f8d84
Author: Michael Jumper <mj...@apache.org>
Authored: Tue Aug 16 21:59:29 2016 -0700
Committer: Michael Jumper <mj...@apache.org>
Committed: Tue Aug 16 21:59:29 2016 -0700

----------------------------------------------------------------------
 .../main/webapp/app/rest/services/connectionGroupService.js  | 8 ++++++++
 .../src/main/webapp/app/rest/services/connectionService.js   | 8 ++++++++
 .../main/webapp/app/rest/services/sharingProfileService.js   | 8 ++++++++
 3 files changed, 24 insertions(+)
----------------------------------------------------------------------