Opened at 2021-12-22T21:36:20Z
Last modified at 2021-12-22T21:38:01Z
#3852 new defect
500 error from JSON welcome page — at Version 2
Reported by: | meejah | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | undecided |
Component: | code-frontend-web | Version: | n/a |
Keywords: | python3 | Cc: | |
Launchpad Bug: |
Description (last modified by meejah)
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).
Change History (2)
comment:1 Changed at 2021-12-22T21:36:43Z by meejah
- Description modified (diff)
comment:2 Changed at 2021-12-22T21:38:01Z by meejah
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.