RAVINARAYAN SINGH created NIFI-15184:
----------------------------------------
Summary: PutMongo processor fails when _id field used as update
key is a Document or Array
Key: NIFI-15184
URL: https://issues.apache.org/jira/browse/NIFI-15184
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Affects Versions: 2.4.0
Reporter: RAVINARAYAN SINGH
Assignee: RAVINARAYAN SINGH
When using the *PutMongo* processor in _update mode_ (with an update key
defined), the internal helper method parseUpdateKey() does not handle cases
where the _id field is a *Document* or *Array*.
According to MongoDB’s BSON specification, _id may be any valid BSON type,
including nested documents and arrays. However, PutMongo assumes _id is either
an ObjectId or a String
--
This message was sent by Atlassian Jira
(v8.20.10#820010)