Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Not able to read encrypted mongo document.

14 views
Skip to first unread message

Yogesh Meghnani

unread,
Apr 24, 2023, 5:37:44 AM4/24/23
to ReactiveMongo - http://reactivemongo.org
Hi,
I have used CSFLE feature to encrypt a column in my mongo collection.But when i am reading that collection using reactive mongo scala driver, i am getting garbage value.
I am attaching the sample document and respective json string for BsonDocument i am getting after reading it.
I am using mongo scala driver 4.4.2 and reactive mongo 0.20.0
Can you please tell me if i am missing something here or is there any specific way to read encrypted data in reactive mongo library.

Thank you
Yogesh Meghnani
JsonString.txt
SampleDocument.json

Cédric Chantepie

unread,
Apr 25, 2023, 6:00:09 AM4/25/23
to ReactiveMongo - http://reactivemongo.org
ReactiveMongo 0.20.0 is more than obselete.

Yogesh Meghnani

unread,
Apr 25, 2023, 6:41:11 AM4/25/23
to reacti...@googlegroups.com
Hii,
Thanks for your reply. Can you please suggest to me which version of reactive mongo will solve my issue.

Thank you,
Yogesh Meghnani

--
You received this message because you are subscribed to the Google Groups "ReactiveMongo - http://reactivemongo.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reactivemong...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reactivemongo/a00ceb68-ecf4-4625-a25b-8dbb308850d7n%40googlegroups.com.

Cédric Chantepie

unread,
Apr 25, 2023, 9:02:22 AM4/25/23
to ReactiveMongo - http://reactivemongo.org
The latest version is indicated on the documentation.

Carlos Saltos

unread,
Apr 26, 2023, 11:01:43 AM4/26/23
to reacti...@googlegroups.com
1.0 and above should do the trick

Yogesh Meghnani

unread,
Apr 27, 2023, 6:01:11 AM4/27/23
to reacti...@googlegroups.com
Hii,
Thanks again for quick response, i used reactive mongo 1.0.10 and I think it is dealing with binary type but now I am facing a new issue.
The subtype of my binary field is 6 and reactive mongo only accepts subtype from 0-5,so now it is not even reading the document. I don't want to decrypt the data, I just want to read it in encrypted form.
This is the error log: Response stream for [GET /iris-streaming/mongo/collection/flow_4055044208/download] failed with 'DatabaseException['java.util.NoSuchElementException: binary type = 6']'. Aborting connection.
If you anything about this issue please let me know.

Thank You
Yogesh Meghnani

Cédric Chantepie

unread,
May 1, 2023, 3:06:42 PM5/1/23
to ReactiveMongo - http://reactivemongo.org
Try 1.1.0-RC11-SNAPSHOT
Reply all
Reply to author
Forward
0 new messages