Bug 678373

Summary: YUM does not work with option-C from non-privileged user
Product: [Fedora] Fedora Reporter: Sergey <srgazh>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 14CC: alex.mail.1534, andrei.ilie, ffesti, james.antill, maxamillion, pmatilai, tla
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 15:49:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sergey 2011-02-17 17:49:52 UTC
Description of problem:
YUM does not work with option-C from non-privileged user

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

YUM 3.2.28

How reproducible:

[saz@master]$ yum -C search flash
Загружены модули: langpacks, presto, refresh-packagekit
Adding ru_RU to language list
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 258, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 122, in main
    return exIOError(e)
  File "/usr/share/yum-cli/yummain.py", line 50, in exIOError
    logger.critical(_('\n\n%s') % str(e))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 11: ordinal not in range(128)


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
yum -C 
works for root

Comment 1 Sergey 2011-02-17 18:45:17 UTC
[saz@master]$ env LANG=C yum -C search flash
Loaded plugins: langpacks, presto, refresh-packagekit

Comment 2 Sergey 2011-02-17 18:47:39 UTC
(In reply to comment #1)
> [saz@master]$ env LANG=C yum -C search flash
> Loaded plugins: langpacks, presto, refresh-packagekit
[Errno 13] Permission denied: '/var/cache/yum/i386/14/updates/pkgtags.sqlite'

Comment 3 Fl@sh 2011-02-19 12:44:34 UTC
  File "/usr/share/yum-cli/yummain.py", line 50, in exIOError
    logger.critical(_('\n\n%s') % str(e))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 11:
ordinal not in range(128)

if correct line 50 :
    logger.critical(_('\n\n%s') % to_unicode(str(e)))
first bag is recover , but second stay :

$ yum -C search yum
Загружены модули: fastestmirror, presto, refresh-packagekit, refresh-updatesd
[Errno 13] Отказано в доступе: '/var/cache/yum/x86_64/14/updates/pkgtags.sqlite'

$ echo $LANG
ru_RU.UTF-8

Comment 4 Andrei ILIE 2011-06-22 19:34:34 UTC
Same problem here... This bug is still standing.


andrei@cofee:~/firefox$ uname -a
Linux cofee 2.6.35.13-91.fc14.x86_64 #1 SMP Tue May 3 13:23:06 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux


andrei@cofee:~/firefox$ yum --version
3.2.28
  Installed: rpm-4.8.1-5.fc14.x86_64 at 2010-10-21 20:45
  Built    : Fedora Project at 2010-08-10 07:43
  Committed: Panu Matilainen <pmatilai> at 2010-08-10

  Installed: yum-3.2.28-6.fc14.noarch at 2011-05-22 17:07
  Built    : Fedora Project at 2011-05-11 15:11
  Committed: James Antill <james at fedoraproject.org> at 2011-05-11

Comment 5 Fedora End Of Life 2012-08-16 15:49:17 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping