CodeQL js/incomplete-sanitization, alerts #593, #594 and #595: docs/Databases/FerretDB/1/SpeedTest/report.cjs escaped `|` as `\|` in Markdown table cells but left a backslash alone, so a value ending in a backslash turned the added one into a literal backslash and its pipe split the cell. One mdCell() helper escapes the backslash first, then the pipe, and turns a line break into a space; it is also used for the database's name and the query's title, which were not escaped at all. tests/speedTestReportCells.test.cjs checks the escaping, that no value can add a column to its row, and that nothing in the tree escapes a pipe without the backslash. The report is generated from local speed test results at build time, so there is no attempt to record in Admin Panel / Problems. Thanks to GitHub CodeQL and xet7 !
FerretDB
FerretDB speaks the MongoDB wire protocol and stores the data in something else,
so WeKan runs unchanged on top of it — WeKan only ever connects to
mongodb://ferretdb:27017/wekan?directConnection=true and knows nothing about
what is behind it. The directConnection=true is required, not decoration:
without it the driver follows FerretDB's replica-set handshake to the wildcard
address FerretDB listens on and the stack cannot start
(#6582, explained in
1/README.md).
There are two versions, and they are different products:
| Directory | Version | Stores into |
|---|---|---|
| 1 | FerretDB v1, the wekan/FerretDB fork — WeKan's default database | SQLite (embedded), PostgreSQL, MySQL, MariaDB, SAP HANA |
| 2 | FerretDB 2, upstream | PostgreSQL with the DocumentDB extension, only |
Upstream dropped every backend except PostgreSQL in v2. The fork keeps v1 alive because the embedded SQLite backend is what makes a WeKan install self-contained — no database server at all — and because it is the database WeKan ships for the platforms MongoDB has no server build for: ppc64le, s390x and riscv64.
See also
- ../MongoDB — the classic database, if you prefer MongoDB itself
- wekan/FerretDB — the fork, its releases and its CHANGELOG