Closed Bug 289 Opened 27 years ago Closed 23 years ago

Cache database changed but files are not (19980429 as well)

Categories

(Core :: Networking: Cache, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: tenthumbs, Assigned: gagan)

Details

Created by (tenthumbs@cybernex.net) on Friday, May 1, 1998 12:43:40 PM PDT Additional Details : It looks like the problem's in NET_CleanupCacheDirectory in lib/libnet/mkcache.c. I've added some instrumentation and now I seen the following when I run mozilla for a little bit. NET_CleanupCacheDirectory cleaning "/home/10thumbs/.mozilla/cache" with prefix "cache" cleaning up cache directory of unknown cache files Got filename: 0B/cache354A190B0003806 from DBT Got filename: 0D/cache354A190D0013806.gif from DBT Got filename: 0E/cache354A190E0033806 from DBT Got filename: 0E/cache354A190E0043806.dat from DBT Got filename: 13/cache354A19130053806.html from DBT Got filename: 18/cache354A19180063806.html from DBT Got filename: 07/cache354A19270083806.htm from DBT Got filename: 0E/cache354A190E0023806.jpg from DBT Got filename: 19/cache354A19190073806.jpg from DBT XP_FileRemove fails on /19/cache354A19190073806.jpg; result=-1; errno=2 Unknown cache file /19/cache354A19190073806.jpg found! -- deleteing... XP_FileRemove fails on /0B/cache354A190B0003806; result=-1; errno=2 Unknown cache file /0B/cache354A190B0003806 found! -- deleteing... XP_FileRemove fails on /18/cache354A19180063806.html; result=-1; errno=2 Unknown cache file /18/cache354A19180063806.html found! -- deleteing... XP_FileRemove fails on /0D/cache354A190D0013806.gif; result=-1; errno=2 Unknown cache file /0D/cache354A190D0013806.gif found! -- deleteing... XP_FileRemove fails on /13/cache354A19130053806.html; result=-1; errno=2 Unknown cache file /13/cache354A19130053806.html found! -- deleteing... XP_FileRemove fails on /0E/cache354A190E0023806.jpg; result=-1; errno=2 Unknown cache file /0E/cache354A190E0023806.jpg found! -- deleteing... XP_FileRemove fails on /07/cache354A19270083806.htm; result=-1; errno=2 Unknown cache file /07/cache354A19270083806.htm found! -- deleteing... XP_FileRemove fails on /0E/cache354A190E0043806.dat; result=-1; errno=2 Unknown cache file /0E/cache354A190E0043806.dat found! -- deleteing... XP_FileRemove fails on /0E/cache354A190E0033806; result=-1; errno=2 Unknown cache file /0E/cache354A190E0033806 found! -- deleteing... Deleting 3 unneeded cache entries Reseting number of files in cache to: 6 NET_CleanupCacheDirectory asks net_GetFilenameInCacheDBT which returns a correct relative pathname. NET_CleanupCacheDirectory then mangles it somewhere by prepending a '/' which causes XP_FileRemove to fail. This wouldn't be so bad but NET_CleanupCacheDirectory ignores the return value of XP_FileRemove and removes the filename from the cache database. Updated by (tenthumbs@cybernex.net) on Tuesday, May 19, 1998 4:54:41 AM PDT Additional Details : The internal function net_cache_recursive_file_finder doesn't work as advertised if the base_dir parameter does not end with a "/". This causes all teh problems seen later.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → LATER
cache is in the process of changing pretty significantly. I am marking this for later till the new cache architecture lands.
Fine by me. You should be aware I've verified this bug in Unix browsers as far back as 2.02.
Component: NetLib → Networking Library
Product: MozillaClassic → Browser
QA Contact: paulmac
Target Milestone: M9
Version: 1998-04-08 → other
This may be an old bug...but gagan, can you confirm? Or should er retest with latest?
Changing all Networking Library/Browser bugs to Networking-Core component for Browser. Occasionally, Bugzilla will burp and cause Verified bugs to reopen when I do this in a bulk change. If this happens, I will fix. ;-)
Status: RESOLVED → VERIFIED
marking this verified as later, we will re-open if it is still a problem when the new cache lands here in a couple weeks
Bulk move of all Networking-Core (to be deleted component) bugs to new Networking component.
LATER is deprecated per bug 35839.
Status: VERIFIED → REOPENED
Resolution: LATER → ---
WFM per comments.
Status: REOPENED → RESOLVED
Closed: 26 years ago23 years ago
Resolution: --- → WORKSFORME
V
Status: RESOLVED → VERIFIED
Component: Networking → Networking: Cache
You need to log in before you can comment on or make changes to this bug.