You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by co...@apache.org on 2017/10/19 10:09:06 UTC

syncope git commit: Removing some duplicate code + another typo

Repository: syncope
Updated Branches:
  refs/heads/master 0984dfd22 -> 3f47e9bde


Removing some duplicate code + another typo


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/3f47e9bd
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/3f47e9bd
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/3f47e9bd

Branch: refs/heads/master
Commit: 3f47e9bdee9e8ffeb606b2717e34ecbfe2801fb4
Parents: 0984dfd
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Thu Oct 19 11:08:44 2017 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Thu Oct 19 11:09:02 2017 +0100

----------------------------------------------------------------------
 .../apache/syncope/client/console/SyncopeConsoleApplication.java   | 2 +-
 .../src/main/java/org/apache/syncope/core/logic/ResourceLogic.java | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/3f47e9bd/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java b/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
index 28a35c9..ba08b8a 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
@@ -112,7 +112,7 @@ public class SyncopeConsoleApplication extends AuthenticatedWebApplication {
 
     @SuppressWarnings("unchecked")
     protected void populatePageClasses(final Properties props) {
-        Enumeration<String> propNames = (Enumeration<String>) props.<String>propertyNames();
+        Enumeration<String> propNames = (Enumeration<String>) props.propertyNames();
         while (propNames.hasMoreElements()) {
             String name = propNames.nextElement();
             if (name.startsWith("page.")) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/3f47e9bd/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
----------------------------------------------------------------------
diff --git a/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java b/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
index b476387..b4a0f13 100644
--- a/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
+++ b/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
@@ -113,7 +113,6 @@ public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO> {
     private ConnectorFactory connFactory;
 
     protected void securityChecks(final Set<String> effectiveRealms, final String realm, final String key) {
-        effectiveRealms.stream().anyMatch(ownedRealm -> realm.startsWith(ownedRealm));
         boolean authorized = effectiveRealms.stream().anyMatch(ownedRealm -> realm.startsWith(ownedRealm));
         if (!authorized) {
             throw new DelegatedAdministrationException(realm, ExternalResource.class.getSimpleName(), key);