galaxyproject / galaxy

Data intensive science for everyone.
https://galaxyproject.org
Other
1.34k stars 967 forks source link

Inactive users can schedule invocations #18147

Closed galaxyproject-sentryintegration[bot] closed 3 weeks ago

galaxyproject-sentryintegration[bot] commented 1 month ago

Which then fail with UserActivationRequiredException: Action requires account activation.. Seems like we should prevent that before creating the invocation.

Sentry Issue: GALAXY-MAIN-NEX

UserActivationRequiredException: Action requires account activation.
(5 additional frame(s) were not displayed)
...
  File "galaxy/tools/__init__.py", line 1988, in handle_single_execution
    raise e
  File "galaxy/tools/__init__.py", line 1968, in handle_single_execution
    rval = self.execute(
  File "galaxy/tools/__init__.py", line 2065, in execute
    return self.tool_action.execute(
  File "galaxy/tools/actions/__init__.py", line 412, in execute
    trans.check_user_activation()
  File "galaxy/managers/context.py", line 264, in check_user_activation
    raise UserActivationRequiredException()

Failed to schedule Workflow[id=538976,name=Unnamed Workflow], problem occurred on WorkflowStep[index=0,type=tool,label=None,uuid=578ce47c-2057-4cf8-952d-5b160aa99e3b,id=7164554].
ahmedhamidawan commented 3 weeks ago

Fixed in #18192