-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Starting processing jobs for datasets of other organizations is not currently allowed, even if the datasets are public or viewed by a valid sharing token.
While fully allowing this for some jobs/situations is a topic for another day (also compare discussion at #7360 ), what can be improved now is the error message.
Some jobs already have a readable error message, like “Currently nuclei inferral is only allowed for datasets of your own organization.”. However, some, like render_animation, just show “Organization b2275d664e4c2a96 could not be found”. This should be unified, e.g. by passing GlobalAccessContext to organizationDAO.findOne
, and then checking request.identity._organization == organization._id
with a suitable message.
The same should be done for runTraining and runInference in AiModelController. Looks like the frontend does not currently send the organizationId there at all, which leads to unusable 404 errors if tried on another orga’s dataset