View Ticket
Not logged in
Ticket UUID: 68c7f7bee9513021546efac9166a70674f663e0b
Title: remote-url command doesn't persist username and password
Status: Fixed Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution: Fixed
Last Modified: 2009-10-31 14:08:58
Version Found In: 37f295c310
Description & Comments:
the remote-url command should preserve the username and password that are embedded in the url, but it does not. my system is a windows system, if that makes a difference. however, i think the problem is in remote_url_cmd() where it stores g.urlCanonical, which strips the usr:pwd@ from the url. process_sync_args(), by comparison, will take arg[2] over g.urlCanonical as long as the url does not refer to a file. i think remote_url_cmd() should do the same.
PS C:\fossil\fossil> fossil remote-url --show-pw
http://rwilson:password@www.fossil-scm.org/
PS C:\fossil\fossil> fossil remote-url http://a:b@www.fossil-scm.org/
http://www.fossil-scm.org/
PS C:\fossil\fossil> fossil remote-url --show-pw
http://www.fossil-scm.org/
PS C:\fossil\fossil> fossil ver
This is fossil version 37f295c310 2009-09-21 19:19:20 UTC
PS C:\fossil\fossil>

drh added on 2009-10-31 14:08:58:
Check-in 11ecd5c0b512fdea2565a133e9dec19c4ba81e27