-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Your component is great but I run into crashes when I use the mongodb connector.
It happens when trying to call set()
on a null
object returned from this.app.loopback.getCurrentContext()
https://github.com/fullcube/loopback-component-access-groups/blob/master/lib/utils.js#L298
To reproduce it you can change the datasource in your simple-app using this configuration:
{
"db": {
"host": "127.0.0.1",
"port": 27017,
"database": "group-access-test",
"name": "db",
"connector": "mongodb"
}
}
There are many issues on loopback's github project about mongodb and getCurrentContext()
, they are probably related, but they are all "Closed".
strongloop/loopback#885
strongloop/loopback#809
and more
Using the memory connector works fine.
I am using the latest packages:
"loopback": "^2.29.1",
"loopback-boot": "^2.21.0",
"loopback-component-access-groups": "^0.2.0",
"loopback-connector-mongodb": "^1.15.2",
"loopback-datasource-juggler": "^2.47.0",
Metadata
Metadata
Assignees
Labels
No labels