Behaviour when remote server removes a resource #1

Closed
opened 2026-03-21 11:55:43 +01:00 by maleszka · 2 comments
Owner

Currently, the sim backend does not distinguish whether server removed some resource or authorization session is stale -> cause in both cases server returns .forbidden.

We should analyze how does sim behave on resource removal and also correctly handle this in ContestGraph.

[Currently](https://repos.adamm.rocks/maleszka/wbij/src/commit/f37ba85e5caa8d9bbd63c7aa80f0466b933155df), the sim backend does not distinguish whether server removed some resource or authorization session is stale -> cause in both cases server returns `.forbidden`. We should analyze how does sim behave on resource removal and also correctly handle this in [ContestGraph](https://repos.adamm.rocks/maleszka/wbij/src/commit/f37ba85e5caa8d9bbd63c7aa80f0466b933155df/src/api/fetcher/ContestGraph.zig).
Author
Owner

As satori backend has been merged #6, this issue becomes a little more important, cause satori already implements error.ServerResourceDoesNotExist which is completely unhandled in ContestGraph.

As satori backend has been merged #6, this issue becomes a little more important, cause satori already implements `error.ServerResourceDoesNotExist` which is completely unhandled in `ContestGraph`.
maleszka added this to the 0.1.0 milestone 2026-04-09 17:06:10 +02:00
Author
Owner

I added proper error.ServerResourceDoesNotExist handling in sim platform. Now we need support in ContestGraph

I added proper `error.ServerResourceDoesNotExist` handling in `sim` platform. Now we need support in `ContestGraph`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
maleszka/wbij#1
No description provided.