Comment 5 for bug 294061

Revision history for this message
AnkurD (ankurd) wrote :

This is still causing problems in linux.
CommandLineException is raised if file path contains spaces.

----------------------------------------------------
Exception in thread "main" org.vcs.bazaar.client.commandline.CommandLineException: <?xml version="1.0" encoding="UTF-8"?><error><class>NotBranchError</class><dict><key>path</key><value>/home/ankur/ank%20d/</value><key>extra</key><value></value><key>detail</key><value></value></dict><message>Not a branch: "/home/ankur/ank%20d/".</message></error>
        at org.vcs.bazaar.client.commandline.internal.Command.execute(Command.java:83)
        at org.vcs.bazaar.client.commandline.CommandLineClient.run(CommandLineClient.java:639)
        at org.vcs.bazaar.client.commandline.CommandLineClient.run(CommandLineClient.java:633)
        at org.vcs.bazaar.client.commandline.CommandLineClient.info(CommandLineClient.java:495)
        at test.main(test.java:21)
        at org.vcs.bazaar.client.commandline.CommandLineClient.run(CommandLineClient.java:633)
        at org.vcs.bazaar.client.commandline.CommandLineClient.info(CommandLineClient.java:495)
        at test.main(test.java:21)
Caused by: java.io.IOException: <?xml version="1.0" encoding="UTF-8"?><error><class>NotBranchError</class><dict><key>path</key><value>/home/ankur/ank%20d/</value><key>extra</key><value></value><key>detail</key><value></value></dict><message>Not a branch: "/home/ankur/ank%20d/".</message></error>
        ... 8 more
-----------------------------------

This is maybe due to the fact that on unix ' ' doesnt have to be replaced by '%20'.