[Bug 654549] Re: [SRU] Tomcat6 fails to upgrade if JAVA_OPTS contains /

James Page 654549 at bugs.launchpad.net
Mon Apr 18 07:28:29 UTC 2011


** Description changed:

  IMPACT:
  This bug will impact tomcat6 installs upgrading to Maverick and updates in Maverick itself; its fixed in Natty.
  
- Using the '/' character in JAVA_OPTS is quite common - its normally uses
+ Using the '/' character in JAVA_OPTS is quite common - its normally used
  to specify the filesystem location for additional application files such
  as those for Hudson:
  
-  -Dhudson.home=/home/hudson
+  -Dhudson.home=/home/hudson
  
  Updates/upgrades using this type of option will fail.
  
  FIX:
  tomcat6.postinst uses sed to parse various debconf answers into a template which is used to generate /etc/default/tomcat6; this currently uses '/' as the pattern delimiter - the fix switches this to '%' which is unlikely to be used in JAVA_OPTS.
  
  PATCH:
  See linked branch
  
  TEST CASE 1:
  sudo apt-get install tomcat6
  sudo dpkg-reconfigure tomcat6
-  Accept all default for user and group
-  Add an additional parameter to JAVA_OPTS - "-Dtest.dir=/var/log/nonsense"
+  Accept all default for user and group
+  Add an additional parameter to JAVA_OPTS - "-Dtest.dir=/var/log/nonsense"
  
  Reconfiguration will fail with "sed: -e expression #1, char 44: unknown
  option to `s'"
  
  TEST CASE 2:
  sudo apt-get install tomcat6
  sudo vi /etc/default/tomcat6
-  Add an additional parameter to JAVA_OPTS - "-Dtest.dir=/var/log/nonsense"
+  Add an additional parameter to JAVA_OPTS - "-Dtest.dir=/var/log/nonsense"
  sudo dpkg-reconfigure tomcat6
-  Accept all default values
+  Accept all default values
  
- Reconfiguration will fail with "sed: -e expression #1, char 44: unknown option to `s'"
-  
+ Reconfiguration will fail with "sed: -e expression #1, char 44: unknown
+ option to `s'"
+ 
  IMPACT:
  Minor change to maintainer script; already in development release so limited regression potential.
  
  >>> Original bug report <<<
  
  Binary package hint: tomcat6
  
  tomcat upgrade fails with the following error:
  
  "sed: -e expression #1, char 44: unknown option to `s'"
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: tomcat6 6.0.28-2ubuntu1
  ProcVersionSignature: Ubuntu 2.6.35-22.33-server 2.6.35.4
  Uname: Linux 2.6.35-22-server x86_64
  Architecture: amd64
  Date: Mon Oct  4 15:51:21 2010
  InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
  PackageArchitecture: all
  ProcEnviron:
   LANG=en_GB.utf8
   SHELL=/bin/bash
  SourcePackage: tomcat6

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in Ubuntu.
https://bugs.launchpad.net/bugs/654549

Title:
  [SRU] Tomcat6 fails to upgrade if JAVA_OPTS contains /



More information about the Ubuntu-server-bugs mailing list