question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refreshing another user's workflows as an admin refreshes the admin's workflows

See original GitHub issue

Bug Report

The endpoints to refresh a user’s workflows, /users/{userId}/workflows/refresh and /users/{userId}/workflows/{organization}/refresh allow an admin to call the endpoint on the user’s behalf. But they then update the admin’s workflows, not {userId}'s workflows.

The call to checkUser here allows the method to proceed if the auth user is an admin, or if the auth user matches the userId.

However the code to refresh the workflows always uses the auth user, which means if userId is not authUser, authUser’s workflows will be refreshed instead of userId’s.

Note: Did not actually test this, noticed only from reading the code, which means I could be wrong.

┆Issue is synchronized with this Jira Bug ┆Fix Versions: Dockstore 1.11 ┆Issue Number: DOCK-843 ┆Sprint: Sprint 59- Hammerhead shark ┆Issue Type: Bug

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
coverbeckcommented, Oct 16, 2019

@denis-yuen , no, this has not been done. Looks like I referenced the wrong GitHub issue in my commit message.

0reactions
NatalieEOcommented, Apr 22, 2021

Confirmed on dev that admins can’t refresh another user’s workflow.

Webservice - 055b7d4

UI - 2.7.3-75-g0e19bb8d

Compose Setup - 36c8ddc

Deploy - 1.10-60-g4659624

Read more comments on GitHub >

github_iconTop Results From Across the Web

PH23898: ONLY ORIGINAL WORKFLOW ASSIGNEE ... - IBM
The panel for the current workflow stage can be refreshed, but only by the users authorized on the current stage. This becomes.
Read more >
Solved: Workflow Refresh ??? - ServiceNow Community
Go to Solution. You can insert timer activity in your workflow to continue your workflow based on condition. A Wait for condition activity ......
Read more >
Managing Workflows as an Admin - ZoomInfo
As an admin, you are positioned to set your team up for success by enabling Workflows across all of your users. If you...
Read more >
How to create a custom Workflow for a user (for admins and ...
From your Home page, select the My Calendly dropdown menu and select the user you want to create a custom Workflow for. See...
Read more >
No Administrator Found For Task - SAP Community
The user getting this message "No Administrator Found For Task" should just have to goto to the main menu to refresh organizational enviroment....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found