Closed Bug 630667 Opened 13 years ago Closed 6 years ago

DeviceManager: paths containing spaces break various commands

Categories

(Testing :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mcote, Assigned: gbrown)

Details

Paths with spaces break some agent commands because the path is interpreted as being two or more separate parameters.  Note that Fennec *does* create such paths (eg the "Crash Reports" directory).  Using quotes appears to fix the problem.

$>isdir /data/data/org.mozilla.fennec/mozilla/Crash Reports
##AGENT-WARNING## Wrong number of arguments for isdir command!

$>isdir "/data/data/org.mozilla.fennec/mozilla/Crash Reports"
TRUE

$>ls /data/data/org.mozilla.fennec/mozilla/Crash Reports
<empty>

$>ls "/data/data/org.mozilla.fennec/mozilla/Crash Reports"
InstallTime20110131134356

$>pull /data/data/org.mozilla.fennec/mozilla/Crash Reports/InstallTime20110131134356
##AGENT-WARNING## Wrong number of arguments for pull command!

$>pull "/data/data/org.mozilla.fennec/mozilla/Crash Reports/InstallTime20110131134356"
/data/data/org.mozilla.fennec/mozilla/Crash Reports/InstallTime20110131134356,10
1296596021$>
Assignee: nobody → gbrown
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
Component: New Frameworks → General
You need to log in before you can comment on or make changes to this bug.