Thu Sep 10 09:32:28 2020 UTC ()
py-django2: updated to 2.2.16

Django 2.2.16 fixes two security issues and two data loss bugs in 2.2.15.

CVE-2020-24583: Incorrect permissions on intermediate-level directories on Python 3.7+

On Python 3.7+, FILE_UPLOAD_DIRECTORY_PERMISSIONS mode was not applied to intermediate-level directories created in the process of uploading files and to intermediate-level collected static directories when using the collectstatic management command.

You should review and manually fix permissions on existing intermediate-level directories.

CVE-2020-24584: Permission escalation in intermediate-level directories of the file system cache on Python 3.7+

On Python 3.7+, the intermediate-level directories of the file system cache had the system窶冱 standard umask rather than 0o077 (no group or others permissions).

Bugfixes

Fixed a data loss possibility in the select_for_update(). When using related fields pointing to a proxy model in the of argument, the corresponding model was not locked.
Fixed a data loss possibility, following a regression in Django 2.0, when copying model instances with a cached fields value.

Django 2.2.15 fixes two bugs in 2.2.14.

Bugfixes

Allowed setting the SameSite cookie flag in HttpResponse.delete_cookie().
Fixed crash when sending emails to addresses with display names longer than 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+.


(adam)
diff -r1.29 -r1.30 pkgsrc/www/py-django2/Makefile
diff -r1.27 -r1.28 pkgsrc/www/py-django2/distinfo

cvs diff -r1.29 -r1.30 pkgsrc/www/py-django2/Attic/Makefile (expand / switch to context diff)
--- pkgsrc/www/py-django2/Attic/Makefile 2020/07/08 15:11:23 1.29
+++ pkgsrc/www/py-django2/Attic/Makefile 2020/09/10 09:32:28 1.30
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.29 2020/07/08 15:11:23 adam Exp $
+# $NetBSD: Makefile,v 1.30 2020/09/10 09:32:28 adam Exp $
 
-DISTNAME=	Django-2.2.14
+DISTNAME=	Django-2.2.16
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	www python
 MASTER_SITES=	https://www.djangoproject.com/m/releases/${PKGVERSION_NOREV:R}/

cvs diff -r1.27 -r1.28 pkgsrc/www/py-django2/Attic/distinfo (expand / switch to context diff)
--- pkgsrc/www/py-django2/Attic/distinfo 2020/07/08 15:11:23 1.27
+++ pkgsrc/www/py-django2/Attic/distinfo 2020/09/10 09:32:28 1.28
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.27 2020/07/08 15:11:23 adam Exp $
+$NetBSD: distinfo,v 1.28 2020/09/10 09:32:28 adam Exp $
 
-SHA1 (Django-2.2.14.tar.gz) = c8205f8572c0ef9f16aa3e0594e637b3b7954818
+SHA1 (Django-2.2.16.tar.gz) = db3c05849bd966b427c8af05aff2035811bf383f
-RMD160 (Django-2.2.14.tar.gz) = 71fd94d0db03a21b09d8f23d057adaab06780e33
+RMD160 (Django-2.2.16.tar.gz) = 5493e53569d93175a69d50a4c9386db664040827
-SHA512 (Django-2.2.14.tar.gz) = 48ad065df161300920abe0c28c3f79cebe536de00fe60c8a7633caee149e0632aa564a848172bad0f254f2a98194cb625a5c169e51a89f3cab95c1213cfe485d
+SHA512 (Django-2.2.16.tar.gz) = eabcdfc17e27c579001e4739268abd13bebbb018db1a7dbe4fb8482d32320b85bd16b3b18428084c0df947094f23f7cb4b12a3a55bc370748d7d8746af22bc3b
-Size (Django-2.2.14.tar.gz) = 9022051 bytes
+Size (Django-2.2.16.tar.gz) = 8884774 bytes