Drag from Files into Terminal produces incorrect path

Bug #1065822 reported by uranusjr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminal
Fix Released
Low
Akshay Shekher

Bug Description

Not sure whether this should be a Files or Pantheon Terminal problem.

When a file item is drag-and-dropped from Files to Terminal, the absolute path of the file item is inputted (surrounded by single quotes). But the path seems to be percent-escaped, which is incorrect. As the path is already surrounded by quotes, no escapes are needed. Even if you want to escape the path string (and then the quotes should be removed), it should be backslash-escaped, not percent-escaped.

In URI reserved characters, ';' (semicolon), '?' (question mark), '#' (pound sign), '[' and ']' (square brackets) are incorrectly escaped, while others are inputted correctly (except '/', of course). Space is also incorrectly escaped. I didn't try non-ASCII characters.

David Gomes (davidgomes)
Changed in pantheon-terminal:
status: New → Confirmed
importance: Undecided → Low
milestone: none → 0.2
David Gomes (davidgomes)
Changed in pantheon-terminal:
assignee: nobody → Akshay Shekher (voldyman)
David Gomes (davidgomes)
Changed in pantheon-terminal:
status: Confirmed → Fix Committed
milestone: 0.2 → luna-beta2
Changed in pantheon-terminal:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.