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

Matthew Dinep commented on NIFI-5988:
-------------------------------------

I have attached a patch file for review that implements methods in the 
AbstractMongoProcessor similar to checkCollectionNameValidity and 
checkDatabaseNameValidity found in the MongoDB source, but returning a boolean. 
These are then called in GetMongo and, if they fail, logs an error and 
transfers the flowfile to failure.

> GetMongo fails to transfer to failure relationship with invalid database or 
> collection name
> -------------------------------------------------------------------------------------------
>
>                 Key: NIFI-5988
>                 URL: https://issues.apache.org/jira/browse/NIFI-5988
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Mike Thomsen
>            Priority: Major
>         Attachments: 
> 0001-NIFI-5988-check-database-and-collection-name-validit.patch
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> Invalid Database/Collection names:  If GetMongo is configured with invalid 
> DatabaseName/CollectionName, it doesn't log any ERROR as bulletin or in log 
> file and also doesn't route to failure relation. It should route to failure 
> with some Error message.



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

Reply via email to