14 Commits
Author SHA1 Message Date
Alireza Heidari c07903755b Let remote users reload the client User Preferences pages
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.
2026-11-05 17:02:59 +01:00
mvdbeekandClaude Opus 5.5 10e8dbdf0c Only fall back to the client for GET and HEAD
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>
2026-10-08 17:57:39 +02:00
Dannon Baker d3ae493412 Add failing tests for client paths that match a route but have no handler
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.
2026-10-07 19:21:09 -04:00
mvdbeek 6fd139fdc2 Merge branch 'release_26.1' into dev
# Conflicts:
#	lib/galaxy/jobs/runners/__init__.py
#	lib/galaxy/managers/tools.py
#	lib/galaxy_test/api/test_display_applications.py
2026-09-23 18:43:01 +02:00
mvdbeek 3024a77226 Preserve numeric encoded history IDs in form submissions 2026-09-22 13:03:07 +02:00
davelopez c416ef41ad Move STS unit tests to test/unit/app
Temporarily until we create its own package.
2023-11-30 17:01:29 +01:00
davelopez 6f2b4ff559 Move short_term_storage related classes to its own path
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.
2023-11-30 17:01:29 +01:00
davelopez d33bd688cd Move short_term_storage related classes to managers
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.
2023-11-30 16:42:04 +01:00
davelopez e460fb5f8d Add unit test for STS metadata lost 2023-03-07 11:56:15 +01:00
davelopez efcf76e3b5 Return 404 when target expires or doesn't exists 2022-12-02 09:57:29 +01:00
Nicola Soranzo 15ba0f8747 Fix warning in pytest collection
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.
2022-05-12 16:38:15 +01:00
John Chilton 800d49c467 Short term storage infrastructure. 2022-04-13 09:52:51 -04:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
John Chilton 1e09b7775a Move test/unit/web -> test/unit/web_framework 2020-07-06 11:22:28 -04:00