Bug 1679097

Summary: Syntax error in graphviz input file generates an empty image file with just a warning.
Product: Red Hat Enterprise Linux 7 Reporter: Teoman ONAY <tonay>
Component: graphvizAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Ondrej Mejzlik <omejzlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.7-AltCC: jskarvad, omejzlik, thozza
Target Milestone: rcKeywords: AutoVerified, FastFix, Patch, TestCaseProvided, Triaged, Upstream
Target Release: ---Flags: thozza: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: graphviz-2.30.1-22.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 19:33:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1780577    
Attachments:
Description Flags
graphviz sample document none

Description Teoman ONAY 2019-02-20 10:51:22 UTC
Description of problem:
When graphviz input file contains a syntax error, a empty image file is generated with a warning and an exit code 0.

The customer would like us to backport the existing fix: 

https://github.com/ellson/MOTHBALLED-graphviz/commit/181433391b1ea19caf999f91b14a50f0499b831e


Version-Release number of selected component (if applicable):
graphviz-2.30.1-21

How reproducible:
NA

Steps to Reproduce:
1.
2.
3.

Actual results:
See description

Expected results:
When the source document contains a syntax error, the program should stop with an error and an exit code > 0.

Additional info:
Sample input file requested to the customer.

Comment 2 Teoman ONAY 2019-02-28 16:17:39 UTC
Created attachment 1539588 [details]
graphviz sample document

Comment 3 Jaroslav Škarvada 2019-04-25 13:41:53 UTC
The backport seems easy (one-liner) and safe.

Comment 15 errata-xmlrpc 2020-09-29 19:33:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (graphviz bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3880