tridentli / trident

Trident is a trusted and secure communication platform for enabling better communication between groups of trusted parties
https://trident.li
Apache License 2.0
20 stars 9 forks source link

[Bug] Mailing Lists created with Capital Letters result in 404 errors, though DB shows the mailing list created. #150

Open teward opened 4 years ago

teward commented 4 years ago

When creating Trust Group Mailing lists, there is a generation issue when you use capital letters in the Left Hand Side prompt for "List Name"

In the Database, the lists are properly created in the mailinglists DB with the capital letters on the LHS. However, the front-end Trident system does NOT properly process the requests and 404s, because it doesn't seem to be able to handle the Capital Letters in the link generation. Concurrently, tcli doesn't seem to know how to process this either.

Creating a mailing list with the capital letters has the frontend showing this after hitting "Create" (I put "Networking" in for the test name):

image

The "No entry in mailinglist with that ID" issue seems to be a Trident specific issue, because in the DB, we see it actually exists:

image

... the only explanation here being that Trident is passing the lowercase identifier to the backend where the lowercase identifier doesn't exist.

To that end, I propose that we force list creation with the first "Add Mailing List" New page such that whatever is entered is forced to lower case before it's actually created or passed along; this would enforce things in a way that both Trident and the DB can be happy.