Bug 753941

Summary: accessibility cannot access checkboxes in proxy config
Product: Red Hat Enterprise Linux 5 Reporter: J.C. Molet <jmolet>
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED ERRATA QA Contact: J.C. Molet <jmolet>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.8CC: awood, cduryee, wpoteat
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:42:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031    
Attachments:
Description Flags
networkConfig.glade patch none

Description J.C. Molet 2011-11-14 22:02:33 UTC
Created attachment 533638 [details]
networkConfig.glade patch

Description of problem:
In subscription-manager-gui, the accessibility cannot access the checkboxes in the the proxy configuration dialog because they are not focusable.

Version-Release number of selected component (if applicable):
subscription-manager-gnome-0.98.2-1.git.16.9f8c5cc.el5_7

How reproducible:
Always

Steps to Reproduce:
1. Launch subscription-manager-gui
2. Open the network/proxy config dialog
3. Use your favorite accessibility tool to check any check box in this window
  
Actual results:
the boxes cannot be focused on so the accessibility api in rhel5 cannot check them.

Expected results:
the boxes are checked.

Additional info:
This blocks all automation of this feature on rhel5.

Attached is a patch that fixes this for this window.  There may be other checkboxes with the same bug in rhsm (I've only looked at these and the search filters).

Comment 1 Alex Wood 2011-11-16 20:01:25 UTC
To test, you must have ldtp installed on your RHEL 5.7 system.  To do so, follow these steps:

 ldtpsource="http://anongit.freedesktop.org/git/ldtp/ldtp.git"
 cd /root
 git clone $ldtpsource
 cd ldtp
 yum -y install at-spi at-spi-devel gail libxml2 gettext
 ./autogen.sh --prefix=/usr; make
 make install
 cd /root
 yum -y install gnome-python2-libwnck
 if [[ ! -d /root/bin ]];then mkdir /root/bin; fi
 wget http://auto-services.usersys.redhat.com/rhsm/ldtpd.py -O /root/bin/ldtpd
 chmod +x /root/bin/ldtpd
 echo "alias start-ldtpd='ldtpd'" >> /root/.bashrc
 gconftool-2 --set /desktop/gnome/interface/accessibility --type=boolean true
 init 3 && sleep 10 && init 5

Next you must yum install dogtail.

Using sniff, navigate to the label for the checkboxes in question.  (I have pasted in the labels so this step is optional)

Open a python shell,
>>> from ldtp import *
>>> check("Advanced Network Configuration", "Proxy Checkbox")
>>> check("Advanced Network Configuration", "Authentication Checkbox")

The two checkboxes should now be checked.

Comment 2 Alex Wood 2011-11-16 20:20:28 UTC
Committed to subscription-manager as f8a273591fb1d71e25b06a617df7aa71da520984

Available in 0.98.3 and up

Comment 5 J.C. Molet 2011-12-06 19:47:29 UTC
subscription-manager-gnome-0.98.5-1.git.2.cd86f84.el5_7

This now works in the proxy configuration dialog and automation is using this.  Marking VERIFIED.

Comment 6 William Poteat 2012-01-23 14:55:48 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 7 errata-xmlrpc 2012-02-21 06:42:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0154.html