zulip/zerver
Anders Kaseorg ddf8ec33df upload: Strip leading slash from deleted S3 export paths.
Previously, S3UploadBackend.delete_export_tarball failed to strip the
leading ‘/’ from the export path.  This mistake is now caught by Moto
1.3.15.  I expect it caused deletion failures in the real S3, although
I haven’t verified this.

We store export_path in the audit log with a leading ‘/’, but the
actual S3 keys do not have a leading ‘/’.  Changing either system
would require a migration.  So the new convention is that the
variables named ‘export_path’ have a leading ‘/’, while variables
named ‘path_id’ or ‘key’ do not.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-09-13 20:59:09 -07:00
..
data_import python: Use standard secrets module to generate random tokens. 2020-09-09 15:52:57 -07:00
lib upload: Strip leading slash from deleted S3 export paths. 2020-09-13 20:59:09 -07:00
management python: Pre-fix a few spots for better Black formatting. 2020-09-03 17:51:09 -07:00
migrations migrations: Fix 0301 to replace a Python loop with SQL. 2020-09-13 20:59:09 -07:00
openapi openapi: Remove ‘example’ $ref siblings. 2020-09-12 11:57:13 -07:00
templatetags python: Replace list literal concatenation with * unpacking. 2020-09-02 11:15:41 -07:00
tests upload: Strip leading slash from deleted S3 export paths. 2020-09-13 20:59:09 -07:00
tornado python: Pre-fix a few spots for better Black formatting. 2020-09-03 17:51:09 -07:00
views urls: Migrate re_path routes to path. 2020-09-12 14:29:26 -07:00
webhooks webhooks/gitlab: Add fixture for MR opened with multiple assignees. 2020-09-13 20:54:14 -07:00
worker queue: Extract get_remaining_queue_size method. 2020-09-11 15:51:07 -07:00
__init__.py
apps.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
context_processors.py exceptions: Raise InvalidSubdomainError when realm is invalid. 2020-09-03 10:45:14 -07:00
decorator.py webhooks: Move the extra logging information into a formatter. 2020-09-11 16:43:29 -07:00
filters.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
forms.py middleware: Make HostDomain into a process_request, not process_response. 2020-08-11 10:37:55 -07:00
logging_handlers.py models: Force the translated role into a translated string. 2020-09-03 17:26:54 -07:00
middleware.py request: Maintain a thread-local of the current request. 2020-09-11 16:43:29 -07:00
models.py migrations: Add case-insensitive unique index on realm and stream name. 2020-09-13 15:36:43 -07:00
signals.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00