Mantis - Resin
Viewing Issue Advanced Details
6049 minor always 04-04-17 12:01 04-05-17 16:31
wileysaw  
 
normal  
closed 4.0.51  
fixed  
none    
none 4.0.52  
0006049: indirection through jndi:/server/<path> removes server
ServletContext.getResource issue:

[17-04-03 11:51:15.855] SingletonBean[FormWriter, {@Default(), @Any()}](interface javax.servlet.ServletConfig) added to InjectManager[web-app:production/webapp/default/PDFWriter]

[17-04-03 11:51:15.870] real-path / -> c:\resin-pro-4.0.51\webapps\PDFWriter\

[17-04-03 11:51:15.870] Servlet[Print] active

[17-04-03 11:51:15.870] Servlet[Print] active

[17-04-03 11:51:15.870] query: form=frm3155

[17-04-03 11:51:15.870] query: keys=320251

Exception: java.io.FileNotFoundException: \server\PDFWriter\conf\forms\frm3155.xml (The system cannot find the path specified)

[17-04-03 11:51:15.917] real-path /conf/forms/ -> c:\resin-pro-4.0.51\webapps\PDFWriter\conf\forms\

[17-04-03 11:51:15.917] real-path /conf/forms/frm3155.xml -> c:\resin-pro-4.0.51\webapps\PDFWriter\conf\forms\frm3155.xml
Possible issue with Windows slashes

Notes
(0006743)
ferg   
04-05-17 15:59   
server/1t15

Changed ServletContext.getResource to return a "file:" URL when the target is a file. Previously, used indirection through jndi:/server.