mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 19:25:00 +03:00
- Upgrade `y-octo` to `0.4.2` (`y-octo-core 0.1.1`) in `packages/backend` and add `y-octo-core` to `server-sync` and `server-domain` for write-boundary v1 scanning. - Reject new zero-length struct updates in `server-sync::storage::validate_doc_update` and `server-domain::workspaces::create_workspace_with_init` via `y_octo_core::decoder_v1::decode_update_v1` while keeping persisted historical zero-length reads intact. - Align workspace lifecycle root-doc decoding to `WORKSPACE_LIFECYCLE_MIGRATION_READ_LIMITS` (`max_structs = 16_000_000`), propagate `ReadError::ResourceLimit` before committing `storage_reconciliation_checkpoints`, and preserve the `[affine-doc:resource_limit]` marker in `server-domain::doc_sharing`. - Keep `ReadError::IncompleteSnapshot` fallback to `Doc::try_from_binary_v1` in `server-sync` and `server-domain` while enforcing `ReadLimits`. - Add regression tests for cross-frame zero-length poisoning, workspace init zero-length rejection, legacy zero-length recovery, multi-client clock gaps, alias `ResourceLimit` markers, and lifecycle `ResourceLimit` rollback plus retry.
43 lines
926 B
TOML
43 lines
926 B
TOML
[package]
|
|
name = "server-sync"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
async-trait.workspace = true
|
|
axum.workspace = true
|
|
base64.workspace = true
|
|
chrono.workspace = true
|
|
futures-util.workspace = true
|
|
hex.workspace = true
|
|
http.workspace = true
|
|
lru.workspace = true
|
|
rand.workspace = true
|
|
redis.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
server-db.workspace = true
|
|
server-domain.workspace = true
|
|
server-spi.workspace = true
|
|
server-types.workspace = true
|
|
server-worker.workspace = true
|
|
sha2.workspace = true
|
|
sqlx.workspace = true
|
|
thiserror.workspace = true
|
|
tokio.workspace = true
|
|
tracing.workspace = true
|
|
url.workspace = true
|
|
uuid.workspace = true
|
|
y-octo.workspace = true
|
|
y-octo-core.workspace = true
|
|
|
|
[dev-dependencies]
|
|
postgres.workspace = true
|
|
test-db-harness.workspace = true
|