Skip to content

Conversation

@akabiru
Copy link
Member

@akabiru akabiru commented Jan 6, 2026

Ticket

https://community.openproject.org/wp/69643

What are you trying to accomplish?

Screenshots

What approach did you choose and why?

See: #18952

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@akabiru akabiru added the bugfix label Jan 6, 2026
@akabiru akabiru added this to the 17.0.x milestone Jan 6, 2026
@akabiru akabiru self-assigned this Jan 6, 2026
Comment on lines +120 to +123
headers: {
Accept: 'text/vnd.turbo-stream.html',
'X-Authentication-Scheme': 'Session',
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should switch to using the central TurboRequestService, as it already has this special header + stream update functionality. I prefer to do this change later, on dev.

// Delay setting connection error to avoid flickering on brief disconnects
setTimeout(() => {
setConnectionError(true);
}, 500);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure this timeout value will stick, or whether it's the best approach- oddly enough I was unable to reproduce the disconnect notice locally

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed with @brunopagno, introducing an arbitrary delay opens the risk of losing data/content that is added within the delay period; we need a more complete solution that captures an intermediate reconnection/retry state before failure (connectionError) where the editor is potentially placed in a read-only state.

@akabiru akabiru force-pushed the bug/69643-documents-session-authentication-error-on-page-reload-on-firefox branch from 0721150 to c95c9c5 Compare January 6, 2026 11:46
@akabiru akabiru marked this pull request as ready for review January 7, 2026 11:28
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Caution

The provided work package version does not match the core version

Details:

Please make sure that:

  • The work package version OR your pull request target branch is correct

@akabiru akabiru requested a review from brunopagno January 7, 2026 11:28
@akabiru akabiru changed the base branch from dev to release/17.0 January 7, 2026 11:30
Copy link
Contributor

@brunopagno brunopagno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the way 🚀

@akabiru akabiru merged commit c3e5552 into release/17.0 Jan 7, 2026
32 of 33 checks passed
@akabiru akabiru deleted the bug/69643-documents-session-authentication-error-on-page-reload-on-firefox branch January 7, 2026 15:29
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

3 participants