Skip to contentSkip to conversation

python-webpy: needs hashlib support in python

PATCH New Peter Korsgaard 3 participants 9 messages Apr 4, 2018 – Apr 11, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-webpy: needs hashlib support in python

webpy uses hashlib for session handling, so ensure it is available:

web/session.py:    import hashlib
web/session.py:    sha1 = hashlib.sha1
---
 package/python-webpy/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/python-webpy/Config.in +1 -0
index 12dbe61723..5f4df7832b 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_PYTHON_WEBPY
 	bool "python-webpy"
 	depends on BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_HASHLIB
 	help
 	  web.py is a web framework for Python that is as simple as it
 	  is powerful.
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 python-webpy: needs hashlib support in python

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

webpy uses hashlib for session handling, so ensure it is available:

web/session.py:    import hashlib
web/session.py:    sha1 = hashlib.sha1

Committed to 2018.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/2 python-webpy: needs hashlib support in python

In reply to Peter Korsgaard

Hello,

Quoted 9 lines · Peter Korsgaard

webpy uses hashlib for session handling, so ensure it is available:

web/session.py:    import hashlib
web/session.py:    sha1 = hashlib.sha1
---
 package/python-webpy/Config.in | 1 +
 1 file changed, 1 insertion(+)

Both applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 1/2 python-webpy: needs hashlib support in python

In reply to Peter Korsgaard
Quoted 15 lines · Peter Korsgaard

webpy uses hashlib for session handling, so ensure it is available:

web/session.py:    import hashlib
web/session.py:    sha1 = hashlib.sha1
---
 package/python-webpy/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/python-webpy/Config.in +0 -0
index 12dbe61723..5f4df7832b 100644

package/python-webpy/Config.in line 4

Quoted 4 lines
package/python-webpy/Config.in +1 -0
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_PYTHON_WEBPY
 	bool "python-webpy"
 	depends on BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_HASHLIB
 # runtime ?

Regards,
Arnout

Quoted 4 lines
package/python-webpy/Config.in +0 -0
 	help
 	  web.py is a web framework for Python that is as simple as it
 	  is powerful.
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#4 lore raw

PATCH 1/2 python-webpy: needs hashlib support in python

Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle <[email protected]> writes:

Quoted 10 lines · Peter Korsgaard

webpy uses hashlib for session handling, so ensure it is available:

web/session.py:    import hashlib
web/session.py:    sha1 = hashlib.sha1

---
package/python-webpy/Config.in | 1 +

1 file changed, 1 insertion(+)
Quoted 11 lines

package/python-webpy/Config.in line 4

Quoted 9 lines
package/python-webpy/Config.in +0 -0
index 12dbe61723..5f4df7832b 100644
@@ -1,6 +1,7 @@

config BR2_PACKAGE_PYTHON_WEBPY
bool "python-webpy"
depends on BR2_PACKAGE_PYTHON

package/python-webpy/Config.in +1 -0
+	select BR2_PACKAGE_PYTHON_HASHLIB
 # runtime ?

I argued about that as well, but given that it is a sub option of python (so not something you can add to _DEPENDENCIES anyway), and (host-)python is a build time dependency it isn't really black / white and I decided to not add it.

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 1/2 python-webpy: needs hashlib support in python

In reply to Peter Korsgaard
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

webpy uses hashlib for session handling, so ensure it is available:

web/session.py:    import hashlib
web/session.py:    sha1 = hashlib.sha1

Committed to 2017.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#6 lore raw

PATCH 2/2 python-webpy: security bump to version 0.39

In reply to Peter Korsgaard

From the changelog:

2018-02-28 0.39
* Fixed a security issue with the form module (tx Orange Tsai)
* Fixed a security issue with the db module (tx Adri?n Brav and Orange Tsai)

2016-07-08 0.38
..
* Fixed a potential remote exeution risk in reparam (tx Adri?n Brav)

License files are still not included on pypi, so continue to use the git repo. Upstream has unfortunately not tagged 0.39, so use the latest commit on the 0.39 branch. A request to fix this has been submitted:

https://github.com/webpy/webpy/issues/449

0.39 now uses setuptools, so change the _SETUP_TYPE.

Add hashes for the license files.

---
 package/python-webpy/python-webpy.hash | 4 +++-
 package/python-webpy/python-webpy.mk   | 5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)
package/python-webpy/python-webpy.hash +3 -1
index 0e0a8d0fb8..30a14f4705 100644
@@ -1,2 +1,4 @@
 # Locally computed
-sha256  c3cb8930739294103b1ad109e5fd1d0efae67c06d5b6d59fce5b5a2ee6b21624  python-webpy-webpy-0.37.tar.gz
+sha256  e17ac483846fb15629c76c43cf64c0b65eac3c870dca2251801b459b1e4e12b8  python-webpy-6df75fe581e0e838d28334d5c53f52421560d38b.tar.gz
+sha256  3826fd531a9b904841f5e3560fcda7e93f2ab8d11ef124ec65e10625efa26c34  LICENSE.txt
+sha256  7347fd17bfd33c4093c31dc77076733e1e0150ce8c13296c56dc042bbecede84  web/wsgiserver/LICENSE.txt
package/python-webpy/python-webpy.mk +3 -2
index 8bcc8ec37f..1e67cd6fd8 100644
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-PYTHON_WEBPY_VERSION = webpy-0.37
+# corresponds to 0.39
+PYTHON_WEBPY_VERSION = 6df75fe581e0e838d28334d5c53f52421560d38b
 PYTHON_WEBPY_SITE = $(call github,webpy,webpy,$(PYTHON_WEBPY_VERSION))
-PYTHON_WEBPY_SETUP_TYPE = distutils
+PYTHON_WEBPY_SETUP_TYPE = setuptools
 PYTHON_WEBPY_LICENSE = Public Domain, CherryPy License
 PYTHON_WEBPY_LICENSE_FILES = LICENSE.txt web/wsgiserver/LICENSE.txt
 
Signature · 1 line
2.11.0
#7 lore raw

PATCH 2/2 python-webpy: security bump to version 0.39

Quoted 15 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

From the changelog:
2018-02-28 0.39
* Fixed a security issue with the form module (tx Orange Tsai)
* Fixed a security issue with the db module (tx Adri?n Brav and Orange Tsai)

2016-07-08 0.38
..
* Fixed a potential remote exeution risk in reparam (tx Adri?n Brav)

License files are still not included on pypi, so continue to use the git repo. Upstream has unfortunately not tagged 0.39, so use the latest commit on the 0.39 branch. A request to fix this has been submitted:

Quoted 7 lines

https://github.com/webpy/webpy/issues/449

0.39 now uses setuptools, so change the _SETUP_TYPE.

Add hashes for the license files.

Committed to 2018.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#8 lore raw

PATCH 2/2 python-webpy: security bump to version 0.39

In reply to Peter Korsgaard
Quoted 15 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

From the changelog:
2018-02-28 0.39
* Fixed a security issue with the form module (tx Orange Tsai)
* Fixed a security issue with the db module (tx Adri?n Brav and Orange Tsai)

2016-07-08 0.38
..
* Fixed a potential remote exeution risk in reparam (tx Adri?n Brav)

License files are still not included on pypi, so continue to use the git repo. Upstream has unfortunately not tagged 0.39, so use the latest commit on the 0.39 branch. A request to fix this has been submitted:

Quoted 7 lines

https://github.com/webpy/webpy/issues/449

0.39 now uses setuptools, so change the _SETUP_TYPE.

Add hashes for the license files.

Committed to 2017.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard