storm icon indicating copy to clipboard operation
storm copied to clipboard

Cache busting is broken - ${packageTimestamp} is never substituted in HTML resources

Open rzo1 opened this issue 7 months ago • 5 comments

After the dark mode / Bootstrap 5.3.8 rewrite in 6cc4171a3, users can hit a TypeError at topology.html:307 where Mustache.render receives undefined because #topology-summary-template isn't found in the fetched topology-page-template.html. The root cause is a stale main.bundle.js (with old template IDs) being served alongside the new templates, or vice versa.

topology.html:25 references the bundle as:

<script src="/dist/main.bundle.js?_ts=${packageTimestamp}" ...>

However, ${packageTimestamp} is never expanded.

In storm-webapp/pom.xml (lines 143–148), the WEB-INF/**/. resource does not have true, so Maven leaves the placeholder as a literal string.

This means the "cache-busting" query parameter is actually a constant across deploys, and the browser keeps serving whatever version it already has cached. Additionally, topology-page-template.html and other AJAX-fetched templates have no cache-busting parameter at all.

Workaround is to hard-reload (Cmd/Ctrl+Shift+R) or clear site data for the Storm UI origin.

rzo1 avatar Apr 14 '26 08:04 rzo1

Image

Gowtham-Gowts avatar Apr 14 '26 08:04 Gowtham-Gowts

@rzo1 Hard refresh also not worked.

Gowtham-Gowts avatar Apr 14 '26 08:04 Gowtham-Gowts

@Gowtham-Gowts The next release (most likely 3.0.0) will fix the broken package timestamp replacement. Since your screenshot does not contain the new light/dark mode toggle, it is definitly a caching issue in your environment.

Image

rzo1 avatar Apr 14 '26 09:04 rzo1

@rzo1 by looking at the comments and actions, no action was undertaken for version 2.8.7. Should we remove it from milestone 2.8.7?

reiabreu avatar Apr 19 '26 17:04 reiabreu

@reiabreu https://github.com/apache/storm/commit/fd8db6127c0c374b6bbac8649abd9fcccb8f5853

rzo1 avatar Apr 19 '26 17:04 rzo1