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.