[
https://issues.apache.org/jira/browse/NIFI-5305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16544566#comment-16544566
]
ASF GitHub Bot commented on NIFI-5305:
--------------------------------------
Github user ottobackwards commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2891#discussion_r202545693
--- Diff:
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/GetMongoIT.java
---
@@ -468,4 +469,37 @@ public void testKeepOriginalAttributes() {
/*
* End query read behavior tests
*/
+
+ /*
+ * Verify that behavior described in NIFI-5305 actually works.
--- End diff --
Maybe an explanation of the 'case' would be appropriate, like " Test that
when you do foo, bar happens and when you do baz, foo happens, see NIFI-5303" ?
That would help maintainers.
> Parameterized collection name fails with dynamic params
> -------------------------------------------------------
>
> Key: NIFI-5305
> URL: https://issues.apache.org/jira/browse/NIFI-5305
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.6.0
> Reporter: Luis M Calderon
> Assignee: Mike Thomsen
> Priority: Major
> Attachments: getmongo_error.txt
>
>
> When using a dynamic property for collection name, the creation of the full
> query reference name is not working as expected. The reference name seems to
> be the concatenation of the namespace and collection name. i.e.
> _<namespace>.<collection_name>)_
> The following parameters are those which are provided to the GetMongo
> Processor:
> Param Definitions:
> my_schema = 'my_schema'
> collection_name = <dynamic value from a FlowFile attribute>
> {code:java}
> Mongo Database Name: ${my_schema}
> Mongo Collection Name: ${collection_name}{code}
>
> Attached is a text file containing the NiFi log for this error.
>
> _There is no namespace error when the same values are hard coded._
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)