Closed Bug 309705 Opened 19 years ago Closed 18 years ago

Incorrect handling of HTTP error 413 (Request Entity Too Large) - Firefox says "document contains no data" uploading file

Categories

(Core :: Networking, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 292407

People

(Reporter: victor, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

When user tries to upload a file larger than a server would accept, some server
say earlier of squid would return the 413 error and discounnt the client.  

Test suggest firefox is having problem with this behaviour, instead of
displaying the 413 error page returned by my server, it claims the connection is
broken and return the error 'document contains no data'.

This is what RFC 2616 say about error 413

10.4.14 413 Request Entity Too Large

   The server is refusing to process a request because the request
   entity is larger than the server is willing or able to process. The
   server MAY close the connection to prevent the client from continuing
   the request

It suggest the disconnect operation is a valid option a server may choose. and
considering a real life use case, disconnecting the client upon notice of the
problem indeed should be the most desireable way to handle the error,
Disconnting the client early would save server resrouces, and time for the user
as he/she would not have to wait for the request to be completed only to find
out the request made was not accepted.

Please kindly consider revising the behaviour.

Many thanks.

Tor.

Reproducible: Always
Assignee: nobody → darin
Component: General → Networking: HTTP
Product: Firefox → Core
QA Contact: general → networking.http
Version: unspecified → 1.7 Branch
Summary: Handling of HTTP error 413 → Incorrect handling of HTTP error 413 (Request Entity Too Large) - Firefox says "document contains no data"
Related to/duplicate of Firefox bug 292407?
-> default owner
Assignee: darin → nobody
Component: Networking: HTTP → Networking
QA Contact: networking.http → networking
Version: 1.7 Branch → Trunk

*** This bug has been marked as a duplicate of 292407 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Summary: Incorrect handling of HTTP error 413 (Request Entity Too Large) - Firefox says "document contains no data" → Incorrect handling of HTTP error 413 (Request Entity Too Large) - Firefox says "document contains no data" uploading file
You need to log in before you can comment on or make changes to this bug.