-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Space - Trash
-
None
-
Severity 3 - Minor
Issue Summary
When a space is moved to the trash, or permanently deleted from the trash, the Forge event payload sets space.status to archived. The space was never archived, so the value is wrong. Apps can't use space.status to tell a trashed or deleted space apart from a really archived one.
Steps to Reproduce
- Install a Forge app that subscribes to avi:confluence:trashed:space:V2 and avi:confluence:deleted:space:V2.
- Create a space, then move it to the trash (Space settings > Manage space > Delete space).
- Check the trashed:space:V2 payload the app receives.
- Permanently delete the space from the trash.
- Check the deleted:space:V2 payload.
Expected Results
space.status shows the space's real state, for example trashed for a space in the trash. It isn't archived.
Actual Results
Both payloads contain "status": "archived".
Workaround
Use eventType to work out what happened to the space. Don't rely on space.status in these events.