diff --git a/lib/galaxy/workflow/run_request.py b/lib/galaxy/workflow/run_request.py index 804df21f0e8..3a9a475eba2 100644 --- a/lib/galaxy/workflow/run_request.py +++ b/lib/galaxy/workflow/run_request.py @@ -188,6 +188,15 @@ def build_workflow_run_config( trans, workflow, payload ): content = trans.sa_session.query(app.model.HistoryDatasetAssociation).get( trans.security.decode_id(input_id)) assert trans.user_is_admin() or trans.app.security_agent.can_access_dataset( trans.get_current_user_roles(), content.dataset ) + elif input_source == 'uuid': + dataset = trans.sa_session.query(app.model.Dataset).filter(app.model.Dataset.uuid==input_id).first() + if dataset is None: + #this will need to be changed later. If federation code is avalible, then a missing UUID + #could be found amoung fereration partners + message = "Input cannot find UUID: %s." % input_id + raise exceptions.RequestParameterInvalidException( message ) + assert trans.user_is_admin() or trans.app.security_agent.can_access_dataset( trans.get_current_user_roles(), dataset ) + content = history.add_dataset(dataset) elif input_source == 'hdca': content = app.dataset_collections_service.get_dataset_collection_instance( trans, diff --git a/templates/show_params.mako b/templates/show_params.mako index b4952f64360..acdaedad9c0 100644 --- a/templates/show_params.mako +++ b/templates/show_params.mako @@ -23,7 +23,7 @@ ${ inputs_recursive(input.inputs, param_values[input.name][i], depth=depth+1) } %endfor %elif input.type == "conditional": - <% + <% try: current_case = param_values[input.name]['__current_case__'] is_valid = True @@ -53,7 +53,7 @@
| Tool Standard Error: | stderr |
| Tool Exit Code: | ${job.exit_code | h} |
| API ID: | ${encoded_hda_id} |
| UUID: | ${hda.dataset.uuid} |
| Full Path: | ${hda.file_name | h} |