← Back to team overview

dx-packages team mailing list archive

[Bug 1307748] Re: xpathselect attribute matching doesn't match anything other than object Ids

 

** Also affects: unity/7.2
   Importance: Undecided
       Status: New

** Changed in: unity
    Milestone: 7.2.1 => 7.3.0

** Changed in: unity
       Status: In Progress => Fix Committed

** Changed in: unity/7.2
       Status: New => In Progress

** Changed in: unity/7.2
   Importance: Undecided => High

** Changed in: unity/7.2
     Assignee: (unassigned) => Marco Trevisan (Treviño) (3v1n0)

** Changed in: unity/7.2
    Milestone: None => 7.2.1

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1307748

Title:
  xpathselect attribute matching doesn't match anything other than
  object Ids

Status in Unity:
  Fix Committed
Status in Unity 7.2 series:
  In Progress
Status in “unity” package in Ubuntu:
  Fix Released

Bug description:
  I came across this issue while testing an autopilot branch of mine.

  The xpathselect server-side matching (as opposed to matching in the
  autopilot python code) is not working as expected.

  To reproduce:
    - Save this code as test_selection_attributes.py -  http://paste.ubuntu.com/7252495/ 
    - (with the unity-autopilot package installed) run: `autopilot run test_selection_attributes`

  This script contains 2 tests, one passes to prove that it can get a
  Launcher that has the monitor attribute of 0, the 2nd test attempts to
  select the Launcher object with attribute monitor=0 and fails.

  We see in the unity logs:
   -   "Unable to match 'monitor' against property of unknown integer type."

  A bit of digging suggests that GetPropertyValue is returning an array
  of values (Probably: Object type id, Value?) which means that, in
  MatchIntegerProperty for instance, the values GVariantClass will never
  be one of the Integer types.

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1307748/+subscriptions