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 an email is sent to notify the user that a job has completed, the link to the job uses the galaxy_infrastructure_url, which is not always appropriate. Instead, it should use url_for.
Galaxy Version and/or server at which you observed the bug
Galaxy Version: 21.05 (expect it to exist on 24.1 and up as well)
Browser and Operating System
Operating System: Windows, Linux, macOS (all)
Browser: Firefox, Chrome, Chrome-based, Safari (all)
To Reproduce
Steps to reproduce the behavior:
Run a job and select email notification when complete
The URLs in the email will be to localhost or whatever galaxy_infrastructure_url is set to.
Hey @lparsons, that is not possible unfortunately, url_for only works in a web context that is not available in the job and workflow handlers where these are used. The error report emails are handled within the web context, that's why they can use url_for. This is the relevant work to add another variable for this purpose #18576.
Realistically there's only a problem with galaxy_infrastructure_url if it is set to a truly internal URL for ITs or pulsar that is distinct from the public fqdn.
Thanks @mvdbeek. I didn't realize the issue with using url_for, that's too bad. We never had galaxy_infrastrucutre_url set since it didn't seem necessary, and the default is technically correct (localhost), however, it caused the links to be broken. I guess going forward we'll just make sure to set it to the public URL instead.
Describe the bug
When an email is sent to notify the user that a job has completed, the link to the job uses the
galaxy_infrastructure_url
, which is not always appropriate. Instead, it should useurl_for
.Galaxy Version and/or server at which you observed the bug
Galaxy Version: 21.05 (expect it to exist on 24.1 and up as well)
Browser and Operating System
Operating System: Windows, Linux, macOS (all)
Browser: Firefox, Chrome, Chrome-based, Safari (all)
To Reproduce
Steps to reproduce the behavior:
localhost
or whatevergalaxy_infrastructure_url
is set to.Expected behavior
The URL should use the appropriate server address. The
galaxy_infrastructure_url
is only intended to be used by internal services.Additional context
The post execution job action uses
galaxy_infrastructure_url
.galaxy/lib/galaxy/job_execution/actions/post.py
Lines 58 to 61 in fb4d5be
Instead, it should use
url_for
which is done in the error reporting emails.galaxy/lib/galaxy/tools/errors.py
Lines 164 to 166 in fb4d5be
The text was updated successfully, but these errors were encountered: