[DEFECT] Page Porlert breaks on reload
A pull request for this has already been merged.
- #33286 by @rjvelazco — merged
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Problem Statement
When reloading the application while inside the Page Portlet (/#/pages), the page list enters an infinite loading state and never resolves. The browser console shows an error that appears to be caused by a race condition during initialization.
This issue also occurs if you navigate directly to the Page Portlet URL and reload.
Steps to Reproduce
- Open the Page Portlet (/#/pages).
- Reload the browser tab (or navigate directly to the URL and reload).
- Observe that the page remains stuck in a loading state.
- Open the browser console and note the error indicating a likely race condition.
Video
https://github.com/user-attachments/assets/f2644774-e0bc-4cf4-aa13-63a1dec2f933
Acceptance Criteria
- Reloading the app on the Page Portlet initializes without errors.
- The page list loads correctly after a reload or direct navigation.
- No infinite loading state occurs.
- Console errors related to race conditions are resolved.
dotCMS Version
main/trunk
Severity
Medium - Some functionality impacted
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Page Portlet entry point, /#/pages, and reproduce the reload or direct-navigation case while watching the browser console. Trace the initialization path implicated by the race-condition error and verify that the page list loads without errors or an infinite loading state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100