Closed Bug 459122 Opened 16 years ago Closed 16 years ago

When loading a big XML file with XMLHttpRequest some elements get truncated

Categories

(Core :: XML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 449219

People

(Reporter: xi, Unassigned)

References

()

Details

(Keywords: regression, testcase)

User-Agent:       Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.0.3) Gecko/2008100213 Firefox/3.0.3
Build Identifier: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.0.3) Gecko/2008100213 Firefox/3.0.3

When I load a big XML file with XMLHttpRequest sometimes a number of the elements contained in it get truncated to a seemingly random length. I have not discovered a pattern to what causes it.

I have included a link to an example that should make it possible to reproduce the problem. It might be neccesary to reload it a number of times before the bug shows up.

The XML file contains a large number of <element>-elements as well as a <length>-element indicating the combined length of the text included in the <element>-tags. When the length calculated by the javascript code differs from the one indicated in the XML file an error message is shown.

I have one more test that displays some more debug output:
http://borderworlds.dk/~xi/ffbug/index2.html

The problem has been reproduced on the following platform/browser combinations:
Firefox 3.0.3 on FreeBSD
Firefox 3.0.3 on Linux
Firefox 3.0.3 on Windows XP
Firefox 3.0.1 on Windows XP

Reproducible: Sometimes

Steps to Reproduce:
1. Create an XML file with lots of big elements
2. Fetch the file from javascript using XMLHttpRequest
3. Check that no elements have been truncated
Actual Results:  
Some elements are sometimes truncated.

Expected Results:  
No elements should be truncated.

Before submitting this bug report I searched for similar reports. The closest thing was Bug 441813 but I am not certain that this is the same problem.
Have you looked at this one?

https://bugzilla.mozilla.org/show_bug.cgi?id=194231

"4k+ text blocks create adjacent DOM text nodes"
This is also reproducible with latest trunk on Windows XP/Vista.
Regressed between the following build ID's: 2007013011 and 2007013013.
http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=2007-01-30+10%3A00&maxdate=2007-01-30+14%3A00
So this seems tobe caused by Bug 18333.
Component: General → XML
Keywords: regression, testcase
OS: FreeBSD → All
Product: Firefox → Core
QA Contact: general → xml
Hardware: PC → All
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.9.1?
from bug 441813:

I noticed this is related to the network interface MTU (a loopback interfaces with a 16k MTU won't truncate a 4k text node).

Another testcase:
http://www.spasche.net/files/bug441813/
bug 449219 fixes this.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Flags: blocking1.9.1?
You need to log in before you can comment on or make changes to this bug.