Closed
Bug 167525
Opened 22 years ago
Closed 22 years ago
When 1024 byte page is in cache, Error message "The file /test/ cannot be found. Please check the location and try again"
Categories
(Core :: Networking: Cache, defect)
Core
Networking: Cache
Tracking
()
VERIFIED
FIXED
People
(Reporter: MozillaUser, Assigned: gordon)
References
()
Details
Attachments
(3 files)
4.00 KB,
text/plain
|
Details | |
16.00 KB,
text/plain
|
Details | |
1.15 KB,
patch
|
dougt
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
Linux trunk build 2002090905
Load the url http://www.westcoastaerospace.com/test/
It will load just fine
Now hit the reload button, or press back and then press forward, or hit enter in
the URL bar, or perform any other action that causes the page to be reloaded.
You will see the error message "The file /test/ cannot be found. Please check
the location and try again"
If you press Shift+Reload to bypass the cache, the page will reload just fine.
If you go into preferences and clear your disk and memory caches, you will be
able to reload the page again once.
For similar symptoms see also:
bug 141831 (same symptom, but with ftp)
bug 123808 (marked worksforme after resolution of bug 149090)
bug 155973 (same symptom as a result of deleting your cache dir)
[Also, note that the links on http://www.westcoastaerospace.com/test/ are
supposed to be broken. That index.html file is just one single file from a
larger body of documentation on an internal server that I cannot make
world-accessable.]
Comment 1•22 years ago
|
||
Confirmed on build 2002090408 on Mac OS 9
so Platform/OS --> All
I can't see anything special with the HTTP-sniffer at
http://webtools.mozilla.org/web-sniffer/ . I tried the same URL in Internet
Explorer 5 and iCab, but it works ok.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Comment 2•22 years ago
|
||
view source has the same problem
Changing character coding also
(Mac OS 9.1, Build 2002090608)
Works with NS4
Comment 3•22 years ago
|
||
Tried with some older trunk versions (All WinME)
2002090904, 2002090404, 2002090208, 2002082804 all have the problem
1.1/20020826 works as expected
Reporter | ||
Comment 4•22 years ago
|
||
Aha! I think I have found something important. I was frustrated to find that
adding or removing even a single letter of that index.html page caused the
problem to go away (I was trying to correct the spelling of "Rebulding") and
then I realized that this particular file is *exactly* 1024 bytes.
Reporter | ||
Comment 5•22 years ago
|
||
works http://www.westcoastaerospace.com/test/1023.txt 1023 bytes
fails http://www.westcoastaerospace.com/test/1024.txt 1024 bytes
works http://www.westcoastaerospace.com/test/1025.txt 1025 bytes
Reporter | ||
Comment 6•22 years ago
|
||
512 byte file http://www.westcoastaerospace.com/test/512.txt does not exhibit
the problem.
Reporter | ||
Comment 7•22 years ago
|
||
neither does 2048 byte file http://www.westcoastaerospace.com/test/2048.txt
Only 1024 byte files seem to have this problem. Amending summary.
Summary: Error message "The file /test/ cannot be found. Please check the location and try again" when page is in cache → When 1024 byte page is in cache, Error message "The file /test/ cannot be found. Please check the location and try again"
Comment 8•22 years ago
|
||
Comment 9•22 years ago
|
||
Comment 10•22 years ago
|
||
After seeing what seems like the same problem on a couple of real-life web pages
(http://slashdot.org/index.pl, http://c2.com/cgi/quickChanges?days=2) I did a
little more testing of various size files. I found that 4096 and 16384 byte
files also have the same problem. The next value in sequence 65536 works fine
as well as 8K and 32K.
To reproduce the problem:
1) Click on attachment
2 [review]) Click on bookmark or enter new URL
3) Hit back button, see error message
(Tested with build 2002091608 WinME)
Updated•22 years ago
|
Keywords: mozilla1.2
Assignee | ||
Comment 11•22 years ago
|
||
1k, 4k, and 16k are decision points in where to store cache entry data. It's
not entirely surprising we break there. I bet we got the math comparisons
wrong. If I'm right, it shouldn't be too hard to fix. Nice catch. Thanks.
Assignee | ||
Comment 12•22 years ago
|
||
The problem occurred when trying to write the cache blocks. The way the cache
block count was calculated had an off by one bug in it, in relation to
CalculateFileIndex().
Comment 13•22 years ago
|
||
Comment on attachment 102205 [details] [diff] [review]
fix 1k, 4k, 16k boundary problem
r=dougt. looks fine.
Attachment #102205 -
Flags: review+
Comment 14•22 years ago
|
||
Comment on attachment 102205 [details] [diff] [review]
fix 1k, 4k, 16k boundary problem
sr=darin
Attachment #102205 -
Flags: superreview+
Assignee | ||
Comment 15•22 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 16•22 years ago
|
||
verified fixed with linux trunk build 2002100911
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•