Fossil SCM
remote-url command doesn't persist username and password
Fixed
68c7f7bee951302…
· opened 16 years, 6 months ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Minor
- Resolution
- Fixed
- Subsystem
- —
- Created
- Oct. 7, 2009 12:17 a.m.
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:[email protected]/ PS C:\fossil\fossil> fossil remote-url http://a:[email protected]/ 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]