Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
Professional Edition
-
Debian GNU/Linux 8, rancid 2.3.8-6
Observium 0.15.12.7231
Description
Browser freezes if rancid configs with i.e. 200k lines are tried to be displayed.
I tried this with firefox and also safari. Both freeze and need to be killed.
I tried to workaround with the following change in html/pages/device/showconfig.inc.php
diff showconfig.inc.php.orig showconfig.inc.php
227c227,235
< <?php echo(escape_html($device_config)); ?>
—
> <?php
> $device_config_lines = count(file($device_config_file));
> if ($device_config_lines < 10000)Unknown macro: { > echo(escape_html($device_config)); > }else
Unknown macro: { > echo("Sorry, too many lines to display}> ?>
With this workaround the config is not displayed if it has more than 10k lines. I think it would be nicer to be able to download the config file but at least the browser does not freeze any more.
I also do not know how many lines can be displayed in a browser without any problems.
Attachments
Issue Links
- clones
-
OBS-1622 browser freezes when big rancid configs are tried to be displayed
- Closed