+++ 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 `/`.
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.