Bug 1166633

Summary: Ignored RequireAbsolutePath from /etc/abrt/plugins/python.conf
Product: Red Hat Enterprise Linux 7 Reporter: Lukáš Zachar <lzachar>
Component: abrtAssignee: Jakub Filak <jfilak>
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: jberan, jfilak, mhabrnal, mkyral
Target Milestone: rcKeywords: EasyFix, Patch
Target Release: 7.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: abrt-2.1.11-39.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1332567 (view as bug list) Environment:
Last Closed: 2016-11-04 03:05:36 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: 1332567    
Attachments:
Description Flags
Patch 1/1: python: fix check for absolute path none

Description Lukáš Zachar 2014-11-21 11:35:22 UTC
Description of problem:

Changes in  /etc/abrt/plugins/python.conf are not processed properly, 
thus one cannot configure "RequireAbsolutePath" option (it is the only option there ATM). 

Thus python scripts executed with relatalive path cannot not processed by abrt.


Version-Release number of selected component (if applicable):
abrt-addon-python-2.1.11-12.el7


How reproducible:
always

Steps to Reproduce:
1. in /etc/abrt/abrt-action-save-package-data.conf set ProcessUnpackaged = yes
2. in /etc/abrt/plugins/python.conf set RequireAbsolutePath = no (or 0)
3. run ./demo.py

Actual results:
no problem in abrt-cli ls

Expected results:
id XZZZZZZZZZZZZZZ
reason:         invalid syntax (demo.py, line 2)

Additional info:
$ cat demo.py
#!/usr/bin/python
print('whatever'):

Problem is in implementation of conf_enabled in abrt_exception_handler.py.

Comment 1 Jakub Filak 2014-11-25 15:02:08 UTC
Upstream commit https://github.com/abrt/abrt/commit/ab6725ef0be311d80391094e446a4e657d7257fd fixes this issue.

Comment 2 Matej Habrnal 2016-05-02 15:00:16 UTC
Upstream pull request:
https://github.com/abrt/abrt/pull/1141

Comment 4 Matej Habrnal 2016-05-04 07:26:36 UTC
Created attachment 1153722 [details]
Patch 1/1: python: fix check for absolute path

Comment 8 errata-xmlrpc 2016-11-04 03:05:36 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-2307.html