Bug 1808837

Summary: <dir> is not a valid problem directory
Product: Red Hat Enterprise Linux 7 Reporter: i3v
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED DEFERRED QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: low Docs Contact:
Priority: low    
Version: 7.8CC: abrt-devel-list, bugzilla, elio, extras-qa, iprikryl, jberan, mhabrnal, michal.toman, mmilata, msuchy, phelia
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1318876 Environment:
Last Closed: 2020-10-13 14:06:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description i3v 2020-03-01 14:05:15 UTC
+++ This bug was initially created as a clone of Bug #1318876 +++

Description of problem:

abrt-cli report complains when directory path contains a trailing /


Version-Release number of selected component (if applicable):
abrt-cli version 2.1.11

How reproducible:
not tested (only tested on CentOS7.7-1908)

Steps to Reproduce:
The following example demonstrates that `abrt-cli report` fails if there's a training `/` but works OK when it's removed.

=============================================
	[root@fa77-01 ep10]# abrt-cli list --since 1582934886
	id a99677d5db287836f2293907a60f1d7189cb3f89
	reason: gwenview killed by SIGSEGV
	time: Sat 29 Feb 2020 12:40:50 PM MSK
	cmdline: /usr/bin/some-long-cmd
	package: gwenview-4.10.5-5.el7
	uid: 1000 (username)
	count: 1
	Directory: /var/spool/abrt/ccpp-2020-02-29-12:40:50-15305


	[root@fa77-01 ep10]# abrt-cli report /var/spool/abrt/ccpp-2020-02-29-12\:40\:50-15305/
	Can't chown '/var/spool/abrt/ccpp-2020-02-29-12:40:50-15305/': 	GDBus.Error:org.freedesktop.problems.InvalidProblemDir: '/var/spool/abrt/ccpp-2020-02-29-12:40:50-15305/' is not a valid problem directory
	Can't take ownership of '/var/spool/abrt/ccpp-2020-02-29-12:40:50-15305/'


	[root@fa77-01 ep10]# abrt-cli report /var/spool/abrt/ccpp-2020-02-29-12\:40\:50-15305
	('report_uReport' completed successfully)
	Ok to upload core dump? (It may contain sensitive data). If your answer is 'No', a stack trace will be generated locally. (It may
	...
=============================================

Actual results:

GDBus.Error:org.freedesktop.problems.InvalidProblemDir


Expected results:

Trailing `/` shouldn't matter, esp since tab autocomplete path is the only sane way to enter these pathnames and those always end in `/`.

Comment 2 Miroslav Suchý 2020-10-13 14:06:23 UTC
Note that this is functional in upstream as abrt-cli has been replaced by abrt-cli-ng and it works there.

This will not be fixed in RHEL 7, unless reported through Customer Support as it is low priority thing.