startup script prevents use of IPv6

Bug #1088681 reported by Hendrik Haddorp
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tomcat7 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

The tomcat7 startup script sets java.net.preferIPv4Stack=true if authbind is activated. Ubuntu 12.10 does however include authbind 2, which supports IPv6. Consequently the parameter should not be set anymore. Once I uncommented that line tomcat7 worked just fine via IPv6 and authbind.

regards,
Hendrik

Robie Basak (racb)
Changed in tomcat7 (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tomcat7 (Ubuntu):
status: New → Confirmed
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

So are you suggesting to remove line 152 from init script?
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true

Revision history for this message
Hendrik Haddorp (hendrik-haddorp) wrote :

yes

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

this has been committed on git [1], should appear on the next release, anyway I don't want to ship a new release just for two bugs, I prefer to wait for the next major release if nobody complains

[1] http://anonscm.debian.org/gitweb/?p=pkg-java/tomcat7.git;a=commitdiff;h=8d327c26e0308256c6499bb300e38d62c7b6f667

Changed in tomcat7 (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tomcat7 - 7.0.47-1

---------------
tomcat7 (7.0.47-1) unstable; urgency=low

  [ Gianfranco Costamagna ]
  * Team upload.
  * New upstream release, patch refresh.
  * Renamed patch fix-manager-webapp.path
    to fix-manager-webapp.patch (extension typo).
  * Refresh patches for upstream release.
  * Removed -Djava.net.preferIPv4Stack=true
    from init script (lp: #1088681),
    thanks Hendrik Haddorp.
  * Added webapp manager path patch (lp: #1128067)
    thanks TJ.

  [ tony mancill ]
  * Bump Standards-Version to 3.9.5.
  * Change copyright year in javadocs to 2013.
  * Add patch to include the distribution name in error pages.
    (Closes: #729840)

 -- tony mancill <email address hidden> Tue, 24 Dec 2013 16:46:34 +0000

Changed in tomcat7 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.