SoftInstigate / restheart

Rapid API Development with MongoDB
https://restheart.org
GNU Affero General Public License v3.0
807 stars 171 forks source link

GET on db only succeeds with trailing slash #286

Closed christiangroth closed 6 years ago

christiangroth commented 6 years ago

Hi,

we have some issues fetching data from an existing collection when no trailing slash is provided:

Expected Behavior

curl http://HOST/DB --> HTTP 200 OK curl http://HOST/DB/ --> HTTP 200 OK

Current Behavior

curl http://HOST/DB --> HTTP 403 Forbidden curl http://HOST/DB/ --> HTTP 200 OK

Environment

Steps to Reproduce

For collections it behaves as expected. Maybe we miss something or is this a bug?

Best regards Christian

christiangroth commented 6 years ago

We've found the root of all evil in our own code extending AccessManager, so we can close this issue. Sorry!

mkjsix commented 6 years ago

Glad to hear you solved your issue, you are welcome.