With use_remote_user, the middleware only lets a fixed list of /user paths through and answers every other one with the "Access to Galaxy user controls is disabled" page. Reloading or linking to the permissions, notifications, credentials and external identities pages therefore failed, while navigating to them inside the app worked. Add these client routes to the list; account actions such as login, create and password changes stay blocked.
A POST, PUT or DELETE to a path without a server handler isn't a page load,
so it should keep getting a 404 rather than a 200 with the client app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The catch-all only kicks in when the mapper matches nothing, but the
legacy /{action} and /{controller}/{action} routes match most client
paths. "/", "/histories" and "/admin/users" resolve to a controller with
no such action and 404 instead of serving the client.
The ShortTermStorageManager and related classes should live in their own package eventually and not within galaxy.web nor galaxy.managers as the short term storage microservices it's fairly independent and has way less dependencies than those other packages.
The ShortTermStorageManager is a manager and makes sense to have it live under galaxy.managers instead of galaxy.web.
It will also help reduce the dependency of the manager modules on web related stuff.
Fix:
```
test/unit/web_framework/framework/test_framework_base.py:4
/home/runner/work/galaxy/galaxy/galaxy root/test/unit/web_framework/framework/test_framework_base.py:4: PytestCollectionWarning: cannot collect test class 'TestWebapp' because it has a __init__ constructor
class TestWebapp(WebApplication):
```
Also:
- Use f-string.
- Simplify code using assert.