Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin-server does not respect "config" URL parameter #2139

Closed
garrettjstevens opened this issue Jul 19, 2021 · 0 comments
Closed

admin-server does not respect "config" URL parameter #2139

garrettjstevens opened this issue Jul 19, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@garrettjstevens
Copy link
Collaborator

Describe the bug

If you use the config URL param to open up a different config from the default ./config.json, it updates the default config, not the config specified in the URL param.

To Reproduce

jbrowse create jbrowse2
cd jbrowse2/
jbrowse admin-server
  1. Open the URL that admin-server provides, but add a config location, e.g. http://localhost:9090/?adminKey=1ed63244e1&config=test_data_volvox_config.json
  2. Edit the config (e.g. add/remove a track)
  3. Instead of ./test_data/volvox/config.json getting updated, ./config.json gets overwritten with the new volvox config, losing any configuration that was already in that file. The config file might not be valid, either, as it may depend on relative file URLs that are not valid in that location.

Expected behavior

The config specified in the URL should be updated, not the default one

Version:

1.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants