← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1482893] Re: common loader in catalina.properties is wrong

 

** Changed in: tomcat8 (Ubuntu)
   Importance: Undecided => Medium

** Changed in: tomcat8 (Ubuntu)
       Status: Fix Committed => Fix Released

** Changed in: tomcat8 (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: tomcat8 (Ubuntu Yakkety)
   Importance: Undecided => Medium

** No longer affects: tomcat6 (Ubuntu)

** No longer affects: tomcat6 (Ubuntu Yakkety)

** Changed in: tomcat6 (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: tomcat7 (Ubuntu)
   Importance: Undecided => Medium

** Changed in: tomcat7 (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: tomcat7 (Ubuntu Yakkety)
   Importance: Undecided => Medium

** Changed in: tomcat8 (Ubuntu Xenial)
       Status: In Progress => Triaged

** Changed in: tomcat8 (Ubuntu Yakkety)
       Status: In Progress => Triaged

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1482893

Title:
  common loader in catalina.properties  is wrong

Status in tomcat7 package in Ubuntu:
  New
Status in tomcat8 package in Ubuntu:
  Fix Released
Status in tomcat6 source package in Xenial:
  New
Status in tomcat7 source package in Xenial:
  New
Status in tomcat8 source package in Xenial:
  Triaged
Status in tomcat7 source package in Yakkety:
  New
Status in tomcat8 source package in Yakkety:
  Triaged
Status in tomcat7 package in Debian:
  New
Status in tomcat8 package in Debian:
  Fix Released

Bug description:
  [Impact]

  * The order of paths in common.loader does not follow the upstream
  tomcat recommendations. This can lead to unexpected behavior.

  [Test Case]

  * The broken tomcat8 will have

  common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/common/classes,${catalina.home}/common/*.jar

  while the corrected version will have

  common.loader="${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar","${catalina.base}/common/classes","${catalina.base}/common/*.jar","${catalina.home}/common/classes","${catalina.home}/common/*.jar"

  in catalina.properties.

  [Regression Potential]

  * The primary source of regressions would be end-users relying on the
  old path order and thus getting a different class loaded with the
  'fixed' version. However, the Ubuntu order is unspecified as being
  stable, and is contradictory to the public documentation.

  Please fix the following line in catalina.properties in all tomcat
  source packages.

  WRONG:
  common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/common/classes,${catalina.home}/common/*.jar

  CORRECT:
  common.loader=${catalina.base}/common/classes,${catalina.base}/common/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar

  Following problems with the wrong statement:
  1. Odering is wrong: catalina.base should overrule catalina.home here (see class loader howto below).
  2. catalina.home is expanded normally to /usr/share/tomcat7, but there is no common directory - it is below
  /var/lib/tomcat7 (as expanded by catalina.base).
  3. ${catalina.base}/lib,${catalina.base}/lib/*.jar are pointing to non existing directories.  I recommend to skip this part.

  For reference see https://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html
  > The locations searched by this class loader are defined by the common.loader property in
  > $CATALINA_BASE/conf/catalina.properties.
  > The default setting will search the following locations in the order they are listed:
  >
  >    unpacked classes and resources in $CATALINA_BASE/lib
  >    JAR files in $CATALINA_BASE/lib
  >    unpacked classes and resources in $CATALINA_HOME/lib
  >    JAR files in $CATALINA_HOME/lib

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1482893/+subscriptions