commons-httpclient does not work with net.ipv6.bindv6only=1

Bug #547099 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-6 (Debian)
Fix Released
Unknown
openjdk-6 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

From the Debian report:

Hi,

I could finally track the IPv6 issue of eclipse to this package. It
seems to be a bug of commons-httpclient. The following code

  import org.apache.commons.httpclient.*;
  import org.apache.commons.httpclient.methods.*;

  class Http {
    public static void main(String[] args) throws Exception {
      HttpClient client = new HttpClient();
      GetMethod method = new GetMethod(args[0]);
      int statusCode = client.executeMethod(method);
      if (statusCode != HttpStatus.SC_OK) {
 System.err.println("Method failed: " + method.getStatusLine());
      }
    }
  }

fails with net.ipv6.bindv6only=1 but works with net.ipv6.bindv6only=0.
(openjdk version: 6b18~pre3-1)

Torsten

Matthias Klose (doko)
Changed in commons-httpclient (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Matthias Klose (doko)
affects: commons-httpclient (Debian) → openjdk-6 (Debian)
affects: commons-httpclient (Ubuntu) → openjdk-6 (Ubuntu)
Changed in openjdk-6 (Ubuntu):
status: Confirmed → In Progress
Changed in openjdk-6 (Debian):
status: Unknown → Fix Committed
Revision history for this message
Matthias Klose (doko) wrote :

fixed in 6b18~pre4

Changed in openjdk-6 (Ubuntu):
status: In Progress → Fix Released
Changed in openjdk-6 (Debian):
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.