Anonymous | Login | Signup for a new account | 12-17-2024 08:23 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0006289 | [Resin] | minor | always | 10-02-19 10:45 | 10-03-19 16:48 | ||||
Reporter | nam | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.62 | ||||||
Summary | 0006289: sessions are not saved to persistent storage for jsp pages with c:import tag | ||||||||
Description |
(rep by alpor9) Problem appears if there is <c:import> tag in the target page. If page contains any such import, any session manipulations on that page will not be saved to persistent storage. Because import request clears _isModified flag in SessionImpl#load() (see line 725 in SessionImpl.java for 4.0.48). And then, the subsequent SessionImpl#save() method (after the main page request) sees nothing to save. And 4.0.62 has the same logic there. |
||||||||
Additional Information |
Steps to reproduce: 1. view.jsp => see that attribute is null 2. save.jsp 3. view.jsp => see that attribute is "bar" 4. remove.jsp 5. view.jsp => see that attribute is null 6. restart resin 7. view.jsp => see that attribute is "bar" 8. remove_no_import.jsp 9. view.jsp => see that attribute is null 10 restart resin 11. view.jsp => see that attribute is null save.jsp ====== <% request.getSession().setAttribute("foo", "bar"); %> view.jsp ====== <% out.println("foo=" + request.getSession().getAttribute("foo")); %> remove.jsp ======== <%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' [^] %> <c:import url="view.jsp"> <% request.getSession().removeAttribute("foo"); %> remove_no_import.jsp ================ <% request.getSession().removeAttribute("foo"); %> |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed. 26 unique queries executed. |