Bug 387555

Summary: yast2-scanner: better user info if the net backend hangs up
Product: [openSUSE] openSUSE 11.1 Reporter: Johannes Meixner <jsmeix>
Component: YaST2Assignee: Johannes Meixner <jsmeix>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P5 - None    
Version: Alpha 0   
Target Milestone: Beta 1   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: determine_active_scanners

Description Johannes Meixner 2008-05-07 06:52:50 UTC
When the net backend is activated and something
is wrong in the network (e.g. a remote saned server
for the local running net backend does not respond at all)
there are very long limeouts or it may just hang up.

Therefoere there is already a 60 seconds timeout with a time-bomb
in /usr/lib/YaST2/bin/determine_active_scanners so that
yast2-scanner does not hang up completely.

But if the time-bomb kills determine_active_scanners
the result is an empty list of active scanners even
if other backends for locally connected scaners would work
but cannot because the net backend blocks all which is
therefore technically corect but looks wrong for the
unexperienced user.

What is missing is a better user information when
the net backend is activated and such timeouts happen
in particular with a hint that an unexpected epmty list
of active scanners might be caused by problems with the net
backend so that it might help to disable the net backend.
Comment 1 Johannes Meixner 2008-05-07 13:45:22 UTC
Created attachment 213166 [details]
determine_active_scanners

Added an explanatory error message to determine_active_scanners
if there is no response from the 'scanimage' command.
Because of the YaST 'text freeze' this error message cannot be
translated for openSUSE 11.0 so that currently it is only a
simple stderr message.
Comment 2 Johannes Meixner 2008-05-07 13:53:22 UTC
Fixed as good as possible for openSUSE 11.0.

Will make it an enhancement for openSUSE 11.1
to move the explanatory error message into
the YCP source so that it will be translated.
Comment 3 Johannes Meixner 2008-05-15 09:40:43 UTC
Reopened an enhancement for openSUSE 11.1
to move the explanatory error message into
the YCP source so that it will be translated.
Comment 4 Johannes Meixner 2008-08-15 06:16:12 UTC
Fix for next openSUSE version.