<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>242826</bug_id>
          
          <creation_ts>2008-10-19 21:39 0000</creation_ts>
          <short_desc>www-servers/tomcat-6.0.18 reports wrong version number</short_desc>
          <delta_ts>2008-10-22 00:08:32 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Java</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>243162</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo-bugs.f@umsar.org</reporter>
          <assigned_to>java@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>gentoo-bugs.f@umsar.org</who>
            <bug_when>2008-10-19 21:39:32 0000</bug_when>
            <thetext>At runtime, ServletContext.getServerInfo() returns &quot;snapshot&quot; instead of &quot;6.0.18&quot; as a version number.

As far as i can tell, some $version and $version.number do need to be specified at compile time to get the right numbers at runtime.

Naive patch will follow.

To see what is going on, see those files:
./apache-tomcat-6.0.18-src/java/org/apache/catalina/util/ServerInfo.java
./apache-tomcat-6.0.18-src/java/org/apache/catalina/util/ServerInfo.properties
./apache-tomcat-6.0.18-src/build.xml
./apache-tomcat-6.0.18-src/build.properties.default</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo-bugs.f@umsar.org</who>
            <bug_when>2008-10-19 21:40:11 0000</bug_when>
            <thetext>Created an attachment (id=169138)
define $version and $version.number

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fordfrog@gentoo.org</who>
            <bug_when>2008-10-22 00:08:32 0000</bug_when>
            <thetext>Thank you for the bug report and the patch. Fixed in tomcat-6.0.18-r1.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>169138</attachid>
            <date>2008-10-19 21:40 0000</date>
            <desc>define $version and $version.number</desc>
            <filename>server-info.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHRvbWNhdC02LjAuMTguZWJ1aWxkLm9sZAkyMDA4LTEwLTA3IDE3OjEyOjE3LjAwMDAwMDAw
MCArMDIwMAorKysgdG9tY2F0LTYuMC4xOC5lYnVpbGQJMjAwOC0xMC0xOSAyMzoyNDoxMC4wMDAw
MDAwMDAgKzAyMDAKQEAgLTc0LDYgKzc0LDcgQEAKIAlhbnRmbGFncz0iJHthbnRmbGFnc30gLURq
ZHQuamFyPSQoamF2YS1wa2dfZ2V0amFyIGVjbGlwc2UtZWNqLTMuMyBlY2ouamFyKSIKIAlhbnRm
bGFncz0iJHthbnRmbGFnc30gLURqc3AtYXBpLmphcj0kKGphdmEtcGtnX2dldGphciB0b21jYXQt
c2VydmxldC1hcGktMi41IGpzcC1hcGkuamFyKSIKIAlhbnRmbGFncz0iJHthbnRmbGFnc30gLURz
ZXJ2bGV0LWFwaS5qYXI9JChqYXZhLXBrZ19nZXRqYXIgdG9tY2F0LXNlcnZsZXQtYXBpLTIuNSBz
ZXJ2bGV0LWFwaS5qYXIpIgorCWFudGZsYWdzPSIke2FudGZsYWdzfSAtRHZlcnNpb249JHtQVn0g
LUR2ZXJzaW9uLm51bWJlcj0ke1BWfSIKIAllYW50ICR7YW50ZmxhZ3N9CiB9CiAK
</data>        

          </attachment>
    </bug>

</bugzilla>