# Bug COMMS-905 - Activity tab floods page with "not found" banners after session expiry

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-905

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 17.7.0 |
| Observed in versions | 17.6.0 |
| Sprint | Sprint 8 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.6.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Kabiru Mwenja |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Log in on an instance that allows anonymous access (e.g. community.openproject.org) as a member of a non-public project
    
2.  Open the Activity tab of any work package in that project (e.g. `/projects/VID/work_packages/VID-173/activity`) and leave the tab open
    
3.  Let the user session expire (or destroy it, e.g. by logging out in another tab / session timeout)
    
4.  Wait and watch the still-open Activity tab
    

### What is the buggy behavior?

*   The Activity tab polls `GET .../activities/update_streams` every 10 seconds. Once the session is gone, every poll returns `404 Not Found` and each response appends a new &quot;not found&quot; error banner to the page
    
*   The banners pile up indefinitely (one every 10 seconds), covering the whole work package view; the browser console fills up with `Error updating activities list` entries
    
*   Polling never stops, so the client also generates permanent background load against the server (a 404 every 10 seconds per open tab)
    

### What is the expected behavior?

1.  A background poll that fails with 404 (or 401/403) should not render any error UI; there is simply nothing to update
    
2.  Polling should stop after such a response (circuit breaker) instead of retrying forever; a page reload naturally restarts it and lands on the login screen / error page
    
3.  Only user-triggered loads (e.g. scrolling that triggers loading another activity page) may surface an &quot;unable to load&quot; message
    

###   

### Logs

Console (repeating every ~10 s):

```text
GET https://community.openproject.org/work_packages/VID-173/activities/update_streams?sortBy=asc&filter=all&last_update_timestamp=... [HTTP/2 404 66ms]
Error:                              turbo-requests.service.ts:73
Error updating activities list:     polling.controller.ts:110
  performUpdateStreamsRequest       polling.controller.ts:183
  updateActivitiesList              polling.controller.ts:106
  intervallId                       polling.controller.ts:127
```

### Screenshots and other files

*   `flood-of-not-found-errors.png` (stacked &quot;not found&quot; banners covering the work package view)
    
    *   <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/922855/content">
        
*   `activity-stream-errors.png` (console with repeating 404s)
    
    *   <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/922856/content">
