[Bug 704939] New: osc dies when the config file is supplied via STDIN
https://bugzilla.novell.com/show_bug.cgi?id=704939 https://bugzilla.novell.com/show_bug.cgi?id=704939#c0 Summary: osc dies when the config file is supplied via STDIN Classification: Internal Novell Products Product: openSUSE Build Service Version: 2.3 Platform: x86-64 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: osc AssignedTo: adrian@novell.com ReportedBy: lpechacek@novell.com QAContact: adrian@novell.com Found By: L3 Blocker: --- It is possible to use alternate config file for osc. If you specify /dev/stdin as the source of the config file, and the config file supplied therough STDIN contains the legacy 'passx' entry, osc tries to open the rewrite the config file. That currently leads to a crash. osc should handle this situation gracefully and accept the old password encoding scheme without crash or even any message to STDOUT. l3tester@g94:~> osc --version 0.132.5 l3tester@g94:~> rpm -q --qf '%{DISTURL}\n' osc obs://build.opensuse.org/openSUSE:Tools/SLE_11_SP1/e362d413f04f809295472b8bd7e56fbb-osc l3tester@g94:~> echo -e '[general]\napiurl = https://api.opensuse.org\n[https://api.opensuse.org/]\nuser=Lpechacek\npassx=Qlp<mangled>gefyA=' | osc -A https://api.opensuse.org/ -c /dev/stdin ls home:LPechacek https://api.opensuse.org/: rewriting from encoded pass to plain pass Traceback (most recent call last): File "/usr/bin/osc", line 21, in <module> r = babysitter.run(osccli) File "/usr/lib/python2.6/site-packages/osc/babysitter.py", line 52, in run return prg.main() File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 302, in main self.postoptparse() File "/usr/lib/python2.6/site-packages/osc/commandline.py", line 118, in postoptparse override_verbose = self.options.verbose) File "/usr/lib/python2.6/site-packages/osc/conf.py", line 831, in get_config add_section(conffile, url, user, passwordx) File "/usr/lib/python2.6/site-packages/osc/conf.py", line 706, in add_section file = open(filename, 'w') IOError: [Errno 26] Text file busy: '/dev/stdin' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704939 https://bugzilla.novell.com/show_bug.cgi?id=704939#c1 Marcus Hüwe <suse-tux@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |suse-tux@gmx.de Resolution| |FIXED --- Comment #1 from Marcus Hüwe <suse-tux@gmx.de> 2011-11-18 20:33:11 UTC --- I just fixed it in git master (commit 89719591878beebae45a85337c5137558ea52cb1). So I think we can close this bug (if not please reopen). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704939 https://bugzilla.novell.com/show_bug.cgi?id=704939#c2 Libor Pecháček <lpechacek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #2 from Libor Pecháček <lpechacek@suse.com> 2011-11-21 13:30:29 CET --- I've packaged and tested the latest osc from GIT and it fixes this bug. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com