Exception while processing email links without EMAIL_VIEW privilege
|Reported by:||Owned by:||Ryan J Ollos|
Description (last modified by )
When markdown content contains email links like this:
and viewer doesn't have EMAIL_VIEW permission, it end up with exception (
AttributeError: 'NoneType' object has no attribute 'group').
Trac converts such links (Formatter called from Markdown/macro.py) to:
which doesn't match to HREF regexp. This causes exception on line 48 in Markdown/macro.py:
url = re.search(HREF, out.getvalue()).groups()
Attached some workaround patch.
Change History (20)
comment:1 Changed 4 years ago by
|Owner:||changed from Douglas Clifton to Ryan J Ollos|
|Priority:||normal → high|
|Status:||new → assigned|