super-productivity/docs
Johannes Millan d5387b8ce6 fix(sync): prevent double-encryption of snapshot state in file-based adapter
When encryption was enabled, forceUploadLocalState (triggered by "Use local"
in conflict dialog) caused double-encryption: the upload service encrypted the
state payload, then the file adapter encrypted the entire file. On download,
only the outer layer was decrypted, leaving the state as an opaque string that
couldn't be hydrated — making "Use remote" silently fail and forcing a
ping-pong loop between clients.

Fix: _uploadSnapshot now uses getStateSnapshot() (matching _buildMergedSyncData)
instead of the passed state parameter, since file-level encryption already
handles security.

Also: clean up dead return values in _buildMergedSyncData, reset
_lastSyncTimestamps in _uploadSnapshot for consistency, and update stale
piggybacking doc reference.
2026-02-15 11:19:22 +01:00
..
long-term-plans fix(sync): prevent double-encryption of snapshot state in file-based adapter 2026-02-15 11:19:22 +01:00
promotion build: better organize stuff 2025-06-27 09:03:16 +02:00
research docs: Add recurring events research and implementation plan (#6375) 2026-02-05 15:32:44 +01:00
screens build: better organize stuff 2025-06-27 09:03:16 +02:00
sync-and-op-log fix(sync): add vector clock pruning to compaction and update docs 2026-02-15 11:19:22 +01:00
wiki refactor(sync): reduce vector clock DoS cap from 100 to 50 entries 2026-02-12 16:27:55 +01:00
add-new-integration.md docs: add comprehensive guide for creating new issue tracker integrations 2025-03-07 16:11:10 +01:00
build-and-publish-notes.md feat(build): add SignPath code signing integration for Windows 2026-01-23 14:31:24 +01:00
ENV_SETUP.md build: final approach 2025-07-14 20:52:51 +02:00
github-access-token-instructions.md docs: make token docs work better 2025-01-11 14:45:24 +01:00
gitlab-access-token-instructions.md build: update links to match our new organization 2026-01-05 14:45:06 +01:00
how-to-rate.md docs: add info about 5 star ratings 2025-10-23 10:29:55 +02:00
howto-refresh-snap-credentials.md docs: add info to refresh snap credentials 2024-02-16 17:01:49 +01:00
i18n-script-usage.md feat(tools): enhance translation management script (#6171) 2026-01-25 18:08:06 +01:00
legacy-webview-analysis.md 16.2.1 2025-11-01 13:22:58 +01:00
mac-app-store-code-signing-guide.md build: update links to match our new organization 2026-01-05 14:45:06 +01:00
performance-project-tag-report.md docs: add performance report 2025-11-13 18:23:50 +01:00
plugin-development.md Feat/plugin UI kit (#6362) 2026-02-04 18:18:22 +01:00
TRANSLATING.md feat(tools): enhance translation management script (#6171) 2026-01-25 18:08:06 +01:00
unused-translations-analysis.md chore(i18n): remove additional 86 orphan translation keys 2026-01-09 14:59:05 +01:00
update-android-app.md docs: update instructions on how to release android 2025-03-09 13:16:23 +01:00
update-mac-certificates.md build: make mas build work and fix guide 2025-11-09 16:35:09 +01:00