mirror of
https://github.com/zulip/zulip.git
synced 2026-06-03 21:01:43 +08:00
The download URL for a realm export tarball previously contained only a random suffix, making it easy to download the wrong file when multiple exports were available in the admin UI -- or when an admin manages exports across multiple organizations. Embed both the realm's string_id (when non-empty) and the UTC timestamp of the export in the tempdir prefix, producing tarballs named like zulip-export-<string_id>-2026-05-25-09-30-45-<rand>.tar.gz (or zulip-export-2026-05-25-09-30-45-<rand>.tar.gz for the root realm, whose string_id is empty). The timestamp format matches the convention used by `./manage.py backup`; the random suffix is retained to disambiguate same-second exports. The prefix is built by a new `export_tarball_prefix()` helper in `zerver/lib/export.py`, shared by the `export` and `export_single_user` management commands and the deferred-work queue worker that handles admin-UI export requests. Fixes https://chat.zulip.org/#narrow/channel/9-issues/topic/discrepancies.20in.20data.20export/with/2467409 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| _static | ||
| _templates | ||
| contributing | ||
| development | ||
| documentation | ||
| git | ||
| images | ||
| outreach | ||
| overview | ||
| processes | ||
| production | ||
| subsystems | ||
| testing | ||
| translating | ||
| tutorials | ||
| webhooks | ||
| .gitignore | ||
| code-of-conduct.md | ||
| conf.py | ||
| index.md | ||
| Makefile | ||
| README.md | ||
| THIRDPARTY | ||
Zulip Markdown documentation hosted elsewhere
The Markdown files in this directory ( /zulip/docs ) are not intended to be read on GitHub. Instead, visit our ReadTheDocs to read the Zulip documentation.