I’m using abrt-cli to report crashes from command line, but since the requirement to use a Bugzilla API key, abrt-cli (and report-cli) ask each time for the API key. I would like to know where to store the API key for abrt-cli to use it.
It should be noted that the abrt’s GUI knows to use the Bugzilla API key defined in its configuration.
But abrt-cli doesn’t seems to use the GUI’s configuration (or there’s a bug).
Hi @ydroneaud and welcome to
I believe this is stored in
man reporter-bugzilla provides additional info.
you can also run
reporter-bugzilla and it will prompt you to enter the api key
Thanks for the links. With this help, I was able to confirm there’s a bug somewhere in abrt / libreport:
reporter-bugzilla -v shows the configuration file is not searched in
Loading settings from ‘/.config/libreport/bugzilla.conf’
I opened a bug 2175415 – reporter-bugzilla doesn't read user's bugzilla.conf
@ydroneaud are you on Fedora Linux 38?
@alciregi I’m on Fedora Rawhide (39)
/usr/bin/reporter-bugzilla is a Python script. If you have some basic knowledge of it, you could explore the issue and report the bug (or also submit a patch!). I suspect that there is an issue at line 459 with the
os.path.join method and the content of
I see you have already filed a bug 2175415 – reporter-bugzilla doesn't read user's bugzilla.conf
If you are willing to submit a patch, you can start from here: Overview - rpms/libreport - src.fedoraproject.org (and look where the upstream project is developed).
@alciregi you found the culprit:
const.USER_HOME_CONFIG_PATH starts with a slash, so
os.path.join assumes the path is absolute, and discard the home path …