RE: Require a tomcat build with bug fix....

2004-04-13 Thread Philip Baruc
Will this issue be resolved in a tomcat 5.0 version?

pb

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 You're also not going to get a tomcat 4.0 official
 build for this fix.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Philip Baruc [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 12, 2004 4:42 PM
 To: Tomcat Users List
 Subject: RE: Require a tomcat build with bug
 fix
 
 I just tried to run tomcat 5.0.22 and i don't
 belive
 the bug(10469) is resolved in this build.
 I see the fix here:
 http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-

4.0/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.jav
 a
 
 This also were i got the version 1.50 that i
 alluded
 to in an earlier email.
 
 from what i can see. IN the 1.50 version. there has
 been a change made to the getURL(File file)
 function:
 
/**
  * Get URL.
  */
 protected URL getURL(File file)
 throws MalformedURLException {
 
 File realFile = file;
 try {
 realFile = realFile.getCanonicalFile();
 } catch (IOException e) {
 // Ignore
 }
 
 //return new URL(file: +
 realFile.getPath());
 URLEncoder urlEncoder = new URLEncoder();
 urlEncoder.addSafeCharacter(',');
 urlEncoder.addSafeCharacter(':');
 urlEncoder.addSafeCharacter('-');
 urlEncoder.addSafeCharacter('_');
 urlEncoder.addSafeCharacter('.');
 urlEncoder.addSafeCharacter('*');
 urlEncoder.addSafeCharacter('/');
 urlEncoder.addSafeCharacter('!');
 urlEncoder.addSafeCharacter('~');
 urlEncoder.addSafeCharacter('\'');
 urlEncoder.addSafeCharacter('(');
 urlEncoder.addSafeCharacter(')');
 
 return new

URL(urlEncoder.encode(realFile.toURL().toString()));
 }
 
 
 In the tomcat 5.0.22 version, it appears that the
 getURL(File) still looks as it did before markt
 made
 his feb 22 fix to the bug.
 
 It appears that the fix is in the tomcat 4.0 branch
 but not in the tomcat 5.0 branchs. I hope i am
 reading
 the cvs repositories correctly. If not perhaps you
 can
 help me. Basially I'm looking for a build of tomcat
 (perferably a 4.0 build) that has this fix. I am
 reluctant to build the tomcat source files myself
 and
 distribute a custom bug fixed version of tomcat to
 our
 customers.
 
 I'm running into a problem without this fix because
 i'm attempting to make an RMI call from with in
 tomcat. When tomcat attempts to resolve the remove
 interface i get an exception like:
 
 java.rmi.UnmarshalException: error unmarshalling
 arguments; nested exception is:
  java.net.MalformedURLException: no protocol:
 Files/Apache
 
 I belive that this is cause WebAppClassLoader
 getURL(File) function is suffering from a bug
 encoding
 problem in the jdk.
 

http://developer.java.sun.com/developer/bugParade/bugs/4273532.html
 
 I belive that Apache has recognized this problem
 and
 has implemented its fix in its cvs repositories in
 its
 tomcat 4.0 branch, but no in any of the builds on
 the
 4.0 branch.
 
 Please advice...
 
 Thank You,
 P.B.
 
 
 --- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 

http://www.apache.org/dist/jakarta/tomcat-5/v5.0.22-alpha/
 
  Yoav Shapira
  Millennium Research Informatics
 
 
  -Original Message-
  From: Philip Baruc [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 12, 2004 3:04 PM
  To: Tomcat Users List
  Subject: RE: Require a tomcat build with bug
  fix
  
  Is there a place where i can download a build of
  the
  5.0.22-alpha version of tomcat, or does this
  require
  me pulling the 5.0.22 branch from cvs and
 building
  it?
  
  philip b
  
  --- Shapira, Yoav [EMAIL PROTECTED]
 wrote:
  
   Hi,
  
   I've also downloaded
   the 4.1.30 source and noticed that the
   WebAppClassLoader is only at version 1.48
 where
  as
   the
   bug fix is applied to a 1.50 version of the
   WebAppClassLoader.
  
   I'm not sure where you're getting your version
   numbers.
  
 

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src
 /
  s
   hare/org/apache/catalina/loader/ shows that
 1.31
  is
   the current CVS
   version of WebAppClassLoader, so what's 1.48
 and
   1.50 that you're
   talking about?
  
   Mark marked the issue as fixed on 2004-02-22.
   4.1.30 was released on
   2004-01-25.  So what I said before was wrong:
  4.1.30
   doesn't have your
   fix.  For that matter, 5.0.19 is from
 2004-02-14,
  so
   it doesn't have
   your fix either.  5.0.22-alpha is from last
 week
  and
   should have your
   fix.
  
   Tomcat 5 is not so different that you should
 be
   afraid to try it.
  
   Yoav Shapira
  
  
  
  
  
   This e-mail, including any attachments, is a
   confidential business communication, and may
  contain
   information that is confidential, proprietary
  and/or
   privileged.  This e-mail is intended only for
 the
   individual(s) to whom it is addressed, and may

Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
Hello,

My company requires a stable build of tomcat 4.0 that
contains a bug fix to the WebAppClassLoader.
Specifically the bug is 10469 (deals with inconsisten
encoding of urls). I was wondering 2 things.

1) How might i aquire a build of tomcat that currently
has this bug fix (without building tomcat myself, i.e.
is there a nightly build i can pickup that has this
fix)


