Closed Bug 383176 Opened 17 years ago Closed 14 years ago

drag and drop URL to file system creates url file content with extra bytes

Categories

(Firefox :: File Handling, defect)

2.0 Branch
x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: relay12, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

drag and drop URL to file system creates url file whose content is suffed with a few extra characters. Occurs with 90% URL. I assume that the url string being written has a size at least 2 bytes greater than the correct length.

Reproducible: Always

Steps to Reproduce:
1. Open any URL - tested with http://en-us.www.mozilla.com/en-US/firefox/2.0.0.4/firstrun/ 
2. drag URL to any windows folder 
(Alternatively - creating URL file in file system using drag and drop from a bookmark entry produces the same result described below)


Actual Results:  
edit file with a tool that shows hex data will show extra data following end of line <CR><LF> (hex x'0D0A') attached sample shows hex x'2046'. File size is 88 bytes NOT 86 bytes.

Expected Results:  
Correctly formed ".url" file with no extra bytes. Verify by edit file with a tool that shows hex data and file ends at end of line <CR><LF> (hex x'0D0A'). File size would be 86 bytes.

A hex capable edit/view tool is needed as this extra byte may be x'00' in some cases.

Tested using a fresh profile built with "Firefox -ProfileManager" command

This behavior was present in the previous release of firefox v2.0.0.3. It is really annoying if you use 3rd party tools to process ".url" files. Currently ever ".url" file has to be opened and the garbage characters removed.
Sometime the ".url" file is correct but I think this depends on whatever memory contents is adjacent to the ".url"

Problem does NOT occur when tested on Win 2000 + firefox v2.0.0.3 
Problem does occur when tested on Win 98SE + firefox v2.0.0.3 or v2.0.0.4
line 6 in Comment #0 - "content is suffed" replace with "content is suffixed"


Found another example this url "http://www.k23productions.com/e107_plugins/forum/forum_viewtopic.php?3013" has an extra 4 bytes so file size is 104 bytes.
This is still occurring. Number of extra junk bytes varies more than 4 bytes is possible.

Changed component from "OS integration" to "File Handling". 

Any developers out there with a Win98 test platform - I am keen to know if you can reproduce this. Updated to FF 2.0.0.10 made no difference.
Component: OS Integration → File Handling
Version: unspecified → 2.0 Branch
QA Contact: os.integration → file.handling
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
No reply, INCOMPLETE. Please retest with Firefox 3.6.x or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: