Description of problem:
dnf fails with traceback for repositories containing in metadata <summary> or
<description> tags "strange" characters (namely characters with hexa codes between 01 and 1f)
Similar bug 1063177 has been reported for yum in the past.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a repo with "strange" characters as described above
2. run 'dnf makecache'
# dnf --disablerepo=\* --enablerepo=repo-strange-chars makecache
Traceback (most recent call last):
File "/usr/bin/dnf", line 58, in <module>
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 179, in user_main
errcode = main(args)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
return _main(base, args, cli_class, option_parser_class)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 99, in _main
return cli_run(cli, base)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 115, in cli_run
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1014, in run
File "/usr/lib/python3.6/site-packages/dnf/cli/commands/makecache.py", line 55, in run
return self.base.update_cache(self.opts.timer is not None)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 324, in update_cache
self.fill_sack(load_system_repo=False, load_available_repos=True) # performs the md sync
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 353, in fill_sack
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 135, in _add_repo_to_sack
_hawkey.Exception: repo_add_repomdxml/rpmmd() has failed.
/CoreOS/yum/Sanity/bz1063177-traceback-with-error-PCDATA-invalid-Char-value-27 can be used as a reproducer
*** Bug 1545575 has been marked as a duplicate of this bug. ***
The issue is solved by dnf-3.0.1-1 that was released into rawhide.