Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006116 [Resin] minor always 11-28-17 11:41 05-02-18 15:01
Reporter wileysaw View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.57 Product Version 4.0.54
  Product Build
Summary 0006116: DependencyCheckWorker serves non-modified .jsp before serving new compiled .jsp
Description Java class:
package com.util;

public class tmp
{
   public static String tmp()
   {
      return "TEST 123";
   }
}

index.jsp
<%=com.util.tmp.tmp()%>

Steps to reproduce:
1. Access jsp page
2. Change value of string
3. Access jsp page again

DependencyCheckWorker notices the file was modified but serves the old page before recompiling.

[17-11-28 11:33:20.229] {resin-port-8080-48} Http[default, 1] GET /test/ HTTP/1.1
[17-11-28 11:33:20.229] {resin-port-8080-48} Http[default, 1] Remote-IP: 0:0:0:0:0:0:0:1:54440
[17-11-28 11:33:20.229] {resin-port-8080-48} Http[default, 1] Host: localhost:8080
[17-11-28 11:33:20.229] {resin-port-8080-48} Http[default, 1] User-Agent: curl/7.54.0
[17-11-28 11:33:20.229] {resin-port-8080-48} Http[default, 1] Accept: */*
[17-11-28 11:33:20.229] {resin-port-8080-48} Dispatch '/' to AccessLogFilterChain[http://localhost:8080/test, [^] next=WebAppFilterChain[http://localhost:8080/test, [^] next=RewriteDispatchFilterChain[/index.jsp]]]
[17-11-28 11:33:20.229] {resin-port-8080-48} Dispatch '/index.jsp' to DispatchFilterChain[PageFilterChain[JspServlet[WebApp[production/webapp/default/test]]]]
[17-11-28 11:33:20.229] {DependencyCheckWorker[]-22} source modified time: /Users/Downloads/resin-pro-4.0.54/webapps/test/WEB-INF/classes/com/util/tmp.java old:Tue, 28 Nov 2017 11:31:20 -0800 (PST) new:Tue, 28 Nov 2017 11:33:10 -0800 (PST)
[17-11-28 11:33:20.230] {resin-port-8080-48} SessionImpl[aaaeHIErpk1Aye_Cfheaw,/test] new
[17-11-28 11:33:20.230] {resin-port-8080-48} SessionImpl[aaaeHIErpk1Aye_Cfheaw,/test] create session
[17-11-28 11:33:20.230] {resin-port-8080-48} Http[default, 1] HTTP/1.1 200 OK
[17-11-28 11:33:20.230] {resin-port-8080-48} Http[default, 1] Cache-Control: private
[17-11-28 11:33:20.230] {resin-port-8080-48} Http[default, 1] Set-Cookie: JSESSIONID=aaaeHIErpk1Aye_Cfheaw; path=/
[17-11-28 11:33:20.230] {resin-port-8080-48} Http[default, 1] Content-Type: text/html; charset=utf-8
[17-11-28 11:33:20.230] {resin-port-8080-48} Http[default, 1] Content-Length: 4
[17-11-28 11:33:20.230] {resin-port-8080-48} Http[default, 1] write-set-offset(219)
[17-11-28 11:33:20.230] {resin-port-8080-48} Http[default, 1] finish/keepalive
[17-11-28 11:33:20.230] {resin-44} Compiling com/util/tmp.java
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0006809)
wileysaw
11-28-17 11:46
edited on: 11-28-17 11:49

Seems <dependency-check-interval> is on a default 60s for .jsp as web-app will successfully recompile jsp page and serve new page after 1min even with check set to 1s.

 
(0006833)
ferg
05-01-18 14:44

Synchronous check enabled if dependency-check-interval is 0.
 

- Issue History
Date Modified Username Field Change
11-28-17 11:41 wileysaw New Issue
11-28-17 11:46 wileysaw Note Added: 0006809
11-28-17 11:49 wileysaw Note Edited: 0006809
05-01-18 14:44 ferg Note Added: 0006833
05-01-18 14:44 ferg Assigned To  => ferg
05-01-18 14:44 ferg Status new => assigned
05-01-18 14:44 ferg Resolution open => fixed
05-01-18 14:44 ferg Fixed in Version  => 4.0.57
05-02-18 15:01 ferg Status assigned => closed


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker