New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NIFI-5489: Add expression language support to AMQP processors HOST, V… #2936
NIFI-5489: Add expression language support to AMQP processors HOST, V… #2936
Conversation
No idea what the travis failures are, they are definitely not related to this change. |
1a9c9d5
to
7913865
Compare
After rerunning the Travis failures are gone. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Will do a quick build and if everything works fine, I'll merge it.
Awesome, thanks! That would mean it's targeted for 1.8.0, correct? |
7913865
to
b93d5fe
Compare
Missed a spot evaluating the attribute expressions. Fixed. |
@danieljimenez correct, PRs merged now will be included in the next release. Because our bug fix releases ( |
If you are using VARIABLE_REGISTRY to dynamically evaluate the Host, shouldn't you also allow it for Port? |
@mosermw I can, I just enabled the fields most likely to be variables for most use cases. If you'd like me to add that to this PR, I certainly can. |
Please do add Port to your PR, if you can, then I think this will also cover NIFI-4723. It looks like PORT_VALIDATOR already supports expression language, so you are good there. |
…HOST and USER Fields.
b93d5fe
to
01782bf
Compare
@mosermw Port added sir. :) |
+1 from me, though I didn't test this against a real RabbitMQ server. @zenfenan did you want to take another look? |
FWIW I am currently using a SNAPSHOT from 01782bf on a real RabbitMQ server. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @danieljimenez for the changes. Thanks @mosermw and @alopresto for the review. Built it with contrib-check
profile enabled and ran a sample flow. Everything checks out as expected. Merged to the master.
…HOST and USER Fields. This closes apache#2936 Signed-off-by: zenfenan <zenfenan@apache.org>
Is there a reason why USER supports el but PASSWORD does not? |
Hi @lukepfarrar , we have a policy of not evaluating EL in password fields. Here is an example of that review process and the reasoning behind it on another PR.
|
I wondered if that was the case but it did not seem consistent with the DB pooling, which does/did allow EL in the password, although I notice that the scope has been tightened in recent versions. |
There are definitely inconsistencies throughout the project as this wasn't always a firm policy and there are many different contributors to the project. As you noted, we have tried to tighten the reviews and catch this where we can, and hopefully with the completion of NIFI-5627, we will have a foundation to move forward on enabling EL in passwords for users. |
…HOST and USER Fields.
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.