Operator not able to run flow
Hi! In the latest I have a operator that's not able to execute any flow that was possible on lasts versions. Looking at the network calls, I saw that he's logged out after this:
/api/w/financeiro-kedu/workspaces/get_secondary_storage_names
If I change him to admin of workspace, he can execute the flow.
Version: CE v1.505.3
18 Replies
After sharing the resource, they managed to execute the flow
we will fix in any case, thanks
@antonioalves i'm unable to reproduce, if you remove the shared resource, what do you get in the netwrok call?
hi! you mean remove the sharing and trying to execute with operator?
yes
one moment
Not authorized: Resource exists but you don't have access to it:
resource perms: {}
folder perms: {
"u/alves": false,
"u/iasminsales": false
}
authed as: ApiAuthed { email: "joaovictor@kedu.com.br", username: "joaovictor", is_admin: false, is_operator: true, groups: ["all"], folders: [("spont", false, false), ("app_themes", false, false), ("app_groups", false, false), ("app_custom", false, false)], scopes: None, username_override: None, token_prefix: Some("4JuFgp4rH7") }
after sharing with the group, he's able to execute again
but that's not what /api/w/financeiro-kedu/workspaces/get_secondary_storage_names
return is it?
where do you have that error as a response? From what network request
I'm trying to reproduce, but in fact there's no error with this endpoint. I think I have miscopyed or something. sorry
the 401 is just with the resources not shared
yes but what request does it correspond to and why was it loaded?
I'm trying to find out if the api request is erronous or not
right now is returning 200 with an empty array
ok but what was sending a 401 with resource not shared
if operator ws logged out, it means the frontend was trying to load the resource and not handle the lack of permission, that's what i'm trying to fix
so I need more information than what you are providing
I'll remove all the sharing on the resources and try again
thank you

it's happening with one specific app
i'll make a reproducible app
but that seems like 2 different issue
what is sending the response:
sorry, this is the response 401 of the request of the resource
/api/w/financeiro-kedu/workspaces/get_secondary_storage_names
the result of this is just 401 with response: "Unauthorized"
Of what resource ?
I know why: /api/w/financeiro-kedu/workspaces/get_secondary_storage_names is giving you 401, it's fixed on latest, the call won't even be there
but you've also pasted another response
I see. After sharing the resource the error with /api/w/financeiro-kedu/workspaces/get_secondary_storage_names is still happening with this specific app
are two distinct problems
with the resources is just shared, that other one I think was solved sharing the resources
i'll update to the latest