Q7

When a tree item contains slash, searching an item by column does not work

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.10
  • Fix Version/s: 1.3.13
  • Component/s: Runtime
  • Labels:
  • Test Mode:
    Q7
  • Q7 test:
    tests/coverage/swt/tree/Tree With Slashes Test.test

Description

Ticket 657

  1. Use standard Tasks view
  2. Create a task named "foo/bar"
  3. Record task name assertion
      get-view Tasks | get-tree | get-item "foo\\/bar" -column Description | get-property "columns[2]" | equals "foo/bar" | assert-true
      
  4. Replay fails with error:
      The item "[foo, bar#Description#]" could not be found 
        at get-item
      
  5. Surprisingly, selection works correctly:
      get-view Tasks | get-tree | select "foo\\/bar" -column Description
      

Activity

Hide
komaz added a comment - 23/Dec/13 7:06 PM

Another issue:
Given a tree like this:

Name Resource Pin
UART001/0    
  UART Transmit 1.1
  UART Receive 1.2

This code fails:

get-items | foreach { get-property "columns[1]" }

With a message:

The Item "[UART001/0%1%]" could not be found.
	at get-property (/clean/strange tree.test:14)
Show
komaz added a comment - 23/Dec/13 7:06 PM Another issue: Given a tree like this:
Name Resource Pin
UART001/0    
  UART Transmit 1.1
  UART Receive 1.2
This code fails:
get-items | foreach { get-property "columns[1]" }
With a message:
The Item "[UART001/0%1%]" could not be found.
	at get-property (/clean/strange tree.test:14)
Hide
Ulyana Skorokhodova added a comment - 23/Dec/13 7:25 PM
Show
Ulyana Skorokhodova added a comment - 23/Dec/13 7:25 PM Ticket link: http://xored.freshdesk.com/helpdesk/tickets/657
Hide
vasily.loginov added a comment - 11/Jun/14 3:04 PM

Path to item becomes broken in SelectorService.service() method (SelectorService.java:185)

Show
vasily.loginov added a comment - 11/Jun/14 3:04 PM Path to item becomes broken in SelectorService.service() method (SelectorService.java:185)
Hide
Vasili Gulevich added a comment - 23/Jun/14 11:27 AM
Show
Vasili Gulevich added a comment - 23/Jun/14 11:27 AM Fixed in http://build.xored.com/browse/Q7-RCPTT-76
Hide
Ulyana Skorokhodova added a comment - 24/Jun/14 11:21 PM

This case doesn't work: get-view "Q7 Quality Mockups" | get-group TreeWithSlashes | get-tree | get-item "parent1/child1value\\/with
/slash" -column "Value column"

Show
Ulyana Skorokhodova added a comment - 24/Jun/14 11:21 PM This case doesn't work: get-view "Q7 Quality Mockups" | get-group TreeWithSlashes | get-tree | get-item "parent1/child1value\\/with
/slash" -column "Value column"
Hide
Vasili Gulevich added a comment - 24/Jun/14 11:49 PM
Item1    parent1
 |
 \Item2  child1value/with/slash
Show
Vasili Gulevich added a comment - 24/Jun/14 11:49 PM
Item1    parent1
 |
 \Item2  child1value/with/slash
Hide
Ulyana Skorokhodova added a comment - 25/Jun/14 12:02 AM - edited

This script works successfully:

get-item "/child1value\\/with\\/slash" -column "Value column"

Q7 test is modified to take this situation into account.

Show
Ulyana Skorokhodova added a comment - 25/Jun/14 12:02 AM - edited This script works successfully:
get-item "/child1value\\/with\\/slash" -column "Value column"
Q7 test is modified to take this situation into account.

People

  • Assignee:
    vasily.loginov
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    19/Dec/13 3:42 PM
    Updated:
    25/Jun/14 2:19 PM
    Resolved:
    25/Jun/14 12:02 AM