PouchDB should reject non-local IDs starting with _local
Open
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
PouchDB should reject IDs starting with `_local` but not `_local/`.
From @rnewson in https://github.com/pouchdb/pouchdb/issues/8602#issuecomment-1430924859:
> noting that couchdb rejects such ids;
>
> ```
> curl foo:bar@localhost:15984/db1/_localfoo -XPUT -d {}
> {"error":"illegal_docid","reason":"Only reserved document ids may start with underscore."}
> ```
>
> pouchdb should do likewise, in addition to fixing the regexs mentioned above.
Contributor guide
Assessment
This issue has not been assessed yet.