You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When galaxy generates token for gxit, the token is 32 chars long, if interactivetools_shorten_url is false.
This token should be 10 chars long when interactivetools_shorten_url is true (as it is in the url).
So, when we try to access a gxit located at: xxxxxxxxxxxxxxxx-0123456789.interactivetool.domain
the gx-it-proxy tries to find the token 0123456789.
But what is written in the sqlite file is the 32 chars long token and gx-it-proxy fails with No target found for xxxxxxxxxxxxxxxx-0123456789.interactivetool.domain GET /
Galaxy Version and/or server at which you observed the bug
Galaxy Version: 22.01
Commit: origin/release_22.01 - 7a9e83c
To Reproduce
Steps to reproduce the behavior:
I deactivated gx-it-proxy in config, so I could run it from terminal (helped me find the source of the bug)
set interactivetools_shorten_url to true (in config/galaxy.yml)
run a interactive tool
(they work when interactivetools_shorten_url is false)
Expected behavior
Iteractive tool runs,
galaxy transferts token using sqlite file
gx-it-proxy reads it and proxies the gxit
the gxit is served and accessible
Additional context
Bug found on a server, but reproduced in dev env (commit 6db3224)
I think it can be fixed in /lib/galaxy/managers/interactivetool.py:InteractiveToolSqlite.save, where the config should be accessed to know if the token have to be cut down to 10 chars.
Thank you!
The text was updated successfully, but these errors were encountered:
Describe the bug
When galaxy generates token for gxit, the token is 32 chars long, if
interactivetools_shorten_url
isfalse
.This token should be 10 chars long when
interactivetools_shorten_url
istrue
(as it is in the url).So, when we try to access a gxit located at:
xxxxxxxxxxxxxxxx-0123456789.interactivetool.domain
the gx-it-proxy tries to find the token
0123456789
.But what is written in the sqlite file is the 32 chars long token and gx-it-proxy fails with
No target found for xxxxxxxxxxxxxxxx-0123456789.interactivetool.domain GET /
Galaxy Version and/or server at which you observed the bug
Galaxy Version: 22.01
Commit: origin/release_22.01 - 7a9e83c
To Reproduce
Steps to reproduce the behavior:
I deactivated gx-it-proxy in config, so I could run it from terminal (helped me find the source of the bug)
interactivetools_shorten_url
totrue
(in config/galaxy.yml)(they work when interactivetools_shorten_url is false)
Expected behavior
Iteractive tool runs,
galaxy transferts token using sqlite file
gx-it-proxy reads it and proxies the gxit
the gxit is served and accessible
Additional context
Bug found on a server, but reproduced in dev env (commit 6db3224)
I think it can be fixed in /lib/galaxy/managers/interactivetool.py:InteractiveToolSqlite.save, where the config should be accessed to know if the token have to be cut down to 10 chars.
Thank you!
The text was updated successfully, but these errors were encountered: