View Issue Details

IDProjectCategoryView StatusLast Update
0036870mantisbtotherpublic2026-02-06 12:51
Reporterraspopov Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
Status newResolutionopen 
Product Version2.28.0 
Summary0036870: Inline attachments may not always display on the issue page.
Description

While navigating issues with inline attachments, such as PNG images, it is possible that not all attachments will load, especially when closing or opening the browser window. Refreshing the page with F5 usually resolves the issue. This situation occurs more often when using a caching proxy or similar program.

Additional Information

Further examination of the MantisBT code revealed an absence of flexible caching policy. Currently, there is either a disabled cache or a 10-day cache.

For the issue content and the content of the attached files to display correctly, the HTTP response headers that control caching must match. Otherwise, a page from the cache may be used and an attachment on that page may be requested from the server. This leads to the use of an expired CSRF token and a refusal from the web server. This issue is especially noticeable when the allow_browser_cache setting is enabled, though it is theoretically possible without it.

TagsNo tags attached.

Activities