Closed Bug 316033 Opened 19 years ago Closed 8 years ago

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

Categories

(Core :: Networking: Cache, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: Neil.A.Fahey, Unassigned)

Details

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.
Version: unspecified → 1.7 Branch
Assignee: general → darin
Component: General → Networking: Cache
Product: Mozilla Application Suite → Core
QA Contact: general → networking.cache
-> default owner
Assignee: darin → nobody
Version: 1.7 Branch → Trunk
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.