teleclimber / Dropserver

An application platform for your personal web services. https://dropserver.org
Apache License 2.0
42 stars 1 forks source link

Check owner is user of appspace and warn in UI if not #103

Open teleclimber opened 1 year ago

teleclimber commented 1 year ago

If you restore an appsapce and the owner is not part of the appspace's dropids, then you get a 500 internal server error and this shows up in the logs:

appspacelogin/v0tokenmanager.go:131 (V0TokenManager, GetForOwner) appspace user dropid not found dropid.dropserver.develop/

But this should have better handling. It's probably same thing as deleting the owner from the list of appsapce users, should the UI ever let you do that.

The UI should warn you that owner is not a user, and it should not allow entering the appspace (unless it's to visit a route that is allowed to the public I suppose)