[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16479099#comment-16479099
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user asfgit closed the pull request at:

https://github.com/apache/nifi/pull/2712


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
> Fix For: 1.7.0
>
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16479098#comment-16479098
 ] 

ASF subversion and git services commented on NIFI-5197:
---

Commit f5108ea839fa6377af864c8235f320f7283a8d69 in nifi's branch 
refs/heads/master from [~mike.thomsen]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=f5108ea ]

NIFI-5197 Fixed a bunch of EL scope bugs.

Signed-off-by: Matthew Burgess 

This closes #2712


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
> Fix For: 1.7.0
>
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16479097#comment-16479097
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user mattyb149 commented on the issue:

https://github.com/apache/nifi/pull/2712
  
+1 LGTM, thanks for the updates! Merging to master


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
> Fix For: 1.7.0
>
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16479068#comment-16479068
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user mattyb149 commented on the issue:

https://github.com/apache/nifi/pull/2712
  
I'm on it...


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16479061#comment-16479061
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2712
  
@mattyb149 @markap14 @pvillard31 this is semi-blocking 2-3 of my commits. 
They need to be rebased off of it so I can clean up the hack cited in 5145 from 
them. If you could do a quick review, I'd appreciate it.


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16478050#comment-16478050
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2712
  
@mattyb149 Recreated it. I thought I had fubar'd git, but it turned out to 
just be a sync issue between ASF and GitHub.


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16478048#comment-16478048
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

GitHub user MikeThomsen opened a pull request:

https://github.com/apache/nifi/pull/2712

NIFI-5197 Fixed a bunch of EL scope bugs.

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- where  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:
- [ ] Have you ensured that the full suite of tests is executed via mvn 
-Pcontrib-check clean install at the root nifi folder?
- [ ] Have you written or updated unit tests to verify your changes?
- [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)? 
- [ ] If applicable, have you updated the LICENSE file, including the main 
LICENSE file under nifi-assembly?
- [ ] If applicable, have you updated the NOTICE file, including the main 
NOTICE file found under nifi-assembly?
- [ ] If adding new Properties, have you added .displayName in addition to 
.name (programmatic access) for each of the new properties?

### For documentation related changes:
- [ ] Have you ensured that format looks appropriate for the output in 
which it is rendered?

### 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.


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/MikeThomsen/nifi NIFI-5197

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/nifi/pull/2712.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #2712


commit f36312fbd5c6f3fc1686aefe5a5ac759da5c75dd
Author: Mike Thomsen 
Date:   2018-05-16T00:54:51Z

NIFI-5197 Fixed a bunch of EL scope bugs.




> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16477989#comment-16477989
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2706
  
Something weird happened with the rebase. Killing this and starting over...


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16477987#comment-16477987
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user MikeThomsen closed the pull request at:

https://github.com/apache/nifi/pull/2706


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16477956#comment-16477956
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user MikeThomsen commented on a diff in the pull request:

https://github.com/apache/nifi/pull/2706#discussion_r188746508
  
--- Diff: 
nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/src/main/java/org/apache/nifi/schema/access/SchemaAccessUtils.java
 ---
@@ -85,7 +85,7 @@
 .description("Specifies the name of the branch to use when 
looking up the schema in the Schema Registry property. " +
 "If the chosen Schema Registry does not support 
branching, this value will be ignored.")
 .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
-.expressionLanguageSupported(true)
+
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)
--- End diff --

Ok. Looks like you took care of that in 5145? So I rebased and pushed a new 
copy. Looks clear to me now.


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16477945#comment-16477945
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user MikeThomsen commented on a diff in the pull request:

https://github.com/apache/nifi/pull/2706#discussion_r188743200
  
--- Diff: 
nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/src/main/java/org/apache/nifi/schema/access/SchemaAccessUtils.java
 ---
@@ -85,7 +85,7 @@
 .description("Specifies the name of the branch to use when 
looking up the schema in the Schema Registry property. " +
 "If the chosen Schema Registry does not support 
branching, this value will be ignored.")
 .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
-.expressionLanguageSupported(true)
+
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)
--- End diff --

Yeah, I'll change that. With 5145 in place now, the test framework won't 
care.


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16477716#comment-16477716
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user mattyb149 commented on a diff in the pull request:

https://github.com/apache/nifi/pull/2706#discussion_r188696201
  
--- Diff: 
nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-avro-record-utils/src/main/java/org/apache/nifi/schema/access/SchemaAccessUtils.java
 ---
@@ -85,7 +85,7 @@
 .description("Specifies the name of the branch to use when 
looking up the schema in the Schema Registry property. " +
 "If the chosen Schema Registry does not support 
branching, this value will be ignored.")
 .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
-.expressionLanguageSupported(true)
+
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)
--- End diff --

Can't SCHEMA_BRANCH_NAME and SCHEMA_VERSION possibly evaluate EL using 
FlowFile attributes like SCHEMA_NAME (from 
[SchemaNamePropertyStrategy](https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/src/main/java/org/apache/nifi/schema/access/SchemaNamePropertyStrategy.java#L62))?
 I traced the calls back to 
[RecordReaderFactory](https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-service-api/src/main/java/org/apache/nifi/serialization/RecordReaderFactory.java#L46),
 where you _might_ have FlowFile attributes available.


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16477446#comment-16477446
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2706
  
This one is dependent on 5145 being merged.


> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5197) Fix invalid expression language scope declarations

2018-05-16 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16477396#comment-16477396
 ] 

ASF GitHub Bot commented on NIFI-5197:
--

GitHub user MikeThomsen opened a pull request:

https://github.com/apache/nifi/pull/2706

NIFI-5197 Fixed a bunch of EL scope bugs in the Mongo processors.

NIFI-5197 Replaced a bunch of expressionLanguageSupported(true) statements 
with the right scope.

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- where  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:
- [ ] Have you ensured that the full suite of tests is executed via mvn 
-Pcontrib-check clean install at the root nifi folder?
- [ ] Have you written or updated unit tests to verify your changes?
- [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)? 
- [ ] If applicable, have you updated the LICENSE file, including the main 
LICENSE file under nifi-assembly?
- [ ] If applicable, have you updated the NOTICE file, including the main 
NOTICE file found under nifi-assembly?
- [ ] If adding new Properties, have you added .displayName in addition to 
.name (programmatic access) for each of the new properties?

### For documentation related changes:
- [ ] Have you ensured that format looks appropriate for the output in 
which it is rendered?

### 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.


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/MikeThomsen/nifi NIFI-5197

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/nifi/pull/2706.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #2706


commit c2428434b6b30c60bc50f405ec92a57f74bd6216
Author: Mike Thomsen 
Date:   2018-05-16T00:54:51Z

NIFI-5197 Fixed a bunch of EL scope bugs in the Mongo processors.
NIFI-5197 Replaced a bunch of expressionLanguageSupported(true) statements 
with the right scope.




> Fix invalid expression language scope declarations
> --
>
> Key: NIFI-5197
> URL: https://issues.apache.org/jira/browse/NIFI-5197
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Mike Thomsen
>Assignee: Mike Thomsen
>Priority: Minor
>
> Some of the expression language scope declarations are wrong, such as 
> declaring VARIABLE_REGISTRY and then passing in a flowfile as the argument in 
> the processor. These need to be hunted down and cleaned up in one single 
> commit. Each set of unit and integration tests should be run to verify where 
> problems reside.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)