web2py 2.25.1

85 views
Skip to first unread message

Massimo Di Pierro

unread,
Oct 8, 2023, 6:59:27 PM10/8/23
to web2py-users
Hello everybody,

A new version of web2py, 2.25.1, is out. 

It contains some bug fixes, #2468 #2468 #2236, http headers sanitization, and fixes this vulenarbility https://jvn.jp/en/jp/JVN80476432/ (to be published soon).

The vulnerabily does not affect most users. It is only in the optional MessageBoxHandler for logging when using Tkinter. I do know think anybody is was using it.

I am reviewing some old PRs and I may have another version out today including those fixes as well. Sorry I have been slow but as you know, I am spending more time on py4web than web2py these days. 

Massimo


CarlosDB

unread,
Oct 9, 2023, 8:38:11 AM10/9/23
to web2py-users
A fantastic job.
Thank you very much.

Carlos.

xgp.l...@gmail.com

unread,
Oct 18, 2023, 4:37:30 PM10/18/23
to web2py-users
Hi Massimo,

Getting this redirecting from nginx to uwsgi_pass http port.

Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/main.py", line 562, in wsgibase
    return http_response.to(responder, env=env)
  File "/home/www-data/web2py/gluon/http.py", line 129, in to
    responder(status, rheaders)
TypeError: http header value must be a string


Regards,

xgp.l...@gmail.com

unread,
Oct 18, 2023, 4:49:34 PM10/18/23
to web2py-users
Hi,

Modified the code to this:

  for k, v in iteritems(headers):
            if isinstance(v, list):
                rheaders += [(k, str(item)) for item in v]
            else:
                rheaders.append((k, str(v)))

This was the code from version 2.24.1

Dont know if this is correct.


Cheers,

CarlosDB

unread,
Oct 18, 2023, 6:32:26 PM10/18/23
to web2py-users
Hello.
I believe this error is related to a thread I opened a few days ago:

" File Download Broken after Pull Request #2471 "

Carlos.
Reply all
Reply to author
Forward
0 new messages