"Win32 file urls start with file:///x:/, where x is a valid drive letter" error in _win32_local_path_from_url in auto_upload_hook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Triaged
|
Medium
|
Unassigned | ||
bzr Upload plugin |
Confirmed
|
High
|
Unassigned |
Bug Description
When I commit changes from a windows box (with 2.0.2 installed) to a linux central repository (with lastest version installed, plus upload plugin) I get the following error
bzr: ERROR: Invalid url supplied to transport: "file:/
If I turn off the --auto feature on the server, then commit, it works with no errors.
Below is the bzr log from the windows client:
Mon 2009-10-05 14:36:09 +1000
0.087 bzr arguments: [u'qsubprocess', u'"commit" "-m" "try with auto on." "CHANGELOG.txt"']
0.108 looking for plugins in C:/Users/
0.108 looking for plugins in C:/Program Files/Bazaar/
0.290 encoding stdout as osutils.
0.392 bzr arguments: [u'commit', u'-m', u'try with auto on.', u'CHANGELOG.txt']
0.396 encoding stdout as osutils.
0.438 opening working tree 'C:/devel/x'
0.536 bzr-svn: using Subversion 1.5.6 ()
0.740 falling back to default implementation
0.741 failed to load system host keys: [Errno 2] No such file or directory: 'H:\\/.
[ 5312] 2009-10-05 14:36:10.565 INFO: Connected (version 2.0, client OpenSSH_4.3)
[ 5312] 2009-10-05 14:36:12.267 INFO: Authentication (password) successful!
[ 5312] 2009-10-05 14:36:12.474 INFO: Secsh channel 1 opened.
5.369 preparing to commit
[ 5312] 2009-10-05 14:36:16.779 INFO: Committing to: bzr+ssh://<email address hidden>
7.320 Selecting files for commit with filter [u'CHANGELOG.txt']
[ 5312] 2009-10-05 14:36:17.331 INFO: modified CHANGELOG.txt
8.645 Using fetch logic to copy between KnitPackReposit
8.645 fetch up to rev {<email address hidden>}
11.105 encoding stdout as osutils.
11.415 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "C:/Program Files/Bazaar/
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "\plugins\
File "bzrlib\
File "bzrlib\
InvalidURL: Invalid url supplied to transport: "file:/
11.416 return code 3
[ 4172] 2009-10-05 14:36:52.240 ERROR: Error processing remote request
Traceback (most recent call last):
File "tbzrlib\
File "tbzrlib\
File "tbzrlib\
File "tbzrlib\
File "tbzrlib\
TypeError: cannot concatenate 'str' and 'NoneType' objects
[ 4172] 2009-10-05 14:36:52.242 ERROR: Error processing remote request
Traceback (most recent call last):
File "tbzrlib\
File "tbzrlib\
File "tbzrlib\
File "tbzrlib\
File "tbzrlib\
TypeError: cannot concatenate 'str' and 'NoneType' objects
Thanks,
Cameron
summary: |
- error with --auto feature turned on with 2.0.2 + error with --auto feature turned on with bzr 2.0.02 |
summary: |
- error with --auto feature turned on with bzr 2.0.02 + error with --auto feature turned on with bzr 2.0.0-2 |
summary: |
- error with --auto feature turned on with bzr 2.0.0-2 + "Win32 file urls start with file:///x:/, where x is a valid drive + letter" error in _win32_local_path_from_url in auto_upload_hook |
Changed in bzr-upload: | |
status: | Incomplete → Confirmed |
importance: | Undecided → Medium |
importance: | Medium → High |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: upload |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool wrote: local_path_ from_url in auto_upload_hook
> ** Summary changed:
>
> - error with --auto feature turned on with bzr 2.0.0-2
> + "Win32 file urls start with file:///x:/, where x is a valid drive letter" error in _win32_
>
So I think this is actually a bug in bzr-upload, and what is happening
is that committing to that branch wants to push the changes to the
remote site, and then upload those to yet another location. However from
the sound of it, we don't actually have *access* to that location,
because it is given as a file:/// url on the remote host.
I don't know if there is much bzr can do...
affects bzr-upload
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
KAM8ACgkQJdeBCY SNAAOMvQCeLaAQN fi3c3HuimWD1xNA ThQk qbNLMQEO0sBBwet COloyyro
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr
QmsAoNcM/
=edy6
-----END PGP SIGNATURE-----