From 46c3ac90f31738c004175e2aafe75d89de3cae27 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 18 Aug 2025 21:49:41 -0700 Subject: [PATCH] email: Fix Thunderbird auto configuration failure - When there is no URL name provided, the view fails to render when computing breadcrumbs from middleware. Provide a name so that the URL does not lead to a 500 HTTP error. Tests: - Accessing the URL on development machine does not lead to an error page. - On a production machine, when trying to use Thunderbird account setup wizard, without the patch, Thunderbird says that it found configuration by enumerating common names for the domain. A 500 error can be seen in the journal. After the change in patch, Thunderbird says that it found the configuration from the provider. A 200 success code can be seen from journal. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/email/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/email/urls.py b/plinth/modules/email/urls.py index 7c74adb5d..8607f7d61 100644 --- a/plinth/modules/email/urls.py +++ b/plinth/modules/email/urls.py @@ -16,5 +16,6 @@ urlpatterns = [ name='dns'), path('apps/email/aliases/', non_admin_view(views.AliasView.as_view()), name='aliases'), - path('apps/email/config.xml', public(views.XmlView.as_view())), + path('apps/email/config.xml', public(views.XmlView.as_view()), + name='config-xml'), ]