Opened 8 years ago
Last modified 7 years ago
#28540 closed Cleanup/optimization
When you save three or more ImageField in admin file perm = 0o600 — at Initial Version
| Reported by: | Yaroslav Demidenko | Owned by: | nobody | 
|---|---|---|---|
| Component: | Documentation | Version: | 1.11 | 
| Severity: | Normal | Keywords: | ImageField, save, permissions | 
| Cc: | Simen Heggestøyl, Keryn Knight | Triage Stage: | Ready for checkin | 
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
This bug find in prod server (nginx, supervisor + gunicorn)
I have models:
MainModel() and 
SubModel():
main_id = FK(MainModel)
im1 = ImageField()
im2 = ImageField()
im3 = ImageField()
When I fill SubModel object in admin (as InlineAdmin) and click save button, all images are saved, but permissions == 0600.
If I fill any two imgs (or one), all is well.
Django 1.10.5 - this bug not found.
Sorry for my English.
  Note:
 See   TracTickets
 for help on using tickets.