Comments (8)
@reitermarkus thank you for reporting this issue.
from django-maintenance-mode.
Depends on fabiocaccamo/python-fsutil#91
from django-maintenance-mode.
@reitermarkus fixed in 0.21.0
version.
from django-maintenance-mode.
Thanks! Although I would remove
since this can again have the same race condition and pollute user directories with temporary files.
from django-maintenance-mode.
@reitermarkus for the temp file directory I used the same file directory to ensure that the temporary file is created on the same filesystem of the final file and guarantee atomicity of the replace operation, otherwise there is a potential risk of data corruption or loss.
What do you think is best to do here?
from django-maintenance-mode.
Given that the state can only be 0/1, maybe change to simply checking the existence instead of the contents of the file.
from django-maintenance-mode.
The local file backend uses the same logic as the other backends.
from django-maintenance-mode.
@reitermarkus check fabiocaccamo/python-fsutil@11fbc5e
from django-maintenance-mode.
Related Issues (20)
- Add new setting to expire the user session HOT 4
- ModuleNotFoundError: 'utils.middleware.maintenance' While running testcases HOT 1
- Add Django Cache Backend HOT 2
- Support JSON content type HOT 2
- `manage.py maintenance_mode on/off` changes permissions of state file HOT 12
- Inherit state file permissions from the directory where it is created.
- File Write Errors on Windows Systems HOT 6
- maintenance_mode_state file always gets deleted under Windows HOT 3
- Logout all users except superusers HOT 2
- FileNotFoundError with default settings HOT 1
- IGNORE_IP not working HOT 6
- CommandError: Unable to write state file at: maintenance_mode_state.txt HOT 1
- Working fine on dev box but not functioning on test box with virtual directory HOT 11
- force_maintenance_mode_off doesn't work for AJAX requests HOT 1
- Problem with ipware version HOT 1
- Unable to use with s3 storage HOT 4
- Add maintenance mode toggler in the admin site HOT 1
- MAINTENANCE_MODE_STATE_FILE_PATH setting bug HOT 2
- Drop `Python < 3.8` and `Django < 2.2` support.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-maintenance-mode.