From 22339255d44d977e3bfd9c09e7c7cc418eaf2f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20LELEU?= Date: Wed, 22 Feb 2023 11:13:56 +0100 Subject: [PATCH] Properly handle fluent setters --- .../java/org/apache/shiro/config/ogdl/ReflectionBuilder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java b/config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java index 82ebac0ec8..f198eba0d6 100644 --- a/config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java +++ b/config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java @@ -29,8 +29,10 @@ import java.util.Map; import java.util.Set; import java.util.function.Function; + import org.apache.commons.beanutils.BeanUtilsBean; import org.apache.commons.beanutils.ConvertUtilsBean; +import org.apache.commons.beanutils.FluentPropertyBeanIntrospector; import org.apache.commons.beanutils.SuppressPropertiesBeanIntrospector; import org.apache.shiro.lang.codec.Base64; import org.apache.shiro.lang.codec.Hex; @@ -139,6 +141,7 @@ public Object convert(String value, Class clazz) { } }); beanUtilsBean.getPropertyUtils().addBeanIntrospector(SuppressPropertiesBeanIntrospector.SUPPRESS_CLASS); + beanUtilsBean.getPropertyUtils().addBeanIntrospector(new FluentPropertyBeanIntrospector()); this.interpolator = createInterpolator();