[Bug 495823] New: [osc] osc leaves stale .osc/_to_be_deleted
http://bugzilla.novell.com/show_bug.cgi?id=495823 Summary: [osc] osc leaves stale .osc/_to_be_deleted Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: openSUSE 11.0 Status: NEW Severity: Major Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dl9pf@gmx.de QAContact: adrian@novell.com Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.8) Gecko/2009032600 SUSE/3.0.8-1.1 Firefox/3.0.8 Example: dl9pf@legolas:~/user/obs/incubating> osc co home:dl9pf:osctest A home:dl9pf:osctest A home:dl9pf:osctest/osctest A home:dl9pf:osctest/osctest/testfile2 dl9pf@legolas:~/user/obs/incubating> cd home\:dl9pf\:osctest/osctest/ dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> ls testfile2 dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> more .osc/ _apiurl _files _osclib_version _package _project testfile2 dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> echo 54321 > testfile3 dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> osc add testfile3 A testfile3 dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> osc ci -m"add testfile3" Sending testfile3 Transmitting file data . Committed revision 4. dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> osc rm testfile3 D testfile3 dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> osc ci -m"remove testfile3" Deleting testfile3 Transmitting file data Committed revision 5. dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> ls osc/_to_be_deleted dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> rpm -qv osc osc-0.117.7070S-1.1 dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> echo 54321 > testfile3 dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> osc add testfile3 A testfile3 dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> osc ci -m"reupload" Deleting testfile3 Server returned an error: HTTP Error 404: Not Found file 'testfile3' does not exist Transmitting file data dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> ls .osc/ _apiurl _files _osclib_version _package _project testfile2 testfile3 _to_be_deleted dl9pf@legolas:~/user/obs/incubating/home:dl9pf:osctest/osctest> more osc/_to_be_deleted testfile3 Reproducible: Always Steps to Reproduce: 1. See details 2. 3. Actual Results: upload fails Expected Results: file removed after server deleted files -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495823 User dl9pf@gmx.de added comment http://bugzilla.novell.com/show_bug.cgi?id=495823#c1 --- Comment #1 from Jan-Simon Möller <dl9pf@gmx.de> 2009-04-17 03:01:06 MDT --- Affected here: osc-obs-1.6.0.6915S-1.1 and osc-0.117.7070S-1.1 . -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495823 User dl9pf@gmx.de added comment http://bugzilla.novell.com/show_bug.cgi?id=495823#c2 Jan-Simon Möller <dl9pf@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |dl9pf@gmx.de |ovo.novell.com | --- Comment #2 from Jan-Simon Möller <dl9pf@gmx.de> 2009-04-17 03:57:17 MDT --- Created an attachment (id=286349) --> (http://bugzilla.novell.com/attachment.cgi?id=286349) proposed patch This should fix it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495823 User dl9pf@gmx.de added comment http://bugzilla.novell.com/show_bug.cgi?id=495823#c3 Jan-Simon Möller <dl9pf@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |adrian@novell.com --- Comment #3 from Jan-Simon Möller <dl9pf@gmx.de> 2009-04-21 04:52:57 MDT --- hmm - the patch works here, but + self.write_deletelist() at this position is a bit overkill, right? Its already called later in the function. (/me scratching head - why didn't that work ?). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495823 User suse-tux@gmx.de added comment http://bugzilla.novell.com/show_bug.cgi?id=495823#c4 Marcus Hüwe <suse-tux@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |suse-tux@gmx.de Info Provider|adrian@novell.com | --- Comment #4 from Marcus Hüwe <suse-tux@gmx.de> 2009-04-28 14:34:43 MDT --- I just fixed it in r7211. The problem was that "self.update_datastructs()" was called before "self.write_deletelist()" (which read the old/stale osc/_to_be_deleted file). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495823 User dl9pf@gmx.de added comment http://bugzilla.novell.com/show_bug.cgi?id=495823#c5 Jan-Simon Möller <dl9pf@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #5 from Jan-Simon Möller <dl9pf@gmx.de> 2009-05-14 04:11:03 MDT --- Fixed in latest versions. -- Configure bugmail: http://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