2) When will apache be releasing thier next stable
build of tomcat 4.0.

Thanks For any help.

Philip Baruc



=
---
Philip G. Baruc
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
When i look at the CVS repository and look at the 
WebAppClassLoader file, It doesn't appear that the bug
was fixed in the 4.1.30 build. I've also downloaded
the 4.1.30 source and noticed that the
WebAppClassLoader is only at version 1.48 where as the
bug fix is applied to a 1.50 version of the
WebAppClassLoader. Is there a way for me confirm that
this bug fix should be in the 4.1.30 version of
tomcat?

Also aren't the 5.0 version of tomcat very different
architecturaly from the 4.0 versions? I'm afraid to
just remove the 4.0 version and jump to the 5.0
version.

Regards,
Philip Baruc



--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 There have been stable releases since this was
 fixed: 4.1.30 on the
 tomcat 4.1 branch and 5.0.19 on the tomcat 5 branch.
 
 4.0 is no longer actively developed.  If you need
 this fix in a 4.0
 build, you have to apply this patch and build it
 yourself.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Philip Baruc [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 12, 2004 11:14 AM
 To: [EMAIL PROTECTED]
 Subject: Require a tomcat build with bug fix
 
 Hello,
 
 My company requires a stable build of tomcat 4.0
 that
 contains a bug fix to the WebAppClassLoader.
 Specifically the bug is 10469 (deals with
 inconsisten
 encoding of urls). I was wondering 2 things.
 
 1) How might i aquire a build of tomcat that
 currently
 has this bug fix (without building tomcat myself,
 i.e.
 is there a nightly build i can pickup that has this
 fix)
 
 
 2) When will apache be releasing thier next stable
 build of tomcat 4.0.
 
 Thanks For any help.
 
 Philip Baruc
 
 
 
 =
 ---
 Philip G. Baruc
 [EMAIL PROTECTED]
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online by April 15th
 http://taxes.yahoo.com/filing.html
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a
 confidential business communication, and may contain
 information that is confidential, proprietary and/or
 privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not
 be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail
 from your computer system and notify the sender. 
 Thank you.
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


=
---
Philip G. Baruc
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
Ok thanks. I will try this version..

philip
--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 I've also downloaded
 the 4.1.30 source and noticed that the
 WebAppClassLoader is only at version 1.48 where as
 the
 bug fix is applied to a 1.50 version of the
 WebAppClassLoader.
 
 I'm not sure where you're getting your version
 numbers.

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s
 hare/org/apache/catalina/loader/ shows that 1.31 is
 the current CVS
 version of WebAppClassLoader, so what's 1.48 and
 1.50 that you're
 talking about?
 
 Mark marked the issue as fixed on 2004-02-22. 
 4.1.30 was released on
 2004-01-25.  So what I said before was wrong: 4.1.30
 doesn't have your
 fix.  For that matter, 5.0.19 is from 2004-02-14, so
 it doesn't have
 your fix either.  5.0.22-alpha is from last week and
 should have your
 fix.
 
 Tomcat 5 is not so different that you should be
 afraid to try it.
 
 Yoav Shapira
 
 
 
 
 
 This e-mail, including any attachments, is a
 confidential business communication, and may contain
 information that is confidential, proprietary and/or
 privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not
 be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail
 from your computer system and notify the sender. 
 Thank you.
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


=
---
Philip G. Baruc
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
Is there a place where i can download a build of the
5.0.22-alpha version of tomcat, or does this require
me pulling the 5.0.22 branch from cvs and building it?

philip b

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 I've also downloaded
 the 4.1.30 source and noticed that the
 WebAppClassLoader is only at version 1.48 where as
 the
 bug fix is applied to a 1.50 version of the
 WebAppClassLoader.
 
 I'm not sure where you're getting your version
 numbers.

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s
 hare/org/apache/catalina/loader/ shows that 1.31 is
 the current CVS
 version of WebAppClassLoader, so what's 1.48 and
 1.50 that you're
 talking about?
 
 Mark marked the issue as fixed on 2004-02-22. 
 4.1.30 was released on
 2004-01-25.  So what I said before was wrong: 4.1.30
 doesn't have your
 fix.  For that matter, 5.0.19 is from 2004-02-14, so
 it doesn't have
 your fix either.  5.0.22-alpha is from last week and
 should have your
 fix.
 
 Tomcat 5 is not so different that you should be
 afraid to try it.
 
 Yoav Shapira
 
 
 
 
 
 This e-mail, including any attachments, is a
 confidential business communication, and may contain
 information that is confidential, proprietary and/or
 privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not
 be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail
 from your computer system and notify the sender. 
 Thank you.
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


