Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Tor ColvinTor ColvinReporter
Ben BrooksBen BrooksStory Points
1Components
Sprint
NoneFix versions
Affects versions
Priority
CriticalInstabug
Open Instabug
Details
Details
Assignee
Tor Colvin
Tor ColvinReporter
Ben Brooks
Ben BrooksStory Points
1
Components
Sprint
None
Fix versions
Affects versions
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty
PagerDuty
Sentry
Sentry
Sentry
Zendesk Support
Zendesk Support
Zendesk Support
Created April 28, 2023 at 2:22 PM
Updated August 31, 2024 at 10:58 AM
Resolved May 31, 2023 at 4:32 PM
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