Bug 1332567

Summary: Ignored RequireAbsolutePath from /etc/abrt/plugins/python.conf
Product: Red Hat Enterprise Linux 6 Reporter: Matej Habrnal <mhabrnal>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.9CC: jberan, lzachar, mhabrnal, mkyral, msuchy, qe-baseos-apps
Target Milestone: rcKeywords: EasyFix, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1166633 Environment:
Last Closed: 2017-11-27 12:53:55 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: 1166633    
Bug Blocks:    

Description Matej Habrnal 2016-05-03 13:26:17 UTC
+++ This bug was initially created as a clone of Bug #1166633 +++

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.

--- Additional comment from Jakub Filak on 2014-11-25 10:02:08 EST ---

Upstream commit https://github.com/abrt/abrt/commit/ab6725ef0be311d80391094e446a4e657d7257fd fixes this issue.

--- Additional comment from Matej Habrnal on 2016-05-02 11:00:16 EDT ---

Upstream pull request:
https://github.com/abrt/abrt/pull/1141

Comment 1 Matej Habrnal 2016-05-03 13:46:07 UTC
This upstream commit fixes the issue:
https://github.com/abrt/abrt/commit/61c3922184f8a5c8c29cbb0a67d907a5ab385daf

Related upstream test case:
https://github.com/abrt/abrt/commit/c11e9f46f8314b75f1a55fb6c5c914f0949ed206

Comment 3 Red Hat Bugzilla Rules Engine 2017-11-27 12:53:55 UTC
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.