[SRU] Tomcat6 fails to upgrade if JAVA_OPTS contains /
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
Fix Released
|
Medium
|
Thierry Carrez | ||
Maverick |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
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 used to specify the filesystem location for additional application files such as those for Hudson:
-Dhudson.
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/
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.
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/
Add an additional parameter to JAVA_OPTS - "-Dtest.
sudo dpkg-reconfigure tomcat6
Accept all default values
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
ProcVersionSign
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)
PackageArchitec
ProcEnviron:
LANG=en_GB.utf8
SHELL=/bin/bash
SourcePackage: tomcat6
Related branches
- Marc Deslauriers: Approve
-
Diff: 32 lines (+11/-3)2 files modifieddebian/changelog (+8/-0)
debian/tomcat6.postinst (+3/-3)
Changed in tomcat6 (Ubuntu Maverick): | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in tomcat6 (Ubuntu Maverick): | |
assignee: | nobody → James Page (james-page) |
summary: |
- Tomcat6 fails to upgrade if JAVA_OPTS contains / + [SRU] Tomcat6 fails to upgrade if JAVA_OPTS contains / |
Changed in tomcat6 (Ubuntu Maverick): | |
status: | Confirmed → In Progress |
description: | updated |
Changed in tomcat6 (Ubuntu Maverick): | |
importance: | Low → Medium |
description: | updated |
tags: | added: testcase |
Changed in tomcat6 (Ubuntu Maverick): | |
status: | Fix Committed → Confirmed |
Changed in tomcat6 (Ubuntu Maverick): | |
assignee: | James Page (james-page) → nobody |
status: | Confirmed → Won't Fix |
Could you attach your /etc/default/ tomcat6 file, please.