syncope git commit: [SYNCOPE-1190] Toggle menu header is now updated when elements get updated

2017-08-10 Thread skylark17
Repository: syncope
Updated Branches:
  refs/heads/2_0_X 47da05657 -> 84a7b68e4


[SYNCOPE-1190] Toggle menu header is now updated when elements get updated


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

Branch: refs/heads/2_0_X
Commit: 84a7b68e4f8a2ea9e3fd99f5b01266b16d99a3fd
Parents: 47da056
Author: skylark17 
Authored: Thu Aug 10 10:44:51 2017 +0200
Committer: skylark17 
Committed: Thu Aug 10 10:44:51 2017 +0200

--
 .../console/panels/AbstractLogsPanel.java   |   1 +
 .../panels/SecurityQuestionsModalPanel.java |   6 ++
 .../client/console/panels/TogglePanel.java  | 105 +++
 .../policies/PolicyModalPanelBuilder.java   |   7 ++
 .../client/console/topology/Topology.java   |   2 +-
 .../console/topology/TopologyTogglePanel.java   |  18 +++-
 .../html/form/ActionLinksTogglePanel.java   |  72 ++---
 .../console/wizards/AjaxWizardBuilder.java  |   5 +
 8 files changed, 152 insertions(+), 64 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/84a7b68e/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
index fef5be5..5246509 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
@@ -74,6 +74,7 @@ public abstract class AbstractLogsPanel extends Pane
 
 loggerTOs.hideLabel();
 loggerTOs.setChoices(Arrays.asList(LoggerLevel.values()));
