Bug 1262246

Summary: Augeas based config parser requires spaces around '='
Product: Red Hat Enterprise Linux 6 Reporter: Siteshwar Vashisht <svashisht>
Component: libreportAssignee: Jakub Filak <jfilak>
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7CC: dkochuka, jberan, jfilak, mhabrnal, mkyral, nobody+abrt-devel-list
Target Milestone: rcKeywords: EasyFix, Patch
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libreport-2.0.9-28.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-11 00:39:04 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: 1254457    
Attachments:
Description Flags
Patch none

Description Siteshwar Vashisht 2015-09-11 09:16:05 UTC
Description of problem:
Augeas based config parser requires spaces around '='

Version-Release number of selected component (if applicable):
libreport-2.0.9-24.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create a user acccount with id 'test' and add below lines in '/etc/libreport/plugins/mailx.conf' :

Subject="abrt crash report"
EmailFrom="root"
EmailTo="test@localhost"

2. Execute 'sleep 60 &' in terminal
3. Kill sleep process by executing 'kill -11 $(pidof sleep)'.

Actual results:
mailx plugin sends an email to 'root@localhost' address.

Expected results:
mailx plugin should send an email to 'test@localhost' address.

Additional info:
mailx plugin behaves properly if spaces are added around '='.

This bug is not reproducible on RHEL 6.6.

Change of behaviour was introduced by https://github.com/abrt/libreport/commit/b82232e57e4b1f61168652e8700bdf800a8525cf and it should be fixed by backporting https://github.com/abrt/libreport/commit/426953f8dd165339fc3ca9a8975fe2fe9efc8162

Comment 2 Jakub Filak 2015-11-19 14:32:17 UTC
I pushed the patch to rhel-6.8-staging branch.

Comment 6 errata-xmlrpc 2016-05-11 00:39:04 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, 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://rhn.redhat.com/errata/RHBA-2016-0920.html