Bug 1324902 - space parsing issue in abrt-action-save-package-data.conf
Summary: space parsing issue in abrt-action-save-package-data.conf
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libreport
Version: 6.7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: abrt
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On: 1434414
Blocks: 1269194
TreeView+ depends on / blocked
 
Reported: 2016-04-07 14:31 UTC by Deepu K S
Modified: 2019-12-16 05:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1434414 1435256 (view as bug list)
Environment:
Last Closed: 2017-08-15 19:07:34 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.