Skip to content

v1.23.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 12:36
· 30 commits to main since this release

Features

  • Email activity. The new content_studio.contrib.email_activity app
    logs every email the site sends: from, to, cc, bcc, subject, status,
    timestamps, duration, size, attachment names and the error of a failed
    send. The body is never stored. Set EMAIL_BACKEND to
    content_studio.contrib.email_activity.backends.EmailBackend (or use it
    as a MAILERS backend on Django 6.1) and it delivers through
    EMAIL_DELIVERY_BACKEND, Django's SMTP backend by default. Superusers
    open the Email activity page from the Email row on the system status
    page, filter by status and kind, search, open an email's details and
    Send test email to their own address or another. The Email row now
    shows the emails sent in the last 24 hours and is degraded when any
    failed. Content Studio's own emails carry a kind (invite, password
    link, password reset, two-factor reset, email changed, notification
    digest, test); tag yours with email_kind() or the
    X-Content-Studio-Kind header. Emails are kept for
    EMAIL_ACTIVITY_KEEP_DAYS (30) and pruned after sending or with
    content_studio_prune_emails; EMAIL_ACTIVITY_MASK stores addresses as
    s***@example.com without subjects. has_email_activity_permission()
    on the admin site decides who sees the page. manage.py check reports
    a bad setup as content_studio.E062, and warns with
    content_studio.W035 when the app is installed but email does not go
    through the logging backend.

Fixes

  • Logged out after an hour away. Once the access token expired
    (TOKEN_LIFETIME, an hour by default), the admin's next request
    refreshed it, but the refresh still carried the expired token in its
    Authorization header and the refresh endpoint refused it, so the
    admin signed the user out although the session was still valid. This
    happened most often when coming back to a tab after a while. The
    refresh endpoint now ignores the Authorization header and the admin
    no longer sends it there.
  • Logged out by two tabs renewing at once. Each renewal replaces the
    session cookie, and a cookie presented again ends the session as
    copied. Two tabs renewing at the same moment both presented the same
    cookie, so the second one ended the session in every tab. Tabs of a
    browser now take turns renewing, and a cookie presented again within
    10 seconds of its renewal still renews the session, which also covers
    a renewal whose response was lost. The new
    REFRESH_TOKEN_REUSE_INTERVAL setting sets the window (0 or None
    for none); manage.py check reports a malformed value as
    content_studio.E063.
  • Backup and restore messages translated. The backup and restore
    strings added in 1.18.0 are now translated into every language.