Description of problem: DNF throws an Type error, when Artifactory generated repository is used. Version-Release number of selected component (if applicable): 2.7.5 Installed: dnf-0:2.7.5-2.fc27.noarch at Чт 14 дек 2017 14:21:41 Built : Fedora Project at Ср 29 ноя 2017 09:48:50 Installed: rpm-0:4.14.1-1.fc27.x86_64 at Ср 07 фев 2018 09:39:54 Built : Fedora Project at Чт 01 фев 2018 11:45:18 Artifactory 5.6.1 How reproducible: Easy. Steps to Reproduce: 1. Create local RPM repo in Artifactory. 2. Add .repo file with baseurl to /etc/yum.repos.d on Fedora 3. Any call to DNF now throws an error. Actual results: Error: TypeError: Expected a string or a unicode object Expected results: Cache updated, package installed or updated.
Full traceback follows: [root@test ~]# dnf upgrade Traceback (most recent call last): File "/usr/bin/dnf", line 58, in <module> main.user_main(sys.argv[1:], exit_code=True) 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 cli.run() File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1013, in run self._process_demands() File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 766, in _process_demands load_available_repos=self.demands.available_repos) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 353, in fill_sack self._add_repo_to_sack(r) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 122, in _add_repo_to_sack hrepo.filelists_fn = repo._filelists_fn TypeError: Expected a string or a unicode object
Also no problems observed in YUM (Centos 7.3). But YUM installed in Fedora shows same error.
Are you able to provide .repo file and content of repodata directory of the Artifactory generated local RPM repo?
Created attachment 1397849 [details] repomd.xml
Created attachment 1397850 [details] repo xml file
Created attachment 1397851 [details] primary.xml
Created attachment 1397852 [details] repofile
*** This bug has been marked as a duplicate of bug 1507129 ***