Re: [Django] #32725: Release notes for 2.2.21 are incomplete, or the code is too strict

2021-05-07 Thread Django
#32725: Release notes for 2.2.21 are incomplete, or the code is too strict
+--
 Reporter:  Ned Batchelder  |Owner:  nobody
 Type:  Uncategorized   |   Status:  closed
Component:  Uncategorized   |  Version:  2.2
 Severity:  Normal  |   Resolution:  duplicate
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Changes (by Ned Batchelder):

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


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.1ea194f5dde99f02c2dd0bee8a862a44%40djangoproject.com.


Re: [Django] #32725: Release notes for 2.2.21 are incomplete, or the code is too strict

2021-05-07 Thread Django
#32725: Release notes for 2.2.21 are incomplete, or the code is too strict
+--
 Reporter:  Ned Batchelder  |Owner:  nobody
 Type:  Uncategorized   |   Status:  new
Component:  Uncategorized   |  Version:  2.2
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by Ned Batchelder):

 Looks like this is a dup of https://code.djangoproject.com/ticket/32718

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.ba2c312a64a0cd2ec210f498a6454621%40djangoproject.com.


Re: [Django] #32725: Release notes for 2.2.21 are incomplete, or the code is too strict

2021-05-07 Thread Django
#32725: Release notes for 2.2.21 are incomplete, or the code is too strict
+--
 Reporter:  Ned Batchelder  |Owner:  nobody
 Type:  Uncategorized   |   Status:  new
Component:  Uncategorized   |  Version:  2.2
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Description changed by Ned Batchelder:

Old description:

> It seems to me that the release note for 2.2.21 is incomplete.  It says,
> "Specifically, empty file names and paths with dot segments will be
> rejected."
>
> But it's stricter than that: any path component causes the path to be
> rejected:
>
> {{{
> if name != os.path.basename(name):
> raise SuspiciousFileOperation("File name '%s' includes path
> elements" % name)
> }}}
>

> Is this level of strictness necessary?

New description:

 It seems to me that the release note for 2.2.21 is incomplete.  It says,
 "Specifically, empty file names and paths with dot segments will be
 rejected."

 But it's stricter than that: any path component causes the path to be
 rejected:

 {{{
 if name != os.path.basename(name):
 raise SuspiciousFileOperation("File name '%s' includes path elements"
 % name)
 }}}


 Is this level of strictness necessary?

--

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.077b63df7d46b956f361fcb5724c4a49%40djangoproject.com.


Re: [Django] #32725: Release notes for 2.2.21 are incomplete, or the code is too strict

2021-05-07 Thread Django
#32725: Release notes for 2.2.21 are incomplete, or the code is too strict
+--
 Reporter:  Ned Batchelder  |Owner:  nobody
 Type:  Uncategorized   |   Status:  new
Component:  Uncategorized   |  Version:  2.2
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Description changed by Ned Batchelder:

Old description:

> It seems to me that the release note for 2.2.21 is incomplete.  It says,
> "Specifically, empty file names and paths with dot segments will be
> rejected."
>
> But it's stricter than that: any path component causes the path to be
> rejected:
>
> ```
> if name != os.path.basename(name):
> raise SuspiciousFileOperation("File name '%s' includes path
> elements" % name)
> ```
>
> Is this level of strictness necessary?

New description:

 It seems to me that the release note for 2.2.21 is incomplete.  It says,
 "Specifically, empty file names and paths with dot segments will be
 rejected."

 But it's stricter than that: any path component causes the path to be
 rejected:

 {{{
 if name != os.path.basename(name):
 raise SuspiciousFileOperation("File name '%s' includes path
 elements" % name)
 }}}


 Is this level of strictness necessary?

--

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.b4413dab26f714697e0012bcf5fc9c22%40djangoproject.com.


Re: [Django] #32725: Release notes for 2.2.21 are incomplete, or the code is too strict

2021-05-07 Thread Django
#32725: Release notes for 2.2.21 are incomplete, or the code is too strict
+--
 Reporter:  Ned Batchelder  |Owner:  nobody
 Type:  Uncategorized   |   Status:  new
Component:  Uncategorized   |  Version:  2.2
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Description changed by Ned Batchelder:

Old description:

> It seems to me that the release note for 2.2.21 is incomplete.  It says,
> "Specifically, empty file names and paths with dot segments will be
> rejected."
>
> But it's stricter than that: any path component causes the path to be
> rejected:
>
> > if name != os.path.basename(name):
> > raise SuspiciousFileOperation("File name '%s' includes path
> elements" % name)
>
> Is this level of strictness necessary?

New description:

 It seems to me that the release note for 2.2.21 is incomplete.  It says,
 "Specifically, empty file names and paths with dot segments will be
 rejected."

 But it's stricter than that: any path component causes the path to be
 rejected:

 ```
 if name != os.path.basename(name):
 raise SuspiciousFileOperation("File name '%s' includes path
 elements" % name)
 ```

 Is this level of strictness necessary?

--

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.23c632eebe8e1ccae315925b8f7a99dc%40djangoproject.com.