From 127be4842ab0a56c7ef63937759ff1e1cbff6ba7 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 6 Feb 2020 13:21:04 -0500 Subject: [PATCH 01/96] Automatically resolve and add static-safe mappings for client-based images. This is safe, and we might as well just automate/force it here. People can always add additional ones, of course, but this ensures galaxy internal static files are resolvable. --- scripts/get_uwsgi_args.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/get_uwsgi_args.py b/scripts/get_uwsgi_args.py index 80eae973a68..999e9d2c617 100644 --- a/scripts/get_uwsgi_args.py +++ b/scripts/get_uwsgi_args.py @@ -121,6 +121,8 @@ def _get_uwsgi_args(cliargs, kwargs): if hmr_server.lower() in ['1', 'true', 'default']: hmr_server = "http:127.0.0.1:8081" __add_arg(args, 'route', '^/static/scripts/bundled/ {hmr_server}'.format(hmr_server=hmr_server)) + # We always want to append client/galaxy/images as static-safe. + __add_arg(args, 'static-safe', '{here}/client/galaxy/images'.format(here=os.getcwd())) for arg in DEFAULT_ARGS['_all_'] + DEFAULT_ARGS[cliargs.app]: if not __arg_set(arg, uwsgi_kwargs): From e7a2e9a4403ae5da5540a8549d2f3d7740f1062d Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 6 Feb 2020 13:23:42 -0500 Subject: [PATCH 02/96] With it configured to always set static-safe, this is no longer necessary --- scripts/get_uwsgi_args.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/get_uwsgi_args.py b/scripts/get_uwsgi_args.py index 999e9d2c617..093c2b1b72a 100644 --- a/scripts/get_uwsgi_args.py +++ b/scripts/get_uwsgi_args.py @@ -94,7 +94,6 @@ def _get_uwsgi_args(cliargs, kwargs): 'static-map': ('/static/style={here}/static/style/blue'.format(here=os.getcwd()), '/static={here}/static'.format(here=os.getcwd()), '/favicon.ico={here}/static/favicon.ico'.format(here=os.getcwd())), - 'static-safe': ('{here}/client/galaxy/images'.format(here=os.getcwd())), 'die-on-term': True, 'enable-threads': True, 'hook-master-start': ('unix_signal:2 gracefully_kill_them_all', From 4834b7535f6cc21f93b0035c3b5819549a26262c Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 6 Feb 2020 13:27:33 -0500 Subject: [PATCH 03/96] Drop static-safe from DEFAULT_ARGS, relying on an explicit add now. --- scripts/get_uwsgi_args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_uwsgi_args.py b/scripts/get_uwsgi_args.py index 093c2b1b72a..d8a803ac26a 100644 --- a/scripts/get_uwsgi_args.py +++ b/scripts/get_uwsgi_args.py @@ -23,7 +23,7 @@ ALIASES = { 'module': ('mount',), # mount is not actually an alias for module, but we don't want to set module if mount is set } DEFAULT_ARGS = { - '_all_': ('pythonpath', 'threads', 'buffer-size', 'http', 'static-map', 'static-safe', 'die-on-term', 'hook-master-start', 'enable-threads', 'umask'), + '_all_': ('pythonpath', 'threads', 'buffer-size', 'http', 'static-map', 'die-on-term', 'hook-master-start', 'enable-threads', 'umask'), 'galaxy': ('py-call-osafterfork',), 'reports': (), 'tool_shed': ('cron',), From 21a0324887b3b49e1463373a83124ab51fd43320 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Sun, 9 Feb 2020 13:05:14 +0100 Subject: [PATCH 04/96] Add requirements to all converters that use bgzip.py --- lib/galaxy/datatypes/converters/bed_to_bgzip_converter.xml | 6 +++++- .../datatypes/converters/encodepeak_to_bgzip_converter.xml | 6 +++++- lib/galaxy/datatypes/converters/gff_to_bgzip_converter.xml | 6 +++++- .../datatypes/converters/interval_to_bgzip_converter.xml | 6 +++++- lib/galaxy/datatypes/converters/vcf_to_bgzip_converter.xml | 6 +++++- .../datatypes/converters/vcf_to_vcf_bgzip_converter.xml | 6 +++++- 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/lib/galaxy/datatypes/converters/bed_to_bgzip_converter.xml b/lib/galaxy/datatypes/converters/bed_to_bgzip_converter.xml index 08d91cddf72..c19d371f019 100644 --- a/lib/galaxy/datatypes/converters/bed_to_bgzip_converter.xml +++ b/lib/galaxy/datatypes/converters/bed_to_bgzip_converter.xml @@ -1,5 +1,9 @@ -