apache / apache/pouchdb

PouchDB should reject non-local IDs starting with _local

Open
#8,642 2 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.