+loggerTOs.setNullValid(false);
 loggerTOs.getField().add(new 
IndicatorAjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
 
 private static final long serialVersionUID = 
-1107858522700306810L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/84a7b68e/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
index a639035..883325d 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
@@ -27,6 +27,7 @@ import 
org.apache.syncope.client.console.wicket.markup.html.bootstrap.dialog.Bas
 import org.apache.syncope.common.lib.to.SecurityQuestionTO;
 import org.apache.wicket.PageReference;
 import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.event.Broadcast;
 import org.apache.wicket.markup.html.form.Form;
 
 public class SecurityQuestionsModalPanel extends 
AbstractModalPanel {
@@ -62,6 +63,11 @@ public class SecurityQuestionsModalPanel extends 
AbstractModalPanel(target, securityQuestionTO));
+
 modal.close(target);
 } catch (Exception e) {
 LOG.error("While creating or updating {}", securityQuestionTO, e);

http://git-wip-us.apache.org/repos/asf/syncope/blob/84a7b68e/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
index 62c2af4..ba9f9b1 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
@@ -21,7 +21,29 @@ package org.apache.syncope.client.console.panels;
 import java.io.Serializable;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.commons.status.StatusBean;
+import org.apache.syncope.client.console.policies.PolicyRuleDirectoryPanel;
+import org.apache.syncope.client.console.reports.ReportletDirectoryPanel;
 import org.apache.syncope.client.console.wizards.WizardMgtPanel;
+import org.apache.syncope.cl

syncope git commit: [SYNCOPE-1190] Toggle menu header is now updated when elements get updated

2017-08-10 Thread skylark17
Repository: syncope
Updated Branches:
  refs/heads/master 48c2ab456 -> 97744afe7


[SYNCOPE-1190] Toggle menu header is now updated when elements get updated


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

Branch: refs/heads/master
Commit: 97744afe7fe103101ceca95294af51ed48333be3
Parents: 48c2ab4
Author: skylark17 
Authored: Thu Aug 10 10:44:51 2017 +0200
Committer: skylark17 
Committed: Thu Aug 10 10:45:39 2017 +0200

--
 .../console/panels/AbstractLogsPanel.java   |   1 +
 .../panels/SecurityQuestionsModalPanel.java |   6 ++
 .../client/console/panels/TogglePanel.java  | 105 +++
 .../policies/PolicyModalPanelBuilder.java   |   7 ++
 .../client/console/topology/Topology.java   |   2 +-
 .../console/topology/TopologyTogglePanel.java   |  18 +++-
 .../html/form/ActionLinksTogglePanel.java   |  72 ++---
 .../console/wizards/AjaxWizardBuilder.java  |   5 +
 8 files changed, 152 insertions(+), 64 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/97744afe/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
index fef5be5..5246509 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/AbstractLogsPanel.java
@@ -74,6 +74,7 @@ public abstract class AbstractLogsPanel extends Pane
 
 loggerTOs.hideLabel();
 loggerTOs.setChoices(Arrays.asList(LoggerLevel.values()));
+loggerTOs.setNullValid(false);
 loggerTOs.getField().add(new 
IndicatorAjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
 
 private static final long serialVersionUID = 
-1107858522700306810L;

http://git-wip-us.apache.org/repos/asf/syncope/blob/97744afe/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
index a639035..883325d 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/SecurityQuestionsModalPanel.java
@@ -27,6 +27,7 @@ import 
org.apache.syncope.client.console.wicket.markup.html.bootstrap.dialog.Bas
 import org.apache.syncope.common.lib.to.SecurityQuestionTO;
 import org.apache.wicket.PageReference;
 import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.event.Broadcast;
 import org.apache.wicket.markup.html.form.Form;
 
 public class SecurityQuestionsModalPanel extends 
AbstractModalPanel {
@@ -62,6 +63,11 @@ public class SecurityQuestionsModalPanel extends 
AbstractModalPanel(target, securityQuestionTO));
+
 modal.close(target);
 } catch (Exception e) {
 LOG.error("While creating or updating {}", securityQuestionTO, e);

http://git-wip-us.apache.org/repos/asf/syncope/blob/97744afe/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
index 62c2af4..ba9f9b1 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/TogglePanel.java
@@ -21,7 +21,29 @@ package org.apache.syncope.client.console.panels;
 import java.io.Serializable;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.commons.status.StatusBean;
+import org.apache.syncope.client.console.policies.PolicyRuleDirectoryPanel;
+import org.apache.syncope.client.console.reports.ReportletDirectoryPanel;
 import org.apache.syncope.client.console.wizards.WizardMgtPanel;
+import org.apache.syncope.

Syncope-2_0_X - Build # 98 - Still Failing

2017-08-10 Thread Apache Jenkins Server
The Apache Jenkins build system has built Syncope-2_0_X (build #98)

Status: Still Failing

Check console output at https://builds.apache.org/job/Syncope-2_0_X/98/ to view 
the results.

[2/2] syncope git commit: Support EC keys for signing in the SAML SSO module

2017-08-10 Thread coheigea
Support EC keys for signing in the SAML SSO module


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

Branch: refs/heads/master
Commit: 8e73cd830305a5ed72fe3d57b225c2ed5a7a9280
Parents: 13230e2
Author: Colm O hEigeartaigh 
Authored: Thu Aug 10 17:02:26 2017 +0100
Committer: Colm O hEigeartaigh 
Committed: Thu Aug 10 17:02:26 2017 +0100

--
 .../org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java| 3 +++
 1 file changed, 3 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/8e73cd83/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
--
diff --git 
a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
 
b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
index 096dccb..e83af5e 100644
--- 
a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
+++ 
b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
@@ -103,6 +103,9 @@ public class SAML2ReaderWriter {
 if (pubKeyAlgo.equalsIgnoreCase("DSA")) {
 sigAlgo = SignatureConstants.ALGO_ID_SIGNATURE_DSA_SHA1;
 jceSigAlgo = "SHA1withDSA";
+} else if (pubKeyAlgo.equalsIgnoreCase("EC")) {
+sigAlgo = SignatureConstants.ALGO_ID_SIGNATURE_ECDSA_SHA1;
+jceSigAlgo = "SHA1withECDSA";
 }
 
 callbackHandler = new SAMLSPCallbackHandler(loader.getKeyPass());



[1/2] syncope git commit: Avoid an NPE if the SAML Response Issuer is null

2017-08-10 Thread coheigea
Repository: syncope
Updated Branches:
  refs/heads/master 97744afe7 -> 8e73cd830


Avoid an NPE if the SAML Response Issuer is null


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

Branch: refs/heads/master
Commit: 13230e268b9361dbb056c8960a2e10e7cb7333b1
Parents: 97744af
Author: Colm O hEigeartaigh 
Authored: Thu Aug 10 13:15:51 2017 +0100
Committer: Colm O hEigeartaigh 
Committed: Thu Aug 10 13:15:51 2017 +0100

--
 .../src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java | 3 +++
 1 file changed, 3 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/13230e26/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
--
diff --git 
a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
 
b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
index f6953e6..87b7eb6 100644
--- 
a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
+++ 
b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
@@ -363,6 +363,9 @@ public class SAML2SPLogic extends 
AbstractSAML2Logic {
 }
 
 // 3. validate the SAML response and, if needed, decrypt the provided 
assertion(s)
+if (samlResponse.getIssuer() == null || 
samlResponse.getIssuer().getValue() == null) {
+throw new IllegalArgumentException("The SAML Response must contain 
an Issuer");
+}
 final SAML2IdPEntity idp = getIdP(samlResponse.getIssuer().getValue());
 if (idp.getConnObjectKeyItem() == null) {
 throw new IllegalArgumentException("No mapping provided for SAML 
2.0 IdP '" + idp.getId() + "'");



[2/2] syncope git commit: Support EC keys for signing in the SAML SSO module

2017-08-10 Thread coheigea
Support EC keys for signing in the SAML SSO module


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

Branch: refs/heads/2_0_X
Commit: 3b24fd10f1901430a42993da9d7f30f46cf2ab39
Parents: d70b33a
Author: Colm O hEigeartaigh 
Authored: Thu Aug 10 17:02:26 2017 +0100
Committer: Colm O hEigeartaigh 
Committed: Thu Aug 10 17:56:35 2017 +0100

--
 .../org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java| 3 +++
 1 file changed, 3 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/3b24fd10/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
--
diff --git 
a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
 
b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
index 6fe20e6..62e90e7 100644
--- 
a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
+++ 
b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2ReaderWriter.java
@@ -102,6 +102,9 @@ public class SAML2ReaderWriter {
 if (pubKeyAlgo.equalsIgnoreCase("DSA")) {
 sigAlgo = SignatureConstants.ALGO_ID_SIGNATURE_DSA_SHA1;
 jceSigAlgo = "SHA1withDSA";
+} else if (pubKeyAlgo.equalsIgnoreCase("EC")) {
+sigAlgo = SignatureConstants.ALGO_ID_SIGNATURE_ECDSA_SHA1;
+jceSigAlgo = "SHA1withECDSA";
 }
 
 callbackHandler = new SAMLSPCallbackHandler(loader.getKeyPass());



[1/2] syncope git commit: Avoid an NPE if the SAML Response Issuer is null

2017-08-10 Thread coheigea
Repository: syncope
Updated Branches:
  refs/heads/2_0_X 84a7b68e4 -> 3b24fd10f


Avoid an NPE if the SAML Response Issuer is null


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

Branch: refs/heads/2_0_X
Commit: d70b33aa4cd2b257432651aeb18fe343933cf395
Parents: 84a7b68
Author: Colm O hEigeartaigh 
Authored: Thu Aug 10 13:15:51 2017 +0100
Committer: Colm O hEigeartaigh 
Committed: Thu Aug 10 17:56:30 2017 +0100

--
 .../src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java | 3 +++
 1 file changed, 3 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/d70b33aa/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
--
diff --git 
a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
 
b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
index f6953e6..87b7eb6 100644
--- 
a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
+++ 
b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/SAML2SPLogic.java
@@ -363,6 +363,9 @@ public class SAML2SPLogic extends 
AbstractSAML2Logic {
 }
 
 // 3. validate the SAML response and, if needed, decrypt the provided 
assertion(s)
+if (samlResponse.getIssuer() == null || 
samlResponse.getIssuer().getValue() == null) {
+throw new IllegalArgumentException("The SAML Response must contain 
an Issuer");
+}
 final SAML2IdPEntity idp = getIdP(samlResponse.getIssuer().getValue());
 if (idp.getConnObjectKeyItem() == null) {
 throw new IllegalArgumentException("No mapping provided for SAML 
2.0 IdP '" + idp.getId() + "'");



Syncope-2_0_X - Build # 99 - Still Failing

2017-08-10 Thread Apache Jenkins Server
The Apache Jenkins build system has built Syncope-2_0_X (build #99)

Status: Still Failing

Check console output at https://builds.apache.org/job/Syncope-2_0_X/99/ to view 
the results.