Open Bug 514831 Opened 11 years ago Updated 10 years ago

Missing newline in text/plain and text/uri-list causes ROX-Filer to reject DnD with error dialog


(Core :: DOM: Drag & Drop, defect)

Not set





(Reporter: labadf, Unassigned)


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; es-AR; rv: Gecko/20090729 Firefox/3.5.2
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; es-AR; rv: Gecko/20090729 Firefox/3.5.2

When dragging links or file links from FF to ROX-Filer, it displays the message  "uri_list_to_glist: Incorrect or missing line break in text/uri-list data ", and "Sorry - I require a target type of text/uri-list or XdndDirectSave0. " when dragging a simple image. It's the same problem described in
It had not happened with FF 2.*. Maybe the problem is related to the new implementation of the Drag and Drop API. Some other applications receive the link information and perform the correct action, but it's not the same in Scite and ROX.

Reproducible: Always

Steps to Reproduce:
1.Open Firefox and ROX-Filer in an empty folder, side to side if possible.
2.Navigate to any page containing links to files or with valid <img> tags
3.Drag the link to the file or the image to the ROX-Filer window.
Actual Results:  
If the Drag option is enabled (by default it is), the described error messages should appear.

Expected Results:  
If there's any download manager set int he Drag and Drop option, it should be launched. If not, an error message pointing at this option should appear.

Fixing this problem might help fix some other bugs like the Photoshop related Drag and Drop to open in Windows as well
While RFC 2169 says:
"As for all text/* formats, lines are terminated with a CR LF pair,
 although clients should be liberal in accepting lines with only 
 one of those characters."

RFC 2046 has this to say about text media types:
"The canonical form of any MIME "text" subtype MUST always represent a
 line break as a CRLF sequence.  Similarly, any occurrence of CRLF in
 MIME "text" MUST represent a line break.  Use of CR and LF outside of
 line break sequences is also forbidden."

It says nothing about line *termination*. It only talks about line *breaks*, and doesn't say anything I can see related to one-line texts required to end with a line break.
You need to log in before you can comment on or make changes to this bug.