[MAGNOLIA-2389] Attempt to change response status after it has been committed causes .resources/* not served properly. Created: 23/Sep/08  Updated: 23/Jan/13  Resolved: 25/Sep/08

Status: Closed
Project: Magnolia
Component/s: cache
Affects Version/s: 3.6.2
Fix Version/s: 4.0

Type: Bug Priority: Blocker
Reporter: Jan Haderka Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

It might happen that unmodified images are not served properly in author instance due to incorrect cache/update times evaluation.



 Comments   
Comment by Teresa Miyar [ 24/Sep/08 ]

I can reproduce it while working on other issues, I login to the application, serve some pages and while starting/stoping the server and after some time has passed i get the missing images, more often in safari that is the browser I use less. I think the image expires in the browser cache and the application does not notice and does not send them again.

Comment by Jan Haderka [ 25/Sep/08 ]

The best scenario to reproduce was:

  • change browser cache policy expiration interval to low value (e.g. 2 minutes).
  • clear browser cache.
  • load the page from browser.
  • shutdown Magnolia
  • copy freshly compiled magnolia-module-admininterface.jar to WEB-INF/lib
  • remove cache directory
  • startup magnolia
  • make sure items are expired (so the browser will call the server with if-modified-since header present)
  • refresh the page

Fixed in r18331 on trunk and in r18332 on 3.6 branch.

Generated at Mon Feb 12 03:36:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.