Bug 301710

Summary: YaST2 sw_single: Timeout of download: Show [Retry] instead of media exception
Product: [openSUSE] openSUSE 10.3 Reporter: Tobias Burnus <burnus>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: martin
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Tobias Burnus 2007-08-19 18:02:02 UTC
Since the new linzypp if the download times out there is in YaST2 sw_single no longer a retry / abort  dialog but only a "Media Exception" dialog with the only option "OK" which aborts the installation.

According to y2log libzypp seems to provide the correct error ("Timeout reached) which indicates a YaST problem.

y2log:

[zypp] MediaHandler.cc(release):773 Released: http://ftp.gwdg.de/pub/opensuse/distribution/
SL-OSS-factory/inst-source/ not attached; localRoot ""
[zypp] MediaSetAccess.cc(provideFileInternal):258 ProvideFile exception caught, callback answer: 0
[zypp] MediaSetAccess.cc(provideFileInternal):262 Aborting
[zypp] Exception.cc(log):119 MediaSetAccess.cc(provideFileInternal):263 RETHROW:  MediaCurl.cc(getFileCopy):755: Curl error for 'http://ftp.gwdg.de/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/i586/OpenOffice_org-base-2.2.99.225-4.i586.rpm':
[zypp] Exception.cc(log):119 Error code: Timeout reached
[zypp] Exception.cc(log):119 Error message: Callback aborted
[zypp] Exception.cc(log):119
Comment 1 Ladislav Slezák 2007-08-21 06:29:06 UTC
zypp::media::DownloadProgressReport::problem() is not called in MediaCurl::getFileCopy(). If an error occurs finish() is called which cannot accept Retry/Abort value.
Comment 2 Stanislav Visnovsky 2007-08-29 11:38:54 UTC
Raising severity. This is a regression and a big usability problem.
Comment 3 Jan Kupec 2007-08-29 16:48:38 UTC
requestMedia() callback was called before, instead of problem(). I reverted blocking of requestMedia for non-changeable media because of lack of time for a proper fix. See http://lists.opensuse.org/zypp-devel/2007-07/msg00099.html for discussion.

done in svn
Comment 4 Jan Kupec 2007-08-29 17:29:14 UTC
*** Bug 303927 has been marked as a duplicate of this bug. ***
Comment 5 Jan Kupec 2007-08-30 16:42:25 UTC
submitted in libzypp 3.20.1