You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever the NAV web UI crashes with a 500 error, the error template used in a non-DEBUG setting provides an expandable section containing a Python traceback. This is provided as a convenience for users to be able to copy&paste this traceback into a bug report.
However, the styling and formatting of the traceback makes it look horrible.
First of all, the presentation seems to throw out both indentation and newlines from each stack frame. This makes the traceback less readable, and it will also not be marked up correctly by the pytb lexer when copied and pasted into a pytb code block in a GitHub issue.
Secondly, each line of the traceback is presented as a separate block with a grey background and frame around the text element, which just looks bad.
To Reproduce
Ensure DJANGO_DEBUG is set to False in nav.conf (reload the web process if necessary)
Browse /500 on the NAV web UI (this is a hidden URL to provoke and test the 500 error page)
Expand the 'View traceback' section
See described issues with presentation
Expected behavior
The traceback should be presented in true copy&paste fashion, with intact newlines and whitespace between file references and code excerpts. Also, the entirety of the text block should be presented as one block element with a single frame, not as multiple blocks.
Screenshots
Environment (please complete the following information):
NAV version installed: 5.6.1, master
The text was updated successfully, but these errors were encountered:
Describe the bug
Whenever the NAV web UI crashes with a 500 error, the error template used in a non-DEBUG setting provides an expandable section containing a Python traceback. This is provided as a convenience for users to be able to copy&paste this traceback into a bug report.
However, the styling and formatting of the traceback makes it look horrible.
First of all, the presentation seems to throw out both indentation and newlines from each stack frame. This makes the traceback less readable, and it will also not be marked up correctly by the
pytb
lexer when copied and pasted into apytb
code block in a GitHub issue.Secondly, each line of the traceback is presented as a separate block with a grey background and frame around the text element, which just looks bad.
To Reproduce
DJANGO_DEBUG
is set toFalse
innav.conf
(reload the web process if necessary)/500
on the NAV web UI (this is a hidden URL to provoke and test the 500 error page)Expected behavior
The traceback should be presented in true copy&paste fashion, with intact newlines and whitespace between file references and code excerpts. Also, the entirety of the text block should be presented as one block element with a single frame, not as multiple blocks.
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: