Cache not correctly updateing Javascript file if file content is shorter and no newline present at the end of the file

RESOLVED INCOMPLETE

Status

()

Core
Networking: Cache
RESOLVED INCOMPLETE
13 years ago
2 years ago

People

(Reporter: Neil Fahey, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

Issue seems to be intermitent where a javscript file that has been updated on the webserver is becomming corrupt in the mozill cache where the origional file was 200 bytes long and the new file is 150 bytes. The resultant file in the cache is still 200 btyes long made up of the correct new 150 bytes but appended with the remaining 50 bytes of the origional file. The newfile on the webserver does not have an ending newline in it but is this a requirement.

 

Reproducible: Sometimes

Steps to Reproduce:
1.Visit website with old file of size 200 bytes
2.Update webserver with new file of 150 bytes.
3.Browse to site and check the file on disk 200 btyes in size.


Actual Results:  
File on disk is sometimes 200 bytes long

Expected Results:  
File on Disk should be 150 btyes long.
(Reporter)

Updated

13 years ago
Version: unspecified → 1.7 Branch
Assignee: general → darin
Component: General → Networking: Cache
Product: Mozilla Application Suite → Core
QA Contact: general → networking.cache

Comment 1

12 years ago
-> default owner
Assignee: darin → nobody
Version: 1.7 Branch → Trunk
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.