You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "pawarprasad123 (via GitHub)" <gi...@apache.org> on 2026/03/24 04:35:30 UTC
[PR] ATLAS-5259: ATLAS UI: Classic UI fails to load when switching from React UI due to missing Bootstrap assets [atlas]
pawarprasad123 opened a new pull request, #576:
URL: https://github.com/apache/atlas/pull/576
## What changes were proposed in this pull request?
## Steps to reproduce
Log in to Atlas.
Open the account menu in the top-right.
Click "Switch to Classic".
Observe the Classic UI stuck on the loading spinner.
## Observed behavior
Classic UI does not load; it remains on the loader.
Console errors:
404 (Not Found) for js/libs/bootstrap/js/bootstrap.min.js
MIME type error: Refused to apply style from '.../bootstrap.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type
Uncaught Error: Script error for "bootstrap" from RequireJS
## Root cause
dashboardv2 uses bootstrap-xss-patched, which provides different filenames than standard Bootstrap. The Grunt copy task expects:
bootstrap/dist/js/bootstrap.min.js
bootstrap/dist/css/bootstrap.min.css
bootstrap-xss-patched actually provides:
bootstrap/dist/js/bootstrap-patched.min.js
bootstrap/dist/css/bootstrap-patched.min.css
Because the expected files are absent, the Grunt build does not copy Bootstrap assets into the dist folder. The server then responds with an HTML error page for the Bootstrap URLs, which triggers MIME type checks and causes RequireJS to fail loading the bootstrap module.
## Fix Update
dashboardv2/gruntfile.js so the copy:bootstrap task uses:
bootstrap-patched.min.js instead of bootstrap.min.js
bootstrap-patched.min.css instead of bootstrap.min.css
## Affected components
atlas-dashboardv2 (Classic UI)
## How was this patch tested?
Manually tested, build process
<img width="1845" height="1129" alt="Screenshot from 2026-03-24 09-59-31" src="https://github.com/user-attachments/assets/fbaccbbe-d90e-47d3-ba09-d3cd6c4e3300" />
<img width="1845" height="1129" alt="Screenshot from 2026-03-24 09-59-20" src="https://github.com/user-attachments/assets/9e3aef59-77b5-411d-983d-6b676243192c" />
<img width="1845" height="1129" alt="image" src="https://github.com/user-attachments/assets/2a71a368-987e-4edf-b8cb-ed3fa25cec6f" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@atlas.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ATLAS-5259: ATLAS UI: Classic UI fails to load when switching from React UI due to missing Bootstrap assets [atlas]
Posted by "pawarprasad123 (via GitHub)" <gi...@apache.org>.
pawarprasad123 merged PR #576:
URL: https://github.com/apache/atlas/pull/576
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@atlas.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org