500 error from JSON welcome page #3852

Open
opened 2021-12-22 21:36:20 +00:00 by meejah · 0 comments
Owner

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).

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).
meejah added the
code-frontend-web
major
defect
n/a
labels 2021-12-22 21:36:20 +00:00
meejah added this to the undecided milestone 2021-12-22 21:36:20 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#3852
No description provided.