[
https://issues.apache.org/jira/browse/NIFI-15665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard updated NIFI-15665:
----------------------------------
Component/s: Extensions
(was: Core Framework)
> Remove duplicate description call in PROP_BROKER_URI (AbstractMQTTProcessor)
> ----------------------------------------------------------------------------
>
> Key: NIFI-15665
> URL: https://issues.apache.org/jira/browse/NIFI-15665
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Nikita Awasthi
> Priority: Trivial
> Fix For: 2.9.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The AbstractMQTTProcessor class contains duplicate description() method calls
> for the PROP_BROKER_URI property definition. The first description call is
> redundant since the second call overrides it completely.
> Current code:
> ```java
> PROP_BROKER_URI = new PropertyDescriptor.Builder()
> .name("Broker URI")
> .description("The URI to use to connect to the MQTT broker") // <- This
> line is redundant
> .required(true)
> .addValidator(StandardValidators.URI_VALIDATOR)
> .expressionLanguageSupported(ExpressionLanguageScope.ENVIRONMENT)
> .description("The URI to use to connect to the MQTT broker (e.g.
> tcp://localhost:1883). The URI scheme must be defined as tcp for plaintext
> MQTT or ssl for MQTT over SSL/TLS.")
> .build();
> ```
> Expected: Remove the first description() call to improve code clarity and
> ensure developers see the complete description with SSL/TLS information.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)