Bug report #714 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/714>

REPORT #714 Details.

Project: Jasper
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: low
Severity: serious
Confidence: public
Environment: 
   Release: 3.2.1
   JVM Release: 1.3.0
   Operating System: Windows 2000
   OS Release: SP1
   Platform: i386

Synopsis: 
JspC on Windows fails to handle includes in subdirectories

Description:
On a Windows platform, having JSPs with relative include
paths will cause JspC to emit the following error:
    Bad file argument to include 

This is because the jspURI passed into CommandLineContext
has the Window path separator '\', instead of the Unix
seperator '/' that is passed into JspEngineContext for the
JSP servlet.

This causes JspReader.pushFile (JspReader.java:142) to not
find the parent of the JSP, and so the path to the include
is calculated with respect to the wrong directory.

I believe that a fix would be to convert file to have '/'
as the path seperator, before passing into the constructor
of CommandLineContext (JspC.java:329).
Title: BugRat Report # 714

BugRat Report # 714

Project: Jasper Release: 3.2.1
Category: Bug Report SubCategory: New Bug Report
Class: swbug State: received
Priority: low Severity: serious
Confidence: public

Submitter: Nick Holloway ( [EMAIL PROTECTED] )
Date Submitted: Jan 8 2001, 12:43:37 CST
Responsible: Z_Tomcat Alias ( [EMAIL PROTECTED] )

Synopsis:
JspC on Windows fails to handle includes in subdirectories
Environment: (jvm, os, osrel, platform)
1.3.0, Windows 2000, SP1, i386

Additional Environment Description:

Report Description:
On a Windows platform, having JSPs with relative include paths will cause JspC to emit the following error: Bad file argument to include This is because the jspURI passed into CommandLineContext has the Window path separator '\', instead of the Unix seperator '/' that is passed into JspEngineContext for the JSP servlet. This causes JspReader.pushFile (JspReader.java:142) to not find the parent of the JSP, and so the path to the include is calculated with respect to the wrong directory. I believe that a fix would be to convert file to have '/' as the path seperator, before passing into the constructor of CommandLineContext (JspC.java:329).

How To Reproduce:
null

View this report online...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to