After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 600372 - Orca handles text configuration input incorrectly
Orca handles text configuration input incorrectly
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.28.x
Other Linux
: Normal normal
: 2.30.0
Assigned To: Willie Walker
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-02 07:48 UTC by Arky
Modified: 2010-02-25 08:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for check numerical choices (1.46 KB, patch)
2009-11-04 09:35 UTC, Arky
needs-work Details | Review
new patch to check user input (6.36 KB, patch)
2009-11-09 07:39 UTC, Arky
none Details | Review
Patch that was committed (16.87 KB, patch)
2009-11-10 18:52 UTC, Willie Walker
committed Details | Review

Description Arky 2009-11-02 07:48:40 UTC
orca shouldn't allow gibberish as input into its configuration settings. I have no idea what the results of most of my choices actually were.

Welcome to Orca setup.
Select desired speech server.
1. Default Synthesizer
2. espeak
3. dummy
Enter choice: f
Enter choice: fsadf
Enter choice: asdfasdf
Enter choice: asdfa
Enter choice: 1
Select desired voice:
1. default default voice (en)
2. afrikaans (af)
3. bosnian (bs)
4. catalan (ca)

Original Ubuntu LP bug report https://bugs.edge.launchpad.net/ubuntu/+source/gnome-orca/+bug/469877
Comment 1 Arky 2009-11-04 09:35:10 UTC
Created attachment 146902 [details] [review]
Patch for check numerical choices 

Patch adds checks for numerical choices.
Comment 2 Arky 2009-11-04 11:27:22 UTC
The second part of the bug relates to checkYes() function, couldn't find a way to patch that. help!
Comment 3 Willie Walker 2009-11-06 14:58:58 UTC
The checkYes method should be modified to return one of three states, say [True,False,None].  Then, all the code that calls it should check for the None value and reprompt.
Comment 4 Willie Walker 2009-11-06 15:10:43 UTC
Review of attachment 146902 [details] [review]:

If you can get the checkYes stuff fixed as well, I'll take a look at trying to get this in.  It will need to go into 2.29 and not 2.28 unless you can devise a way not to introduce any new strings for translation.  Thanks!
Comment 5 Arky 2009-11-09 07:39:13 UTC
Created attachment 147248 [details] [review]
new patch to check user input 

Numeric returns are checked for intergers and checkYes() checks for yes or no and sets false for invalid response after printing a warning
Comment 6 Willie Walker 2009-11-10 18:52:03 UTC
Created attachment 147396 [details] [review]
Patch that was committed

Thanks Arky!  There were a couple oddities with the patch, one of which was that it prompted you for key echo settings even if you said you didn't want key echo.  I checked in this patch to master just now.  Seems to work nicely, but please let me know if you have any concerns about it.
Comment 7 Arky 2009-11-11 08:18:41 UTC
Thanks Willie, I will do that.
Comment 8 Arky 2010-02-25 08:37:45 UTC
Setting this bug as 'FIXED'