[Bug 651852] New: osc ls command crashed
https://bugzilla.novell.com/show_bug.cgi?id=651852 https://bugzilla.novell.com/show_bug.cgi?id=651852#c0 Summary: osc ls command crashed Classification: Internal Novell Products Product: openSUSE Build Service Version: 2.1 Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: osc AssignedTo: adrian@novell.com ReportedBy: mfernand@broadcom.com QAContact: adrian@novell.com Found By: Localization Blocker: No osc --version 0.129 obs-server-2.1.0-3.1.x86_64 Whilst running this command: osc -A http://ant:81 ls MeeGo:Core:Daily libmeegotouch it crashed with this error: 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 50, in run return prg.main() File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 309, in main return self.cmd(args) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 332, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 448, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 1178, in _dispatch_ cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.6/site-packages/osc/commandline.py", line 360, in do_list revision=rev) File "/usr/lib/python2.6/site-packages/osc/core.py", line 2210, in meta_get_filelist root = ET.parse(f).getroot() File "<string>", line 45, in parse File "<string>", line 32, in parse SyntaxError: no element found: line 1, column 0 Subsequent attempts, seem to work: # osc -A http://ant:81 ls MeeGo:Core:Daily libmeegotouch arm_egl_visibility.patch arm_ftbfs_egl.patch libmeegotouch-0.20.49.tar.bz2 libmeegotouch-rpmlintrc libmeegotouch.spec libmeegotouch.yaml mthemedaemon.desktop -- 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=651852 https://bugzilla.novell.com/show_bug.cgi?id=651852#c1 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |mfernand@broadcom.com --- Comment #1 from Adrian Schröter <adrian@novell.com> 2010-11-08 09:29:33 UTC --- Can you attach the output of "osc -H -A ..." please ? Please check if your credentials are part of that output before attaching the output here. -- 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=651852 https://bugzilla.novell.com/show_bug.cgi?id=651852#c2 Malcolm Fernandes <mfernand@broadcom.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|mfernand@broadcom.com | --- Comment #2 from Malcolm Fernandes <mfernand@broadcom.com> 2010-11-09 01:24:29 UTC --- # osc -H -A http://ant:81 ls MeeGo:Core:Daily libmeegotouch -- GET http://ant:81/source/MeeGo:Core:Daily/libmeegotouch?rev=latest send: 'GET /source/MeeGo:Core:Daily/libmeegotouch?rev=latest HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: ant:81\r\nConnection: close\r\nUser-Agent: osc/0.129\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: WWW-Authenticate: basic realm="API login" header: X-Opensuse-APIVersion: 2.1.0 header: Content-Type: application/xml; charset=utf-8 header: X-Runtime: 1 header: X-Opensuse-Errorcode: unknown header: Content-Length: 140 header: Cache-Control: no-cache header: Connection: close header: Date: Tue, 09 Nov 2010 01:16:36 GMT header: Server: lighttpd/1.4.26 send: 'GET /source/MeeGo:Core:Daily/libmeegotouch?rev=latest HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: ant:81\r\nConnection: close\r\nAuthorization: Basic XXXXXXXXXXXXXXXXXXX=\r\nUser-Agent: osc/0.129\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: X-Opensuse-APIVersion: 2.1.0 header: Content-Transfer-Encoding: binary header: X-Runtime: 23 header: Content-Type: text/xml header: Content-Disposition: attachment header: Content-Length: 886 header: Cache-Control: private header: Connection: close header: Date: Tue, 09 Nov 2010 01:16:36 GMT header: Server: lighttpd/1.4.26 arm_egl_visibility.patch arm_ftbfs_egl.patch libmeegotouch-0.20.49.tar.bz2 libmeegotouch-rpmlintrc libmeegotouch.spec libmeegotouch.yaml mthemedaemon.desktop -- 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=651852 https://bugzilla.novell.com/show_bug.cgi?id=651852#c3 Marcus Hüwe <suse-tux@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-tux@gmx.de --- Comment #3 from Marcus Hüwe <suse-tux@gmx.de> 2010-11-12 17:46:34 UTC --- It seems that osc got an empty response from the api (that's why the xml parser fails). Probably osc should start to validate the api response against the corresponding xml schema - this way it's easier to track "broken" responses. -- 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=651852 https://bugzilla.novell.com/show_bug.cgi?id=651852#c4 Adrian Schröter <adrian@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Adrian Schröter <adrian@suse.com> 2012-04-02 11:53:08 UTC --- the empty responses should be gone since we switched to apache. -- 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