Defect #23395
closed
Markdown formatter crashes
Added by Andreas Kohlbecker over 8 years ago.
Updated over 8 years ago.
Description
The markdown formatter crashes redmine 3.3.0 on interpreting the following incomplete markdown snipped.
[areas.php" and "points.php]()
This markdown has been created by converting textile to markdown using pandoc, see also #22005
This is the according stack trace:
lib/redmine/helpers/url.rb:26:in `uri_with_safe_scheme?'
lib/redmine/wiki_formatting/markdown/formatter.rb:28:in `link'
lib/redmine/wiki_formatting/markdown/formatter.rb:60:in `render'
lib/redmine/wiki_formatting/markdown/formatter.rb:60:in `to_html'
lib/redmine/wiki_formatting.rb:89:in `to_html'
app/helpers/application_helper.rb:598:in `textilizable'
app/views/wiki/_content.html.erb:2:in `_app_views_wiki__content_html_erb__4530570473966196404_68637680'
app/views/wiki/show.html.erb:47:in `_app_views_wiki_show_html_erb___3335969183249968685_67365760'
app/controllers/wiki_controller.rb:114:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
It is most probably the missing URI which processed in a not nil save manner which is causing the crash.
- Category changed from Wiki to Text formatting
- Related to Defect #23246: Saving an empty Markdown image tag in Wiki pages causes internal server error added
- Status changed from New to Needs feedback
I cannot reproduce on 3.3-stable r15722. I think #23246 fixed it.
I can confirm that #23246 fixed it
- Status changed from Needs feedback to Closed
- Resolution set to Duplicate
Thanks for your feedback, the fix will be included in 3.3.1 and 3.2.4.
- Related to deleted (Defect #23246: Saving an empty Markdown image tag in Wiki pages causes internal server error)
- Is duplicate of Defect #23246: Saving an empty Markdown image tag in Wiki pages causes internal server error added
Also available in: Atom
PDF