Bug 151945

Summary: YaST crashes when adding false installation directory
Product: [openSUSE] SUSE Linux 10.1 Reporter: Forgotten User OS1JNCFbCX <forgotten_OS1JNCFbCX>
Component: YaST2Assignee: Klaus Kämpf <kkaempf>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None CC: schubi, suse-beta
Version: Beta 4   
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User OS1JNCFbCX 2006-02-17 20:44:45 UTC
When accidently trying to add a directory ad installation source that does not actually contain one YaST crashes with:

terminate called after throwing an instance of 'zypp::media::MediaFileNotFoundException'
  what():  Media Exception
/sbin/yast2: line 207:  5166 Aborted                 $ybindir/y2base $module "$@" qt "$Y2_GEOMETRY" $Y2QT_ARGS

y2log says:

2006-02-17 21:39:34 <1> sighup(5166) [wfm] clients/inst_source.ycp:103 Pkg Builtin called: SourceScan
2006-02-17 21:39:34 <1> sighup(5166) [media] MediaAccess.cc(open):81 Trying scheme 'dir'
2006-02-17 21:39:34 <1> sighup(5166) [media] MediaDIR.cc(MediaDIR):47 MediaDIR::MediaDIR(dir:///mnt)
2006-02-17 21:39:34 <1> sighup(5166) [media] MediaAccess.cc(open):110 Opened: dir(dir:///mnt not attached; localRoot "/mnt")
2006-02-17 21:39:34 <0> sighup(5166) [media] MediaManager.cc(open):219 Opened new media access using id 3 to dir:///mnt
2006-02-17 21:39:34 <1> sighup(5166) [media] MediaHandler.cc(attach):321 Attached: dir:///mnt attached; localRoot "/mnt"
2006-02-17 21:39:34 <0> sighup(5166) [media] MediaManager.cc(checkDesired):106 checkDesired(): desired (report)
2006-02-17 21:39:34 <5> sighup(5166) [DEFINE_LOGGROUP] Exception.cc(log):83 MediaHandler.cc(getFile):659 THROW:    MediaHandler.cc(getFile):659: File ./media.1/products not found on media: dir:///mnt
2006-02-17 21:39:34 <5> sighup(5166) [DEFINE_LOGGROUP] Exception.cc(log):83
Comment 1 Stanislav Visnovsky 2006-03-14 15:17:30 UTC
IMO this is fixed in the recent betas. If not, please, reopen.