From e4f2c831507fb881256ab0220f48ce3eb8fad68d Mon Sep 17 00:00:00 2001 From: James Nord Date: Mon, 23 Dec 2024 15:57:10 +0000 Subject: [PATCH] pass the correct argument to create the JMESPath The filed was passed to create the JMESPath when creating the groupsFieldName, however this was not a string that had been passed through `Util.fixEmptyAndTrim` which caused exceptions to be logged when not using groups --- src/main/java/org/jenkinsci/plugins/oic/OicSecurityRealm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/oic/OicSecurityRealm.java b/src/main/java/org/jenkinsci/plugins/oic/OicSecurityRealm.java index ca151330..45ece3e9 100644 --- a/src/main/java/org/jenkinsci/plugins/oic/OicSecurityRealm.java +++ b/src/main/java/org/jenkinsci/plugins/oic/OicSecurityRealm.java @@ -744,7 +744,7 @@ private Object applyJMESPath(Expression expression, Object map) { @DataBoundSetter public void setGroupsFieldName(String groupsFieldName) { this.groupsFieldName = Util.fixEmptyAndTrim(groupsFieldName); - this.groupsFieldExpr = this.compileJMESPath(groupsFieldName, "groups field"); + this.groupsFieldExpr = this.compileJMESPath(this.groupsFieldName, "groups field"); } @DataBoundSetter