ceph / ceph-iscsi

Ceph iSCSI tools
GNU General Public License v3.0
62 stars 59 forks source link

disable JSONIFY_PRETTYPRINT_REGULAR in flask app config #263

Closed lxbsz closed 2 years ago

lxbsz commented 2 years ago

The request.is_xhr method has been deprecated & removed, as it was unreliable.

Signed-off-by: Xiubo Li xiubli@redhat.com

lxbsz commented 2 years ago

I don't understand why this issue is being hit now. Since we are using distro packages, does it mean that python3-werkzeug package got upgraded to >= 1.0.0 but python3-flask somehow did not? Flask took care of it in 2017 in pallets/flask#2193...

Not very sure, it seems due to some reason the distro was using the versions that the is_xhr is just marked as deprecated but still there and for recent release switched to werkzeug >= 1.0.0.