matrix-org / matrix-org/matrix-bifrost

"UnhandledPromiseRejectionWarning: Error: Field names cannot contain a ." with NeDB engine

Open
#200 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T-Defect
Dominant language
TypeScript
Stars
187
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

(node:3488955) UnhandledPromiseRejectionWarning: Error: Field names cannot contain a .
    at checkKey (/media/d/temp/git/matrix-bifrost/node_modules/.pnpm/nedb@1.8.0/node_modules/nedb/lib/model.js:36:11)
    at /media/d/temp/git/matrix-bifrost/node_modules/.pnpm/nedb@1.8.0/node_modules/nedb/lib/model.js:54:7
    at Array.forEach (<anonymous>)
    at checkObject (/media/d/temp/git/matrix-bifrost/node_modules/.pnpm/nedb@1.8.0/node_modules/nedb/lib/model.js:53:22)
    at /media/d/temp/git/matrix-bifrost/node_modules/.pnpm/nedb@1.8.0/node_modules/nedb/lib/model.js:55:7
    at Array.forEach (<anonymous>)
    at checkObject (/media/d/temp/git/matrix-bifrost/node_modules/.pnpm/nedb@1.8.0/node_modules/nedb/lib/model.js:53:22)
    at /media/d/temp/git/matrix-bifrost/node_modules/.pnpm/nedb@1.8.0/node_modules/nedb/lib/model.js:55:7
    at Array.forEach (<anonymous>)
    at checkObject (/media/d/temp/git/matrix-bifrost/node_modules/.pnpm/nedb@1.8.0/node_modules/nedb/lib/model.js:53:22)

To Reproduce
IDK :C

Expected behavior
Probably those dots should be escaped.

Desktop (please complete the following information):

  • OS: Debian GNU/Linux 11
  • Version 0.2.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the NeDB-backed path that emits the stack trace and inspect the data reaching NeDB's checkObject in node_modules/. The report does not identify a project file or test; done means the handling of dotted field names is agreed and verified with a regression case.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
backend, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.