REPORTER-MANTISBT(1)
β¨ NAME β¨
okay bestie, meet reporter-mantisbt β this is the LIBREPORT MANUAL page for the tool that reports a problem to Mantis Bug Tracker. iconic behavior, honestly π
π¦ SYNOPSIS π¦
reporter-mantisbt [-vrf] [-c CONFFILE]... [-F FMTFILE] [-A FMTFILE2] -d DIR
Or:
reporter-mantisbt [-v] [-c CONFFILE]... [-d DIR] -t[ID] FILE...
Or:
reporter-mantisbt [-v] [-c CONFFILE]... -h DUPHASH
π DESCRIPTION π
so the tool reads the problem directory DIR. then it logs in to MantisBT and tries to find an issue with the same duphash HEXSTRING in the abrt_hash field. lowkey detective mode π
if such an issue is not found, then a new issue is created. elements of DIR are stored in the issue as part of the issue description or as attachments, depending on their type and size. it's giving βfile it properlyβ energy π
otherwise, if such an issue is found and it is marked as CLOSED DUPLICATE, the tool follows the chain of duplicates until it finds a non-DUPLICATE issue. the tool adds a new note to the found issue. chain-chasing queen behavior π
the URL to the new or modified issue is printed to stdout and recorded in the reported_to element in DIR. slay, traceability β¨
option -t uploads FILEs to the already created issue on the MantisBT site. the issue ID is retrieved from the directory specified by -d DIR. if problem data in DIR was never reported to MantisBT, upload will fail. no cap, it will not work around it π
option -tID uploads FILEs to the issue with the specified ID on the MantisBT site. -d DIR is ignored. different mode, different rules, periodt π¦
option -r sets the last url from the reporter_to element which is prefixed with TRACKER_NAME to the URL field. this option is applied only when a new issue is to be filed. the default value is ABRT Server. iykyk πΈ
π Configuration file π
if not specified, CONFFILE defaults to /etc/libreport/plugins/mantisbt.conf. and to userβs local ~/.config/libreport/mantisbt.conf. configuration file lines should have PARAM = VALUE format. the parameters are below, and userβs local configuration overrides the system wide configuration. bestie, local wins π
Loginβ Login to MantisBT account.Passwordβ Password to MantisBT account.MantisbtURLβ MantisBT HTTP(S) address. (default:http://localhost/mantisbt)SSLVerifyβ Useyes/true/on/1to verify serverβs SSL certificate. (default:no)Projectβ Project issue field value. Useful if you needed different project than specified in/etc/os-releaseProjectVersionβ Version issue field value. Useful if you needed different project version than specified in/etc/os-releaseCreatePrivateβ Create private MantisBT issue. (default:no)
parameters can be overridden via $Mantisbt_PARAM environment variables. env vars stay flexing π«Ά
β¨ Formatting configuration files β¨
lines starting with # are ignored. comment out and chill π
lines can be continued on the next line using a trailing backslash.
format:
"%summary
summary format"
"section
element1[,element2]..."
the literal text line to be added to MantisBT Description or Additional information. can be empty. (Empty lines are NOT ignored!) do not skip the empty-line warning, bestie π
summary format is a line of text, where %element% is replaced by text elementβs content, and [[...%element%...]] block is used only if %element% exists. [[...]] blocks can nest. nesting? we love a structured moment π
sections can be:
%summary: issue Summary format string.%attach: a list of elements to attach.%Additional info: issue Additional Information content.- text, double colon (
::) and the list of comma-separated elements.
MantisBTβs fields for Description and Additional information work like this: all text, double colons (::) and lists of comma-separated elements which are placed above the section %Additional info:: in the configuration file are stored in the Description field in MantisBT. all text etc. which are placed under the %Additional info:: are stored in the Additional information field. field mapping tea β π¦
for example:
|:: comment | (Description)
| | (Description)
|Package:: package | (Description)
| | (Description)
|%Additional_info:: |
|%reporter% | (Additional info)
|User:: user_name,uid | (Additional info)
| | (Additional info)
|Directories:: root,cwd | (Additional info)
elements can be:
- problem directory element names, which get formatted as:
<element_name>: <contents>
or
<element_name>:
:<contents>
:<contents>
:<contents>
- problem directory element names prefixed by
%bare_, which is formatted as-is, without<element_name>:and colons %oneline,%multiline,%textwildcards, which select all corresponding elements for output or attachment%binarywildcard, valid only for%attachsection, instructs to attach binary elements- problem directory element names prefixed by
-, which excludes the given element from all wildcards
nonexistent elements are silently ignored. ghosted, but politely π
if none of the elements exists, the section will not be created. no elements, no section, no drama π
π₯ Integration with ABRT events π₯
reporter-mantisbt can be used as an ABRT reporter. example fragment for /etc/libreport/report_event.conf:
# Report Python crashes
EVENT=report_CentOSBugTracker analyzer=Python
reporter-mantisbt -d . -c /etc/libreport/plugins/mantisbt.conf
π OPTIONS π
-d DIRβ Path to problem directory.-c CONFFILEβ Path to configuration file.-fβ Force reporting even if this problem is already reported. force it, bestie π-F CONF_FORMAT_FILEβ Formatting file for new issues. default:/etc/libreport/plugins/mantisbt_format.conf-A CONF_FORMAT_FILEβ Formatting file for duplicates. default:/etc/libreport/plugins/mantisbt_formatdup.conf-t[ID]β UploadFILEsto the already created issue on the MantisBT site.-h,--duphash DUPHASHβ Search in MantisBT by abrtβsDUPHASHand printISSUE_ID.-r TRACKER_NAMEβ Set the last url fromreporter_toelement which is prefixed withTRACKER_NAMEto the URL field in MantisBT.
π ENVIRONMENT VARIABLES π
environment variables take precedence over values provided in the configuration file. env vars said βIβm the main characterβ π
Mantisbt_Loginβ Login to MantisBT account.Mantisbt_Passwordβ Password to MantisBT account.Mantisbt_MantisbtURLβ MantisBT HTTP(S) address. (default:http://localhost/mantisbt)Mantisbt_SSLVerifyβ Useyes/true/on/1to verify serverβs SSL certificate. (default:no)Mantisbt_Projectβ Project issue field value. Useful if you needed different project than specified in/etc/os-releaseMantisbt_ProjectVersionβ Version issue field value. Useful if you needed different project version than specified in/etc/os-releaseMantisbt_CreatePrivateβ Create private MantisBT issue. (default:no)
π FILES π
/usr/share/libreport/conf.d/plugins/mantisbt.confβ Readonly default configuration files./etc/libreport/plugins/mantisbt.confβ Configuration file.~/.config/libreport/mantisbt.confβ Userβs local configuration file./etc/libreport/plugins/mantisbt_format.confβ Configure formating for reporting./etc/libreport/plugins/mantisbt_formatdup.confβ Configure formating for reporting duplicates.
π SEE ALSO π
report_event.conf(5), mantisbt_format.conf(5), mantisbt_formatdup.conf(5) go read the friends, bestie π«Ά
π AUTHORS π
- ABRT team
mwah π β this page is from LIBREPORT 2.17.15, dated 07/15/2024. stay slay, bestie πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libreport-plugin-mantisbt 2.17.15-bp160.1.14 Β· GPL-2.0-or-later
- opensuse-leap 16.0: libreport-plugin-mantisbt 2.17.15-bp160.1.14 Β· GPL-2.0-or-later
- opensuse-leap 16.0: libreport-plugin-mantisbt 2.17.15-bp160.1.14 Β· GPL-2.0-or-later
- opensuse-leap 16.0: libreport-plugin-mantisbt 2.17.15-bp160.1.14 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms