antonioalves
antonioalves2mo ago

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
antonioalves
antonioalvesOP2mo ago
After sharing the resource, they managed to execute the flow
rubenf
rubenf2mo ago
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?
antonioalves
antonioalvesOP2mo ago
hi! you mean remove the sharing and trying to execute with operator?
rubenf
rubenf2mo ago
yes
antonioalves
antonioalvesOP2mo ago
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
rubenf
rubenf2mo ago
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
antonioalves
antonioalvesOP2mo ago
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
rubenf
rubenf2mo ago
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
antonioalves
antonioalvesOP2mo ago
right now is returning 200 with an empty array
rubenf
rubenf2mo ago
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
antonioalves
antonioalvesOP2mo ago
I'll remove all the sharing on the resources and try again
rubenf
rubenf2mo ago
thank you
antonioalves
antonioalvesOP2mo ago
No description
antonioalves
antonioalvesOP2mo ago
it's happening with one specific app i'll make a reproducible app
rubenf
rubenf2mo ago
but that seems like 2 different issue what is sending the response:
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") }
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") }
antonioalves
antonioalvesOP2mo ago
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"
rubenf
rubenf2mo ago
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
antonioalves
antonioalvesOP2mo ago
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

Did you find this page helpful?