-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Verifying Controller Service cannot move out of scope #1064
Conversation
- Updating move verification to account for Controller Service moving out of scope.
Reviewing |
@mcgilman this properly prevents the processor from being moved up to a parent group but it also prevents moving the processor to a child process group. Also when I tried moving a processor up a level (but it would still have visibility of the CS) I got this NPE in the user logs: 2016-09-27 13:55:39,497 INFO [NiFi Web Server-20] org.apache.nifi.web.filter.RequestLogger Attempting request for (anonymous) PUT http://localhost:8080/nifi-api/snippets/01571004-5208-1cc8-3233-d96e50118e45 (source ip: 127.0.0.1) |
- Updating logic to more accurately get available controller services.
Thanks @JPercivall, I've updated the logic to verify the move is allowed. |
@mcgilman that fixed those issues but now when I have a processor that could be configured with a CS but currently has no value set I can't move it between process groups. It hits the exception saying it can't be moved. I think you just need a check to see if the value for the ID is empty/null |
Good call. Will update. |
- Only verifying controller service if the property is actually configured.
- Allowing the component to be moved if the service is no longer present.
+1 Visually verified code and did a contrib check build. In a standalone instance configured tried all combinations of configured CS (configured, not, invalid ID and no CS) moving up and down multiple process groups. All worked as expected, Thanks @mcgilman. I will merge it in. |
…vice moving out of scope. This closes apache#1064 Signed-off-by: jpercivall <joepercivall@yahoo.com>
NIFI-2758: