view .bzr.log failed due of extra quoting

Bug #599191 reported by Martitza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Confirmed
Medium
Unassigned

Bug Description

bzr-explorer 1.0.1 installed with the bzr 2.1.1 standalone instalelr on a clean Windows XP box.

Start Bzr Explorer and navigate to Bazaar > Explore > System Log. Get the following dialog:

Select bzr:ERROR: [ERROR 123} The filename, directory or volume label syntax is incorrect: u'''C:\\Documents and Settings\\root\\My Documents\\.bzr.log

Note that bzr log is actually being written to C:\Documents and Settings\root\My Documents\.bzr
Notethat the file is just .bzr, not .bzr.log

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 599191] [NEW] Bazaar Explorer looking for logs in all the wrong places

Martitza пишет:
> Public bug reported:
>
> bzr-explorer 1.0.1 installed with the bzr 2.1.1 standalone instalelr on
> a clean Windows XP box.
>
> Start Bzr Explorer and navigate to Bazaar > Explore > System Log. Get
> the following dialog:
>
> Select bzr:ERROR: [ERROR 123} The filename, directory or volume label
> syntax is incorrect: u'''C:\\Documents and Settings\\root\\My
> Documents\\.bzr.log

I suspect we have the problem with wrong number of quotes, maybe.

> Note that bzr log is actually being written to C:\Documents and Settings\root\My Documents\.bzr
> Notethat the file is just .bzr, not .bzr.log

Please, show the output of `bzr version` command.

Revision history for this message
Martitza (martitzam) wrote : Re: [Bug 599191] [NEW] Bazaar Explorer looking for logs in all the wrong places

Guys: I am a complete idiot today. When I installed the new OS, I forgot
that Windows defaults to hiding "known" extensions. And ".log" is a known
extension. The file was there all along. The .bzr is really .bzr.log. I
apologize for the waste of time. I wonder what else I did wrong yesterday.
Let's invalidate this issue, please.

~M

C:\Documents and Settings\root>bzr version
Bazaar (bzr) 2.1.1
  Python interpreter: C:\Program Files\Bazaar\python25.dll 2.5.4
  Python standard library: C:\Program Files\Bazaar\lib\library.zip
  Platform: Windows-XP-5.1.2600-SP3
  bzrlib: C:\Program Files\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:\Documents and Settings\root\Application
Data\bazaar\2.0
  Bazaar log file: C:\Documents and Settings\root\My Documents\.bzr.log

Copyright 2005-2010 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

Changed in bzr-explorer:
status: New → Invalid
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 599191] [NEW] Bazaar Explorer looking for logs in all the wrong places

Martitza пишет:
> Guys: I am a complete idiot today. When I installed the new OS, I forgot
> that Windows defaults to hiding "known" extensions. And ".log" is a known
> extension. The file was there all along. The .bzr is really .bzr.log. I
> apologize for the waste of time. I wonder what else I did wrong yesterday.
> Let's invalidate this issue, please.

No need for bashing yourself so much. I don't think error message you
get is invalid though.

Can you check the problem one more time and show relevant part of
.bzr.log with traceback related to this error, please?

--
All the dude wanted was his rug back

Revision history for this message
Martitza (martitzam) wrote : Re: Bazaar Explorer looking for logs in all the wrong places

You are all very kind. The .bzr.log says very little about this. Here it is:

Mon 2010-06-28 14:43:48 -0700
0.062 bazaar version: 2.1.1
0.062 bzr arguments: [u'qviewer', u'"C:\\Documents and Settings\\root\\My Documents\\.bzr.log"']
0.078 looking for plugins in C:/Documents and Settings/root/Application Data/bazaar/2.0/plugins
0.078 looking for plugins in D:/Program Files/Bazaar/plugins
0.265 encoding stdout as sys.stdout encoding 'cp437'
0.406 encoding stdout as sys.stdout encoding 'cp437'
0.531 None

33.548 Transferred: 0KiB (0.0K/s r:0K w:0K)
33.548 return code 0

Again, this was obtained by navigating Bazaar > Explore > System Log

Note that if I run

      bzr qviewer "C:\Documents and Settings\root\My Documents\.bzr.log"

from the command line, I get a qviewer window with the logfile displayed. Note the double quotes to protect the spaces in the filename. Also note that single quotes do not work:

      bzr qviewer 'C:\Documents and Settings\root\My Documents\.bzr.log'

gives

      bzr: ERROR: extra argument to command qviewer: and

because that's "just how Windows is."

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 599191] Re: Bazaar Explorer looking for logs in all the wrong places

Martitza пишет:
> You are all very kind. The .bzr.log says very little about this. Here
> it is:
>
> Mon 2010-06-28 14:43:48 -0700
> 0.062 bazaar version: 2.1.1
> 0.062 bzr arguments: [u'qviewer', u'"C:\\Documents and Settings\\root\\My Documents\\.bzr.log"']

The path should not be quoted here. This is the bug.

> 0.078 looking for plugins in C:/Documents and Settings/root/Application Data/bazaar/2.0/plugins
> 0.078 looking for plugins in D:/Program Files/Bazaar/plugins
> 0.265 encoding stdout as sys.stdout encoding 'cp437'
> 0.406 encoding stdout as sys.stdout encoding 'cp437'
> 0.531 None
>
> 33.548 Transferred: 0KiB (0.0K/s r:0K w:0K)
> 33.548 return code 0

> because that's "just how Windows is."

Please, don't start this. Windows command-line has no support for
single quote and this is known fact.

--
All the dude wanted was his rug back

Changed in bzr-explorer:
status: Invalid → Confirmed
importance: Undecided → Medium
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: Bazaar Explorer looking for logs in all the wrong places

I think it's a dup, but I will try to find the match later.

summary: - Bazaar Explorer looking for logs in all the wrong places
+ view .bzr.log failed due of extra quoting
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.