=
---
Philip G. Baruc
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
I just tried to run tomcat 5.0.22 and i don't belive
the bug(10469) is resolved in this build.
I see the fix here:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java

This also were i got the version 1.50 that i alluded
to in an earlier email.

from what i can see. IN the 1.50 version. there has
been a change made to the getURL(File file) function:

   /**
 * Get URL.
 */
protected URL getURL(File file)
throws MalformedURLException {

File realFile = file;
try {
realFile = realFile.getCanonicalFile();
} catch (IOException e) {
// Ignore
}

//return new URL(file: +
realFile.getPath());
URLEncoder urlEncoder = new URLEncoder();
urlEncoder.addSafeCharacter(',');
urlEncoder.addSafeCharacter(':');
urlEncoder.addSafeCharacter('-');
urlEncoder.addSafeCharacter('_');
urlEncoder.addSafeCharacter('.');
urlEncoder.addSafeCharacter('*');
urlEncoder.addSafeCharacter('/');
urlEncoder.addSafeCharacter('!');
urlEncoder.addSafeCharacter('~');
urlEncoder.addSafeCharacter('\'');
urlEncoder.addSafeCharacter('(');
urlEncoder.addSafeCharacter(')');

return new
URL(urlEncoder.encode(realFile.toURL().toString()));
}


In the tomcat 5.0.22 version, it appears that the 
getURL(File) still looks as it did before markt made
his feb 22 fix to the bug.

It appears that the fix is in the tomcat 4.0 branch
but not in the tomcat 5.0 branchs. I hope i am reading
the cvs repositories correctly. If not perhaps you can
help me. Basially I'm looking for a build of tomcat 
(perferably a 4.0 build) that has this fix. I am
reluctant to build the tomcat source files myself and
distribute a custom bug fixed version of tomcat to our
customers.

I'm running into a problem without this fix because
i'm attempting to make an RMI call from with in
tomcat. When tomcat attempts to resolve the remove
interface i get an exception like: 

java.rmi.UnmarshalException: error unmarshalling
arguments; nested exception is: 
java.net.MalformedURLException: no protocol:
Files/Apache

I belive that this is cause WebAppClassLoader
getURL(File) function is suffering from a bug encoding
problem in the jdk.

http://developer.java.sun.com/developer/bugParade/bugs/4273532.html

I belive that Apache has recognized this problem and
has implemented its fix in its cvs repositories in its
tomcat 4.0 branch, but no in any of the builds on the
4.0 branch.

Please advice...

Thank You,
P.B.


--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 

http://www.apache.org/dist/jakarta/tomcat-5/v5.0.22-alpha/
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Philip Baruc [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 12, 2004 3:04 PM
 To: Tomcat Users List
 Subject: RE: Require a tomcat build with bug
 fix
 
 Is there a place where i can download a build of
 the
 5.0.22-alpha version of tomcat, or does this
 require
 me pulling the 5.0.22 branch from cvs and building
 it?
 
 philip b
 
 --- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I've also downloaded
  the 4.1.30 source and noticed that the
  WebAppClassLoader is only at version 1.48 where
 as
  the
  bug fix is applied to a 1.50 version of the
  WebAppClassLoader.
 
  I'm not sure where you're getting your version
  numbers.
 

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/
 s
  hare/org/apache/catalina/loader/ shows that 1.31
 is
  the current CVS
  version of WebAppClassLoader, so what's 1.48 and
  1.50 that you're
  talking about?
 
  Mark marked the issue as fixed on 2004-02-22.
  4.1.30 was released on
  2004-01-25.  So what I said before was wrong:
 4.1.30
  doesn't have your
  fix.  For that matter, 5.0.19 is from 2004-02-14,
 so
  it doesn't have
  your fix either.  5.0.22-alpha is from last week
 and
  should have your
  fix.
 
  Tomcat 5 is not so different that you should be
  afraid to try it.
 
  Yoav Shapira
 
 
 
 
 
  This e-mail, including any attachments, is a
  confidential business communication, and may
 contain
  information that is confidential, proprietary
 and/or
  privileged.  This e-mail is intended only for the
  individual(s) to whom it is addressed, and may
 not
  be saved, copied, printed, disclosed or used by
  anyone else.  If you are not the(an) intended
  recipient, please immediately delete this e-mail
  from your computer system and notify the sender.
  Thank you.
 
 
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 =
 ---
 Philip G. Baruc
 [EMAIL PROTECTED]
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online by April 15th
 http://taxes.yahoo.com/filing.html

Prevent Tomcat from displaying directory listing.

2003-07-16 Thread Philip Baruc
I'm using tomcat 4.1 with the CoyoteConnector as the
http server. How do i configure tomcat so that tomcat
does NOT display the contents of a directory when that
directory is missing a welcome page. i.e. (index.html,
index.jsp)? Are there settings in the web.xml or
server.xml that i can set?

Thank You,
PHilip Baruc

=
---
Philip G. Baruc
[EMAIL PROTECTED]

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]