[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3852: 500 error from JSON welcome page
Tahoe-LAFS
trac at tahoe-lafs.org
Wed Dec 22 21:38:01 UTC 2021
#3852: 500 error from JSON welcome page
-----------------------------------+-----------------------
Reporter: meejah | Owner:
Type: defect | Status: new
Priority: major | Milestone: undecided
Component: code-frontend-web | Version: n/a
Resolution: | Keywords: python3
Launchpad Bug: |
-----------------------------------+-----------------------
Description changed by meejah:
Old description:
> In python2, you can compare a number with None. In python3, you cannot.
>
> The JSON version of the welcome page uses sorting on `.items()` in e.g.
> `allmydata/web/root.py:301` which sometimes contain `None`. Running under
> Python3, this causes a 500 error if you access the JSON welcome page.
New description:
In python2, you can compare a number with None. In python3, you cannot.
The JSON version of the welcome page uses sorting on `.items()` in e.g.
`allmydata/web/root.py:301` which sometimes contain `None`. Running under
Python3, this causes a 500 error if you access the JSON welcome page.
To reproduce, visit the WebUI root page with `?t=json` when there's at
least one storage-server that is not currently connected (or is reporting
"None" as available space).
--
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3852#comment:2>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list