RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1629690 - ignores complete config file if one line contains a space before EOL
Summary: ignores complete config file if one line contains a space before EOL
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: abrt
Version: 7.5
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: abrt
QA Contact: BaseOS QE - Apps
URL:
Whiteboard: insight_rule_candidate
Depends On: 1649742
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-17 10:38 UTC by s.renatscher
Modified: 2020-10-06 14:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1649742 (view as bug list)
Environment:
Last Closed: 2020-10-06 14:16:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description s.renatscher 2018-09-17 10:38:06 UTC
Description of problem:
abrtd ignores the complete config file if one line, even it is only a comment, ends with space.

Version-Release number of selected component (if applicable):
abrt-2.1.11-50.el7.x86_64


How reproducible:
every time you add a white space at end of line

Steps to Reproduce:
(0) [root@node8 ~]# rpm -V abrt
(0) [root@node8 ~]# sed -i -e 's/^MaxCrashReportsSize = 1000$/MaxCrashReportsSize = 2000/' /etc/abrt/abrt.conf
(0) [root@node8 ~]# systemctl stop abrtd.service 
(0) [root@node8 ~]# abrtd -vv -d
abrtd: Loading settings
abrtd: Loaded option 'MaxCrashReportsSize' = '1000'
abrtd: Loaded option 'DeleteUploaded' = 'no'
abrtd: Loaded option 'AutoreportingEvent' = 'report_uReport'
abrtd: Loaded option 'AutoreportingEnabled' = 'no'
abrtd: Loaded option 'PrivateReports' = 'yes'
abrtd: Loaded option 'MaxCrashReportsSize' = '2000'
abrtd: Loaded option 'DeleteUploaded' = 'no'
abrtd: Loaded option 'AutoreportingEvent' = 'report_uReport'
abrtd: Loaded option 'AutoreportingEnabled' = 'no'
abrtd: Loaded option 'PrivateReports' = 'yes'
abrtd: Searching for unprocessed dump directories
abrtd: Creating glib main loop
abrtd: Initializing inotify
abrtd: Adding inotify watch to glib main loop
abrtd: Adding signal pipe watch to glib main loop
abrtd: Creating pid file
abrtd: Init complete, entering main loop
^Cabrtd: Loaded option 'MaxCrashReportsSize' = '1000'
abrtd: Loaded option 'DeleteUploaded' = 'no'
abrtd: Loaded option 'AutoreportingEvent' = 'report_uReport'
abrtd: Loaded option 'AutoreportingEnabled' = 'no'
abrtd: Loaded option 'PrivateReports' = 'yes'
abrtd: Loaded option 'MaxCrashReportsSize' = '2000'
abrtd: Loaded option 'DeleteUploaded' = 'no'
abrtd: Loaded option 'AutoreportingEvent' = 'report_uReport'
abrtd: Loaded option 'AutoreportingEnabled' = 'no'
abrtd: Loaded option 'PrivateReports' = 'yes'
abrtd: Got signal 2, exiting

(130) [root@node8 ~]# sed -i -e 's/^#  Caution:$/#  Caution: /' /etc/abrt/abrt.conf 
(0) [root@node8 ~]# abrtd -vv -d
abrtd: Loading settings
abrtd: Loaded option 'MaxCrashReportsSize' = '1000'
abrtd: Loaded option 'DeleteUploaded' = 'no'
abrtd: Loaded option 'AutoreportingEvent' = 'report_uReport'
abrtd: Loaded option 'AutoreportingEnabled' = 'no'
abrtd: Loaded option 'PrivateReports' = 'yes'
abrtd: Configuration file '/etc/abrt/abrt.conf' contains no option
abrtd: Searching for unprocessed dump directories
abrtd: Creating glib main loop
abrtd: Initializing inotify
abrtd: Adding inotify watch to glib main loop
abrtd: Adding signal pipe watch to glib main loop
abrtd: Creating pid file
abrtd: Init complete, entering main loop
^Cabrtd: Loaded option 'MaxCrashReportsSize' = '1000'
abrtd: Loaded option 'DeleteUploaded' = 'no'
abrtd: Loaded option 'AutoreportingEvent' = 'report_uReport'
abrtd: Loaded option 'AutoreportingEnabled' = 'no'
abrtd: Loaded option 'PrivateReports' = 'yes'
abrtd: Configuration file '/etc/abrt/abrt.conf' contains no option
abrtd: Got signal 2, exiting

(130) [root@node8 ~]# 

# you can see, in the second try after adding a space at line '#  Caution:'
# debug output contains "Configuration file '/etc/abrt/abrt.conf' contains no option"
# and e.g "MaxCrashReportsSize' = '2000'" has no effect.

Actual results:
Configuration file '/etc/abrt/abrt.conf' contains no option

Expected results:
Configuration  file '/etc/abrt/abrt.conf' contains option

Additional info:

Comment 2 Miroslav Suchý 2020-10-06 14:16:46 UTC
The issue has been resolved in upstream in bug 1649742. If this is is critical for you and you want it backported to RHEL, please open support ticket to give this a priority.


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