[Bug 221475] New: "osc co" on a non-existent project doesn't error
https://bugzilla.novell.com/show_bug.cgi?id=221475 Summary: "osc co" on a non-existent project doesn't error Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: joeshaw@novell.com QAContact: adrian@novell.com If you try to check out a project that doesn't exist, you don't get an error of any kind from the command-line client: [joe@posthaste ~/buildservice]$ osc co doesntexist [joe@posthaste ~/buildservice]$ echo $? 0 This is with the osc-0.9-11.3 package on SLED 10. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221475 adrian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |poeml@novell.com |screening@forge.provo.novell| |.com | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221475#c1 Peter Poeml <poeml@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |poeml@novell.com AssignedTo|poeml@novell.com |abauer@novell.com --- Comment #1 from Peter Poeml <poeml@novell.com> 2007-07-13 04:35:15 MST --- Andreas, the API (or backend?) returns the same for a non-existing project as for an empty project: % curl -u user:pass -X GET 'https://api.opensuse.org/source/doesnotexist' <directory count="0"> </directory> It should return 404 instead IMO. -- 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=221475#c2 Klaas Freitag <freitag@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freitag@novell.com --- Comment #2 from Klaas Freitag <freitag@novell.com> 2007-10-31 08:59:02 MST --- If you try to check out an existing project that does not have a single package in it, it also does nothing without giving an error. IMO that is a important usecase because people might create their home project in the web client right away after account creation and than switch to osc for further activities. -- 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=221475#c3 --- Comment #3 from Klaas Freitag <freitag@novell.com> 2007-10-31 08:59:40 MST --- sorry, my osc version was 0.99 -- 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=221475 User poeml@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=221475#c4 Peter Poeml <poeml@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Peter Poeml <poeml@novell.com> 2008-05-02 02:27:48 MST --- Fixed in svn trunk. poeml@batavia510 /tmp % osc co foobar Server returned an error: HTTP Error 404: Not Found A project named 'foobar' does not exist. [2] 26883 exit 1 osc co foobar poeml@batavia510 /tmp % osc co foobar baz Server returned an error: HTTP Error 404: Not Found Error getting meta for project 'foobar' package 'baz' [2] 26886 exit 1 osc co foobar baz -- 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