Forge space events avi:confluence:trashed:space:V2 and avi:confluence:deleted:space:V2 report "status": "archived" for trashed and deleted spaces

XMLWordPrintable

    • 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

      1. Install a Forge app that subscribes to avi:confluence:trashed:space:V2 and avi:confluence:deleted:space:V2.
      2. Create a space, then move it to the trash (Space settings > Manage space > Delete space).
      3. Check the trashed:space:V2 payload the app receives.
      4. Permanently delete the space from the trash.
      5. 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.

              Assignee:
              Unassigned
              Reporter:
              Sumit Uniyal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: