Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."
Today's Topics:
1. GraphViz bug on strings containing double-quotes (Brian Candler)
----------------------------------------------------------------------
Message: 1
Date: Fri, 29 Aug 2014 10:47:30 +0100
From: Brian Candler <[email protected]>
Subject: [Netdot-devel] GraphViz bug on strings containing
double-quotes
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
FYI,
There's a bug in the CPAN GraphViz module where it fails to escape
values with double-quotes.
From Netdot's point of view, the symptoms are that when you try to view
a graph (e.g. IP Tree view):
- the browser displays a broken image icon
- there is a zero-byte png file in /usr/local/netdot/htdocs/img/graphs/
- there is a confusing "warning" message in Apache error log along the
lines of:
"Warning: <stdin>: syntax error in line 13 near 'Group'"
as graphviz tries to parse an invalid input file.
In turn this was caused by an IP block containing double-quotes in its
description:
mysql> select * from ipblock where description like '%"%' \G
*************************** 1. row ***************************
address: 168428288
asn: NULL
description: "Router Group 3"
first_seen: 2014-08-27 09:23:29
id: 19
info: NULL
interface: NULL
last_seen: 2014-08-29 09:00:32
monitored: 0
owner: 1
parent: 5012
prefix: 24
rir: NULL
status: 5
use_network_broadcast: 0
used_by: NULL
version: 4
vlan: NULL
1 row in set (0.00 sec)
Reported upstream as
https://rt.cpan.org/Public/Bug/Display.html?id=98427
(this includes code using a sample Netdot node for replicating the problem)
However it might be worth trying to work around this temporarily, e.g.
strip out any double-quotes being passed to the perl GraphViz module.
Regards,
Brian.
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 89, Issue 9
*******************************************