Bug 1236613
| Summary: | reporter-mailx fails for blank spaces in /etc/libreport/plugins/mailx.conf | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Deepu K S <dkochuka> | ||||
| Component: | libreport | Assignee: | abrt <abrt-devel-list> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Martin Kyral <mkyral> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.1 | CC: | dkochuka, jberan, jfilak, mhabrnal, mkyral, ovasik, rjones | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | libreport-2.1.11-34.el7 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1323625 (view as bug list) | Environment: | |||||
| Last Closed: | 2016-11-04 03:05:51 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: | 1289025, 1305230, 1323625 | ||||||
| Attachments: |
|
||||||
|
Description
Deepu K S
2015-06-29 14:33:27 UTC
Try editing the libreport.aug lens, changing:
let option = [ key ident . value_sep . value_to_eol . eol ]
to:
let option = [ del /[ \t]*/ . key ident . value_sep . value_to_eol . eol ]
(In reply to Richard W.M. Jones from comment #1) Thank you for the tip. We are going to do this: - let value_sep = del / = ?/ " = " + let value_sep = del / ?= ?/ " = " (In reply to Jakub Filak from comment #2) > (In reply to Richard W.M. Jones from comment #1) > Thank you for the tip. We are going to do this: > > - let value_sep = del / = ?/ " = " > + let value_sep = del / ?= ?/ " = " Oops, I didn't realize that this issue is about trailing white spaces. Created attachment 1148507 [details]
Patch 1/1: augeas: trim spaces before key value
Patch contains testcase. How to test:
1. Install libreport version libreport-2.1.11-34.el7
2. Run augparse withtest_libreport.aug
* in libreport repository
$ augparse augeas/test_libreport.aug
* with downloaded test_libreport.aug file https://github.com/abrt/libreport/blob/rhel7/augeas/test_libreport.aug
Another way how to test the bugzilla: 1. set the configuration file the same way how it is described in the Bugzilla's description (Step to reproduce) 2. run following command: $ augtool print /files/etc/libreport/plugins/mailx.conf/Subject $ augtool print /files/etc/libreport/plugins/mailx.conf/EmailFrom $ augtool print /files/etc/libreport/plugins/mailx.conf/EmailTo 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-2307.html |