Closed Bug 190052 Opened 22 years ago Closed 22 years ago

processmail rescanall should unlink data/versioncache when it's done

Categories

(Bugzilla :: Administration, task)

2.17.3
task
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: justdave, Assigned: justdave)

Details

I ran processmail rescanall to fix up lots of bugs with no mail sent on Bugscape. The hour at which data/versioncache gets rebuilt happened to be due at the time, so it rebuilt data/versioncache. Only problem is, I was running as root, and not as the webserver, so data/versioncache is now no longer accessible by the webserver, and it can't overwrite it to make a new one. Since I can't think of any reason an average sysadmin would be running as the webserver user when running processmail rescanall, we should try to prevent this (perhaps chmod and chgrp it based on $webservergroup, but the easy answer is just unlink it and let it get rebuilt the next time someone hits it from the web).
Why do we rebuild the versioncache every hour? Its not like its so complicated that it can get corrupted, or anything... (Alternately, getting rid of the versioncache is on my List)
This is no longer applicable, since you can no longer run "rescanall" as any user other than the webserver user to do it (since you now have to go through sanitycheck.cgi to get to it).
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.