Details
-
Bug
-
Resolution: Fixed
-
Critical
-
3.1.0
-
Security Level: Public
-
None
-
CBG Sprint 122
-
1
Description
The API routing we use to allow /db/ to map to /db._default._default/ doesn't work when the default collection is explicitly defined alongside a named collection.
- Removing the named collection makes this work (i.e. we're handling an explicit default collection OK, but only when it's the ONLY collection defined).
Repro steps:
- Create database with _default scope, the _default collection and a named collection
- Make a doc using PUT /db._default._default/doc1 and it works
- Make a doc using PUT /db._default.customCollection/doc2 and it works
- Make a doc using PUT /db/doc3 and get a 404 keyspace not found error
- This should route to the default collection, like in step 2
Skipped unit test that repros: TestCollectionsPutDocInDefaultCollectionWithNamedCollections