Skip to content

Configuration API returns unexpected values for by_host option #16454

Description

@ElectronicBlueberry

Describe the bug
/api/configuration does not return the correct themes, if the themes are set per host.
This behavior leads to the themes not being selectable for users on subdomain configurations.

Galaxy Version and/or server at which you observed the bug
Galaxy Version: 23.0 - dev

To Reproduce
Steps to reproduce the behavior:

  1. Set themes_config_file_by_host in the galaxy configuration to two different hosts. localhost and 127.0.0.1 can be used for local testing
  2. Create two different theme files for these hosts
  3. Run galaxy
  4. Go to each of these URLs, and see that the default theme for each configuration is applied
  5. call /api/configuration for each of these URLs, and observe that the themes do not match the set, or displayed themes

Expected behavior
/api/configuration reflects the correct configuration per host

Additional Context
The configuration inlined in the client html behaves as expected (see #16455), which is why the default theme is applied correctly.

Metadata

Metadata

Assignees

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions