Closed Bug 123031 Opened 24 years ago Closed 24 years ago

Setting username and password on nsIURI object damages host part of URL, preventing FTP transfer

Categories

(Core :: Networking, defect, P1)

All
Windows 2000
defect

Tracking

()

RESOLVED FIXED
mozilla0.9.9

People

(Reporter: cmanske, Assigned: darin.moz)

Details

Attachments

(1 file)

While testing publishing on Composer, we found that we can FTP using an nsIURI object whose "spec" includes the username and password, but if we set the username and password fields in the object, the FTP transfer fails. Darin investigated this and found: "nsIURI::host is getting wacked -- off by one error nsIURI::host "@ftp.foo.com" becomes "@ftp.foo.co" after setting the username and password"
the problem is with nsStandardURL::SetPassword. it is not properly updating mHost.mPos to account for the addition of the ':' character, i suspect. patch in hand.
Severity: normal → critical
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9.9
Attached patch v1.0 patchSplinter Review
trivial patch
Comment on attachment 67478 [details] [diff] [review] v1.0 patch r=cmanske Looks good. Tested with publishing code in Composer.
Attachment #67478 - Flags: review+
Comment on attachment 67478 [details] [diff] [review] v1.0 patch sr=mscott
Attachment #67478 - Flags: superreview+
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: