[Bug 444109] New: ftp install: slideshow has wrong sha1sum
https://bugzilla.novell.com/show_bug.cgi?id=444109 Summary: ftp install: slideshow has wrong sha1sum Product: openSUSE 11.1 Version: Beta4 Platform: Other OS/Version: Other Status: NEW Severity: Blocker Priority: P5 - None Component: Installation AssignedTo: ma@novell.com ReportedBy: aj@novell.com QAContact: jsrain@novell.com CC: coolo@novell.com, mmarek@novell.com Found By: --- The slideshow download downloads files of size 0 (!) and therefore calculates a wrong sha1sum (see screenshot). Return code from curl is 213. Does that value have any significance? -- 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=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c1
--- Comment #1 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c2
--- Comment #2 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c3
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c4
--- Comment #4 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
User visnov@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c5
Stanislav Visnovsky
https://bugzilla.novell.com/show_bug.cgi?id=444109
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c6
--- Comment #6 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=444109
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c7
--- Comment #7 from Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c8
--- Comment #8 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c9
--- Comment #9 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c10
--- Comment #10 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c11
Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=444109
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c12
--- Comment #12 from Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=444109
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c13
--- Comment #13 from Michal Marek
The problem is that the patch submitted by Nelson sets the If-Modified_since condition only if the file exists, but this option persists for the next file. Therefore the next file is seen as not modified. We are investigating how to reset this option wthout getting the header with a timestamp of 0 like it was in the past.
Set CURLOPT_TIMECOND to CURL_TIMECOND_NONE if the file does not exist? But I still think that you have a bug with checking the response code after the transfer. -- 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=444109
User dmacvicar@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c14
--- Comment #14 from Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=444109
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c15
--- Comment #15 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=444109
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c16
Ján Kupec
(In reply to comment #11 from Duncan Mac-Vicar)
The problem is that the patch submitted by Nelson sets the If-Modified_since condition only if the file exists, but this option persists for the next file. Therefore the next file is seen as not modified. We are investigating how to reset this option wthout getting the header with a timestamp of 0 like it was in the past.
Set CURLOPT_TIMECOND to CURL_TIMECOND_NONE if the file does not exist? But I still think that you have a bug with checking the response code after the transfer.
Nice, this might fix also bug 421726! -- 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=444109
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c17
--- Comment #17 from Ján Kupec
You won't get any 304 from a FTP server.
Well yes, but does FTP have this functionality at all? -- 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=444109
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c18
--- Comment #18 from Michal Marek
(In reply to comment #15 from Michal Marek)
You won't get any 304 from a FTP server.
Well yes, but does FTP have this functionality at all?
If the server supports the MDTM command, then yes. And the current code will overwrite the destination file with a zero-length file in such case. -- 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=444109
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c19
--- Comment #19 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=444109
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c20
--- Comment #20 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=444109
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c21
--- Comment #21 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=444109
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c22
--- Comment #22 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=444109
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c23
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c24
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
User mmarek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c25
--- Comment #25 from Michal Marek
It should be called once with zero data, but I'll check. BTW the curl commandline tool does exactly that - it opens the destination file when the write callback is called for the first time.
Seems that there is a bug in libcurl :-( curl -O http://.../zero-lenght-file doesn't create any local file. -- 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=444109
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c26
--- Comment #26 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=444109
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c27
Michael Andres
Ad comment #12: I do not get this for http install or local install - only for NFS. So, something looks fishy to me...
The log from Comment #9 shows: copy /var/adm/mount/AP_0x00000001/suse/setup/slide/txt/en/01_welcome.rtf -> /var/tmp/TmpDir.jFWRxv/suse/setup/slide/txt/en/01_welcome.rtf .the same for all other slideshow files and finaly: [YCP] Packages.ycp:1103 Copying: cp -r '/var/tmp/TmpDir.jFWRxv//suse/setup/slide//txt/en'/* '/tmp/YaST2-03538-RqfGET/slidedir//txt/en/' Later the pictures as well: [YCP] Packages.ycp:1119 Copying: cp -r '/var/tmp/TmpDir.t0rXPi//suse/setup/slide//pic'/* '/tmp/YaST2-03538-RqfGET/slidedir//pic/' [YCP] Slides.ycp:177 SetSlideDir: /tmp/YaST2-03538-RqfGET/slidedir/ But no error? -- 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=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c28
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=444109
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c29
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=444109
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c30
--- Comment #30 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=444109
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c31
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=444109
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=444109#c32
Andreas Jaeger
participants (1)
-
bugzilla_noreply@novell.com