Bug 753941 - accessibility cannot access checkboxes in proxy config
Summary: accessibility cannot access checkboxes in proxy config
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Alex Wood
QA Contact: J.C. Molet
URL:
Whiteboard:
Depends On:
Blocks: 715031
TreeView+ depends on / blocked
 
Reported: 2011-11-14 22:02 UTC by J.C. Molet
Modified: 2012-02-21 06:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2012-02-21 06:42:47 UTC
Target Upstream Version:


Attachments (Terms of Use)
networkConfig.glade patch (1.52 KB, patch)
2011-11-14 22:02 UTC, J.C. Molet
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0154 0 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-20 15:06:04 UTC

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


Note You need to log in before you can comment on or make changes to this bug.