diff --git a/doc/source/admin/galaxy_options.rst b/doc/source/admin/galaxy_options.rst index a3bf9967075..c30c71da4e5 100644 --- a/doc/source/admin/galaxy_options.rst +++ b/doc/source/admin/galaxy_options.rst @@ -3573,6 +3573,22 @@ :Type: bool +~~~~~~~~~~~~~~~~~~~~~ +``metadata_strategy`` +~~~~~~~~~~~~~~~~~~~~~ + +:Description: + Determines how metadata will be set. Valid values are `directory`, + `extended` and `legacy`. In extended mode jobs will decide if a + tool run failed, the object stores configuration is serialized and + made available to the job and is used for writing output datasets + to the object store as part of the job and dynamic output + discovery (e.g. discovered datasets , + unpopulated collections, etc) happens as part of the job. +:Default: ``directory`` +:Type: str + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``retry_metadata_internally`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/lib/galaxy/authnz/custos_authnz.py b/lib/galaxy/authnz/custos_authnz.py index 11f6e43a52a..18f907a03f7 100644 --- a/lib/galaxy/authnz/custos_authnz.py +++ b/lib/galaxy/authnz/custos_authnz.py @@ -17,8 +17,8 @@ from galaxy.model import CustosAuthnzToken, User from ..authnz import IdentityProvider log = logging.getLogger(__name__) -STATE_COOKIE_NAME = 'custos-state' -NONCE_COOKIE_NAME = 'custos-nonce' +STATE_COOKIE_NAME = 'galaxy-oidc-state' +NONCE_COOKIE_NAME = 'galaxy-oidc-nonce' KEYCLOAK_BACKENDS = {'custos', 'cilogon', 'keycloak'} diff --git a/lib/galaxy/authnz/managers.py b/lib/galaxy/authnz/managers.py index 0b7afbd134a..a1cc2c1c989 100644 --- a/lib/galaxy/authnz/managers.py +++ b/lib/galaxy/authnz/managers.py @@ -292,7 +292,7 @@ class AuthnzManager(object): raise exceptions.AuthenticationFailed(e.message) except Exception as e: msg = 'The following error occurred when handling callback from `{}` identity provider: ' \ - '{}'.format(provider, e.message) + '{}'.format(provider, str(e)) log.exception(msg) return False, msg, (None, None) @@ -321,7 +321,7 @@ class AuthnzManager(object): return True, message, backend.logout(trans, post_logout_redirect_url) except Exception as e: msg = 'The following error occurred when logging out from `{}` identity provider: ' \ - '{}'.format(provider, e.message) + '{}'.format(provider, str(e)) log.exception(msg) return False, msg, None diff --git a/lib/galaxy/config/sample/galaxy.yml.sample b/lib/galaxy/config/sample/galaxy.yml.sample index 3297cb5d0d5..5eda281b6aa 100644 --- a/lib/galaxy/config/sample/galaxy.yml.sample +++ b/lib/galaxy/config/sample/galaxy.yml.sample @@ -1751,6 +1751,15 @@ galaxy: # database. #enable_job_recovery: true + # Determines how metadata will be set. Valid values are `directory`, + # `extended` and `legacy`. In extended mode jobs will decide if a tool + # run failed, the object stores configuration is serialized and made + # available to the job and is used for writing output datasets to the + # object store as part of the job and dynamic output discovery (e.g. + # discovered datasets , unpopulated collections, + # etc) happens as part of the job. + #metadata_strategy: directory + # Although it is fairly reliable, setting metadata can occasionally # fail. In these instances, you can choose to retry setting it # internally or leave it in a failed state (since retrying internally diff --git a/lib/galaxy/config/sample/job_conf.xml.sample_advanced b/lib/galaxy/config/sample/job_conf.xml.sample_advanced index 53254618eba..beb5feb3d13 100644 --- a/lib/galaxy/config/sample/job_conf.xml.sample_advanced +++ b/lib/galaxy/config/sample/job_conf.xml.sample_advanced @@ -401,6 +401,17 @@ try it early - it will slightly speed up local jobs by embedding metadata calculation in job script itself. --> + directory +