Bug 1324902

Summary: space parsing issue in abrt-action-save-package-data.conf
Product: Red Hat Enterprise Linux 6 Reporter: Deepu K S <dkochuka>
Component: libreportAssignee: abrt <abrt-devel-list>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7CC: ayadav, cww, dkochuka, mhabrnal, msuchy, nobody+abrt-devel-list
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1434414 1435256 (view as bug list) Environment:
Last Closed: 2017-08-15 19:07: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:
Bug Depends On: 1434414    
Bug Blocks: 1269194    

Description Deepu K S 2016-04-07 14:31:09 UTC
Description of problem:
ABRT fails to read configuration options in /etc/abrt/abrt-action-save-package-data.conf properly if there are spaces involved.

OpenGPGCheck = no
                 ^
                 |___ <space>

"ProcessUnpackaged =  yes"
                     ^  
                     |__ Additional space here.

abrtd still reads the default values as ;
OpenGPGCheck = yes
ProcessUnpackaged = no

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 6
abrt-2.0.8-34.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Set OpenGPGCheck = no<space> or ProcessUnpackaged = <space>yes in /etc/abrt/abrt-action-save-package-data.conf

2. Restart the abrtd service.
# service abrtd restart

3. Crash a third party application or a non signed package.

Actual results:
Apr  4 19:53:31 czcholsint032 abrtd: Directory 'ccpp-2016-04-04-19:53:31-21013' creation detected
Apr  4 19:53:31 czcholsint032 abrt[21074]: Saved core dump of pid 21013 (/usr/bin/alpine) to /var/spool/abrt/ccpp-2016-04-04-19:53:31-21013 (3006464 bytes)
Apr  4 19:53:31 czcholsint032 abrtd: Package 'alpine' isn't signed with proper key
Apr  4 19:53:31 czcholsint032 abrtd: 'post-create' on '/var/spool/abrt/ccpp-2016-04-04-19:53:31-21013' exited with 1
Apr  4 19:53:31 czcholsint032 abrtd: Deleting problem directory '/var/spool/abrt/ccpp-2016-04-04-19:53:31-21013'

Expected results:
ABRT should read the configuration appropriately in case of spaces and capture crashes.

Additional info:
Issue is also seen in RHEL 7.