Re: [Django] #17812: Symlink link to media files is deleted after calling of delete method of ImageField if value of it field is None.

2013-09-20 Thread Django
#17812: Symlink link to media files is deleted after calling of delete method of
ImageField if value of it field is None.
--+
 Reporter:  piterimov@…   |Owner:  nobody
 Type:  Bug   |   Status:  closed
Component:  File uploads/storage  |  Version:  1.3
 Severity:  Normal|   Resolution:  fixed
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  1 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by timo):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 It looks like ea3fe78a9d742904f6902cdc353a11d795418105 will prevent this.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/077.5901908997ee15485dc842725d63c193%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #17812: Symlink link to media files is deleted after calling of delete method of ImageField if value of it field is None.

2012-03-11 Thread Django
#17812: Symlink link to media files is deleted after calling of delete method of
ImageField if value of it field is None.
--+
 Reporter:  piterimov@…   |Owner:  nobody
 Type:  Bug   |   Status:  reopened
Component:  File uploads/storage  |  Version:  1.3
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  1 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by ramiro):

 * needs_tests:  0 => 1
 * stage:  Unreviewed => Accepted


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #17812: Symlink link to media files is deleted after calling of delete method of ImageField if value of it field is None.

2012-03-11 Thread Django
#17812: Symlink link to media files is deleted after calling of delete method of
ImageField if value of it field is None.
-+-
 Reporter:  piterimov@…  |Owner:  nobody
 Type:  Bug  |   Status:  reopened
Component:  File |  Version:  1.3
  uploads/storage|   Resolution:
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by anonymous):

 * has_patch:  0 => 1


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #17812: Symlink link to media files is deleted after calling of delete method of ImageField if value of it field is None.

2012-03-10 Thread Django
#17812: Symlink link to media files is deleted after calling of delete method of
ImageField if value of it field is None.
-+-
 Reporter:  piterimov@…  |Owner:  nobody
 Type:  Bug  |   Status:  reopened
Component:  File |  Version:  1.3
  uploads/storage|   Resolution:
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by anonymous):

 * status:  closed => reopened
 * resolution:  worksforme =>


Comment:

 It's happening when I try to delete image by {{{ image.delete() }}}
 method.

 It's better to show by an example.
 Suppose for example we have some model:

 {{{
 class Image(models.Model):
 image = models.ImageField()
 class Meta:
 app_label = 'image'
 }}}

 Then we try to do following:

 {{{
 image = Image()
 image.image.delete()
 }}}

 Thereafter symlink to media files will be deleted.

 Also I was mistaken about the {{{ FileField }}}: This is happening for it
 too.

 Apparently this is happening because the name of image field {{{
 image.image.name }}} is a blank string {{{ '' }}}.
 Therefore {{{ FileSystemStorage.delete }}} method gets path to media
 symlink and deletes it.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #17812: Symlink link to media files is deleted after calling of delete method of ImageField if value of it field is None.

2012-03-04 Thread Django
#17812: Symlink link to media files is deleted after calling of delete method of
ImageField if value of it field is None.
-+-
 Reporter:  piterimov@…  |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  File |  Version:  1.3
  uploads/storage|   Resolution:
 Severity:  Normal   |  worksforme
 Keywords:   | Triage Stage:
Has patch:  0|  Unreviewed
  Needs tests:  0|  Needs documentation:  0
Easy pickings:  0|  Patch needs improvement:  0
 |UI/UX:  0
-+-
Changes (by aaugustin):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Here's what I understand from your report (I see you aren't a native
 speaker):

 - `settings.MEDIA_ROOT` is a symlink — for instance, `/var/www/media ->
 /mnt/storage/media`
 - you save a model that has an `ImageField`, without providing any value —
 `instance = MyModel.objects.get(pk=1); instance.my_image = None;
 instance.save()`
 - the symlink gets deleted

 I tried that, and I can't reproduce the problem. To be honest, it sounds
 extremely unlikely that Django would delete a directory or a symlink like
 that.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #17812: Symlink link to media files is deleted after calling of delete method of ImageField if value of it field is None.

2012-03-02 Thread Django
#17812: Symlink link to media files is deleted after calling of delete method of
ImageField if value of it field is None.
-+-
 Reporter:  piterimov@…  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  File |  Version:  1.3
  uploads/storage|   Resolution:
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by anonymous):

 * needs_docs:   => 0
 * component:  Uncategorized => File uploads/storage
 * needs_tests:   => 0
 * needs_better_patch:   => 0


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.