You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ReactiveMongo - http://reactivemongo.org
Hi
I have a bit of functionality in my project where a mongoDb collection is being renamed.
All was working OK until I have upgraded from 0.10.5 to version 0.11.5.
It does not flag any errors it just does not do anything.
Please advise.
Regards
Vlad
Vlad Shiligin
unread,
Dec 11, 2015, 8:03:43 AM12/11/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ReactiveMongo - http://reactivemongo.org
...after some investigation:
1) according to MongoDB docs: "renameCollection may only be run against the admin database". Which means that the reactivemongo's collection.rename(...) will never work unless the user is auth'd.
2) because this method returns Future[Unit] - there's no way to get hold on feedback messages returned by mongoDB.
Cédric Chantepie
unread,
Dec 12, 2015, 5:39:59 AM12/12/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ReactiveMongo - http://reactivemongo.org
Future is sufficient to hold error details.
Cédric Chantepie
unread,
Dec 12, 2015, 4:35:48 PM12/12/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ReactiveMongo - http://reactivemongo.org
Hi,
I have a similar problem. I used CollectionMetaCommands.rename with 0.10.5 and it worked perfectly. Now I want to switch to 0.11.14 and the command does not work anymore. I do not get an error in application log, but I see the following error in mongo.log: Unauthorized: renameCollection may only be run against the admin database
Is 0.11.14 more restrictive than 0.10.5 when it comes to "admin" commands? I never had an admin user and never needed to authorize with 0.10.5.
Br James
Cédric Chantepie
unread,
Oct 28, 2016, 1:03:52 PM10/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ReactiveMongo - http://reactivemongo.org
Hi,
(2) is wrong, as Future.failed represents possible error as any other async op.