Bug 1071212

Summary: dnf doesn't skip unreadable repository files
Product: [Fedora] Fedora Reporter: Vratislav Podzimek <vpodzime>
Component: dnfAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, jzeleny, pnemade, rholy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-0.4.19-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-25 08:13:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vratislav Podzimek 2014-02-28 09:48:21 UTC
Description of problem:
If there is a .repo file with wrong permissions, dnf exits instead of skipping it when reading .repo files.

Version-Release number of selected component (if applicable):


How reproducible:
100 %

Steps to Reproduce:
1. make some .repo file readable only for the owner (root)
2. run 'dnf search foo' as a user different than root

Actual results:
dnf fails to search for the package

Expected results:
dnf searches for the package and just prints a warning

Additional info:
[vpodzime@vpodzime ~]$ yum search anaconda-addon
Loaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit
Skipping unreadable repository '///etc/yum.repos.d/SpiderOak-stable.repo'
======================================================= N/S matched: anaconda-addon ========================================================
oscap-anaconda-addon.noarch : Anaconda addon integrating OpenSCAP to the installation process

  Name and summary matches only, use "search all" for everything.
[vpodzime@vpodzime ~]$ dnf search anaconda-addon
Error: Error accessing file for config file://///etc/yum.repos.d/SpiderOak-stable.repo

Comment 1 Radek Holy 2014-02-28 10:41:11 UTC
Hello, thank you for the report. We will take a look at it.

Comment 2 Ales Kozumplik 2014-03-10 14:17:35 UTC
related bug 809598.

Both behaviors are controversial but the skipping+warning maybe a bit less so let's go with that for now.

Comment 3 Ales Kozumplik 2014-03-12 07:33:41 UTC
Fixed upstream by beea722.

Comment 4 Fedora Update System 2014-03-17 09:45:43 UTC
dnf-0.4.18-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/dnf-0.4.18-1.fc20

Comment 5 Fedora Update System 2014-03-18 08:10:47 UTC
Package dnf-0.4.18-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.18-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3999/dnf-0.4.18-1.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-03-24 09:06:09 UTC
dnf-0.4.19-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/dnf-0.4.19-1.fc20

Comment 7 Fedora Update System 2014-03-25 08:13:49 UTC
dnf-0.4.19-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.