tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <tomcat-b...@cortexity.com>
Subject BugRat Report #215 has been filed.
Date Thu, 05 Oct 2000 00:45:22 GMT
Bug report #215 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/215>

REPORT #215 Details.

Project: Jasper
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: medium
Severity: serious
Confidence: public
Environment: 
   Release: 3.1
   JVM Release: 1.1.8
   Operating System: WinNT
   OS Release: 4.0
   Platform: any

Synopsis: 
When using a tag library jar, directory not created in work area (Windows only)

Description:
Suppose you have a tag library directive like this: 
@taglib uri="/WEB-INF/lib/MyTags.jar" prefix="me" <P>


When TagLibraryInfoImpl attempts to copy the jar file to
its work directory, it fails.  Because the uri is specified
with '/', new File(uri) does not work as expected on Windows.

What ends up happening is that it tries to copy() the
jar to a file called something like: C:\webserver\temp\/WEB-INF/lib/MyTags.jar <P>

I suggest adding some code somewhere shortly after <BR>
if (!uriIn.startsWith("/")) <BR>
which does something like uriIn.replace('/',File.separatorChar);


Mime
View raw message