pvillard31 commented on code in PR #10352:
URL: https://github.com/apache/nifi/pull/10352#discussion_r2407636812
##########
nifi-extension-bundles/nifi-standard-services/nifi-oauth2-provider-bundle/nifi-oauth2-provider-service/src/main/java/org/apache/nifi/oauth2/StandardOauth2AccessTokenProvider.java:
##########
@@ -396,6 +429,27 @@ private void getProperties(ConfigurationContext context) {
}
refreshWindowSeconds =
context.getProperty(REFRESH_WINDOW).asTimePeriod(TimeUnit.SECONDS);
+
+ for (PropertyDescriptor descriptor : context.getProperties().keySet())
{
+ if (!descriptor.isDynamic() ||
!descriptor.getName().startsWith(FORM_PREFIX)) {
+ continue;
+ }
+
+ String parameterName =
descriptor.getName().substring(FORM_PREFIX.length());
+ if (parameterName.isEmpty()) {
+ continue;
+ }
+
+ PropertyValue propertyValue = context.getProperty(descriptor);
+ if (propertyValue == null) {
Review Comment:
yep, good point, cannot happen with dynamic properties
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]