Closed
Bug 44785
Opened 24 years ago
Closed 24 years ago
Mozilla corrupts files in disk cache
Categories
(Core :: Networking: Cache, defect, P3)
Tracking
()
M17
People
(Reporter: tenthumbs, Assigned: neeti)
Details
Attachments
(2 files)
My homepage for Mozilla is a simple SSI document so its size changes every time it's accessed. After using Mozilla for a while, including returning to the home page and reloading it occasionally, I've noticed that the page will eventually appear to be corrupt. After closing Mozilla I see that the disk cache file really is corrupt and Mozilla is just displaying what's there. Here's the tail of the file after a recent session. <br> <br> </body> </html> </html> r> </body> </html> Trust me, there really aren't three </html> tags in the original. Even if I clear out the cache directory, this problem eventually recurs. I would guess that Mozilla is not truncating the disk file after writing to it. I also wouldn't be surprised if Mozilla doesn't corrupt other files but I haven't found any yet
Reporter, could you provide a url where I could test this bug? Thanks, Neeti
Status: NEW → ASSIGNED
Unfortunately, the page is on my Apache server on my personal machine which is generally not available. However, I'm attaching a stripped down version of the SSI page. If you've got a suitable server, you can try it. I'm also attaching a perl CGI script that seems to do the same thing. Now Mozilla doesn't always display corruption so I think something else may be need to trigger it but it is trivial to show that files in the disk cache are not properly truncated. Just clear out the cache, start Mozilla and point it to, say, the CGI script, reload the page, find the disk cache copy, and then you can see that the disk file has a size that is always the maximum of any of the loads and it never shrinks. Look in the file and you can see pieces of previous loads. the file will not change when you close Mozilla. This can't possibly be a good thing.
*** This bug has been marked as a duplicate of 38244 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•