[GH-ISSUE #1107] SSLError crashes /dashboard/ #921

Closed
opened 2026-02-27 11:14:17 +03:00 by kerem · 0 comments
Owner

Originally created by @msenebald on GitHub (Apr 22, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1107

Impacted versions

  • Modoboa: 1.7.2
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

External Resource used on Dashboard with invalid SSL Certificate crashs
/dashboard/

Current behavior

https://modoboa.org/en/api/projects/?featured=true certificate is expired (:D this morning)

modoboa.org verwendet ein ungültiges Sicherheitszertifikat. Das Zertifikat ist am 22. April 2017 um 00:01 abgelaufen. Die aktuelle Zeit ist 22. April 2017 um 02:43. 

produces on modoboa dashboard:

SSLError at /dashboard/

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)

Request Method: 	GET
Request URL: 	http://127.0.0.1:8000/dashboard/
Django Version: 	1.10.7
Exception Type: 	SSLError
Exception Value: 	

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)

Exception Location: 	/srv/modoboa/env/local/lib/python2.7/site-packages/requests/adapters.py in send, line 497
Python Executable: 	/srv/modoboa/env/bin/python
Python Version: 	2.7.9
Python Path: 	

['/srv/modoboa/instance',
 '/srv/modoboa/env/lib/python2.7',
 '/srv/modoboa/env/lib/python2.7/plat-x86_64-linux-gnu',
 '/srv/modoboa/env/lib/python2.7/lib-tk',
 '/srv/modoboa/env/lib/python2.7/lib-old',
 '/srv/modoboa/env/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/srv/modoboa/env/local/lib/python2.7/site-packages']

Server time: 	Sat, 22 Apr 2017 02:42:48 +0200

Expected behavior

catches Errors on external resources and displays dashboard.

Additional Debug Infos:

/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/core/views/dashboard.py in get_context_data
            response = requests.get(url)
     ...
▼ Local vars
Variable 	Value
context 	

{'news': [],
 'selection': 'dashboard',
 u'view': <modoboa.core.views.dashboard.DashboardView object at 0x7f8a9be70850>,
 'widgets': {'left': ['core/_latest_news_widget.html'], 'right': []}}
entries 	[]

feed_url 	'https://modoboa.org/en/weblog/feeds/'
kwargs 	{}
lang 	'en'
posts 	{'bozo': 1,
 'bozo_exception': URLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),),
 'entries': [],
 'feed': {}}
self 	<modoboa.core.views.dashboard.DashboardView object at 0x7f8a9be70850>
url 	'https://modoboa.org/en/api/projects/?featured=true'
Originally created by @msenebald on GitHub (Apr 22, 2017). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1107 # Impacted versions * Modoboa: 1.7.2 * installer used: Yes * Webserver: Nginx # Steps to reproduce External Resource used on Dashboard with invalid SSL Certificate crashs /dashboard/ # Current behavior https://modoboa.org/en/api/projects/?featured=true certificate is expired (:D this morning) ``` modoboa.org verwendet ein ungültiges Sicherheitszertifikat. Das Zertifikat ist am 22. April 2017 um 00:01 abgelaufen. Die aktuelle Zeit ist 22. April 2017 um 02:43. ``` produces on modoboa dashboard: ``` SSLError at /dashboard/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) Request Method: GET Request URL: http://127.0.0.1:8000/dashboard/ Django Version: 1.10.7 Exception Type: SSLError Exception Value: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) Exception Location: /srv/modoboa/env/local/lib/python2.7/site-packages/requests/adapters.py in send, line 497 Python Executable: /srv/modoboa/env/bin/python Python Version: 2.7.9 Python Path: ['/srv/modoboa/instance', '/srv/modoboa/env/lib/python2.7', '/srv/modoboa/env/lib/python2.7/plat-x86_64-linux-gnu', '/srv/modoboa/env/lib/python2.7/lib-tk', '/srv/modoboa/env/lib/python2.7/lib-old', '/srv/modoboa/env/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/srv/modoboa/env/local/lib/python2.7/site-packages'] Server time: Sat, 22 Apr 2017 02:42:48 +0200 ``` # Expected behavior catches Errors on external resources and displays dashboard. # Additional Debug Infos: ``` /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/core/views/dashboard.py in get_context_data response = requests.get(url) ... ▼ Local vars Variable Value context {'news': [], 'selection': 'dashboard', u'view': <modoboa.core.views.dashboard.DashboardView object at 0x7f8a9be70850>, 'widgets': {'left': ['core/_latest_news_widget.html'], 'right': []}} entries [] feed_url 'https://modoboa.org/en/weblog/feeds/' kwargs {} lang 'en' posts {'bozo': 1, 'bozo_exception': URLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),), 'entries': [], 'feed': {}} self <modoboa.core.views.dashboard.DashboardView object at 0x7f8a9be70850> url 'https://modoboa.org/en/api/projects/?featured=true' ```
kerem 2026-02-27 11:14:17 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#921
No description provided.