web ui config diff/display pages error when encountering non-ascii characters #1425

Closed
puphime opened this Issue Jun 29, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@puphime

puphime commented Jun 29, 2018

as in the title, the web ui throws an exception when the config in question has a non-standard character
in this particular case the fortiOS config contains replacement HTML for blocked pages containing:

Wykryto próbę dostępu do strony www podlegającej filtrowaniu.<br> W przypadku pewności że została zablokowana nieprawidłowa strona prosimy o informację w systemie Helpdesk wraz z treścią poniższego komunikatu.

this results in an Encoding::UndefinedConversionError at /node/version/view or /node/version/diffs ("\xC3" from ASCII-8BIT to UTF-8) in file: encoder.rb location: encode line: 25

Backtrace is attached bc github backticks delete all the whitespace for some reason

backtrace.txt

@wk

This comment has been minimized.

Show comment
Hide comment
@wk

wk Jul 1, 2018

Collaborator

You are using a very old version of oxidized and oxidized-web. This issue has been resolved in ytti/oxidized-web#148. Please upgrade to 0.24/0.11.1.

Collaborator

wk commented Jul 1, 2018

You are using a very old version of oxidized and oxidized-web. This issue has been resolved in ytti/oxidized-web#148. Please upgrade to 0.24/0.11.1.

@wk wk closed this Jul 1, 2018

@wk wk added the help label Jul 1, 2018

@puphime

This comment has been minimized.

Show comment
Hide comment
@puphime

puphime Jul 3, 2018

thanks, turns out my supervisor somehow installed an old version and i didnt realise

puphime commented Jul 3, 2018

thanks, turns out my supervisor somehow installed an old version and i didnt realise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment