- Issue created by @mayur-sose
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Similar symptoms as ๐ After an error itโs possible to get trapped in an unrecoverable error state Active !
- First commit to issue fork.
- Merge request !1394Draft: #3532618 unauthenticated gets dedicated handling โ (Open) created by bnjmnm
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
bnjmnm โ changed the visibility of the branch 3532618-after-session-times to hidden.
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Neat approach. Can we get a kernel test added for the authentication checker?
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
Neat approach. Can we get a kernel test added for the authentication checker?
Yep,! There's a bunch of other tests that need updating too - I just didn't want to do all that refactoring until I got a +1 but now that I have one I'll hop on that.
- Assigned to bnjmnm
- Status changed to Needs work
26 days ago 12:08pm 26 August 2025 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Looking good! Missing some cacheability bits โ provided pointers to prior art.
Two tests are failing:
- one thanks to the new
testAuthenticationRequiredPermission()
(๐) โ it identified one route definition that still needs to be updated - one which I suspect is due to a bug in the new access check: https://git.drupalcode.org/project/experience_builder/-/merge_requests/1...
- one thanks to the new
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Would also be nice to get a GIF of this new UI functionality in action ๐
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
Failing test is just a flaky Playwright
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Reopened a thread, because I don't understand the answer: https://git.drupalcode.org/project/experience_builder/-/merge_requests/1...
A mild concern about relying on https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Authentication#... at https://git.drupalcode.org/project/experience_builder/-/merge_requests/1... โ but I'm okay with merging as-is.
Just need to get clarity on that one thing ๐
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Ahhhhh!
public function testAssetLibrary(): void { // Delete the library created during install. $library = AssetLibrary::load(AssetLibrary::GLOBAL_ID); \assert($library instanceof AssetLibrary); $library->delete();
That is why! Reverting my revert, and merging ๐
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Manually tested, works well ๐
-
wim leers โ
committed 2a9ff9e2 on 1.x authored by
bnjmnm โ
Issue #3532618 by bnjmnm, wim leers, mayur-sose: After session times out...
-
wim leers โ
committed 2a9ff9e2 on 1.x authored by
bnjmnm โ
After renaming the cookie and reloading the page, I am getting the following session timeout error:
{ "errors": [ "You must be logged in to access this resource." ] }
Error 401: You must be logged in to access this resource.
And after clicking on the "Go to login" button, the page is correctly redirected to the login page. This behaviour is working as expected. Now, the page is not getting stuck on the error page.
- ๐ซ๐ฎFinland lauriii Finland
We need to adjust the errors that are displayed to user in this situation. This isn't really an unexpected error.. This is just the users session timing out?
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Yeah, I was thinking that too โ but this is such a massive improvement compared to where we were before that I didn't want to push back over this. ๐
- ๐ซ๐ฎFinland lauriii Finland
+1 for landing the fix as it is but it would be great to plan for doing #24 ๐ After source session timeout, XB page stuck on the error message Active too.
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Okay โ but what do you expect that to look like? We were flying blind here: empty proposed solution in the issue summary, no designs.
So: the hard part is done โ now we just need to tweak it to no longer have this less-than-great UX ๐