Project

General

Profile

Actions

Bug #15207

closed

Do Quotacheck on localconf.php update!!!

Added by jholzmann no-lastname-given over 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-11-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

It will happen that your localconf.php is zapped to ZERO size if there is no disk quota left (you upload extension, make updates, BOOOOM). Your localconf.php has gone to Nirwana. There definitely should be a routine that checks if the localconf.php can be rewritten nicely completely successfully perfectly. Or do some backup, at least.

Exhausted quota may occur rather seldomly but if it does - I sware - you are bombed back into stoneage! Especially if you spent hours configuring Realurl and have no backup.

Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr. This feature could save Your life, too. Occasionally. ;)

(issue imported from #M1878)

Actions #1

Updated by Sebastian Kurfuerst over 18 years ago

Hi,
I see your problem, but this quota check would need to be done on every write. I am not sure how to do this. Any thoughts?
Greets, Sebastian

Actions #2

Updated by Martin Kutschker over 18 years ago

Resolution works like this:

Write the new localconf.php as localconf.php_new (or whatever).
Check if all bytes have been written by proper checking error codes.
Remove old localconf.php and rename localconf.php_new to localconf.php.

Sidenote: once a site of mine was blown because of this error. So yes, this shit happens.

Actions #3

Updated by Martin Kutschker about 18 years ago

Fixed in CVS.

Actions

Also available in: Atom PDF