[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: IPv6 URL support in SVN? v1.8.4 works with IPv4, not with IPv6

From: Ben Reser <ben_at_reser.org>
Date: Sat, 02 Nov 2013 15:58:14 -0700

On 11/2/13 10:48 AM, darx_at_sent.com wrote:
> reading @
>
> @
> http://www.wandisco.com/svnforum/threads/54273-svn-error-when-checkout-from-ipv6-url
>
> IPv6 support is (?) in svn v>1.8

That post is actually not particularly helpful. It looks like there was a
regression at some point in 1.7.x where URLs with IPv6 ips in them stopped
working (e.g.
http://[2001:470:e966:5:5a55:caff:fef4:5c8b]:8088/svn-test-work/local_tmp/repos).
 But that's the only thing that I'm aware of that's broken with our IPv6
support and only with 1.7.x.

> reading CHANGES, and poking around in upstream sources, it's not clear
> to me what that status of IPv6 support in SVN is.
>
> IS there full IPv6 support in svn?

Subversion has full IPv6 support. I'm able to use it with only IPv6
nameservers defined, against a HTTP server with only a AAAA DNS record and
that's only listening on IPv6. In fact I'm able to do that even with 1.6.x
client. The only failure below is with a 1.7.x client using an IPv6 ip rather
than DNS (which is mentioned in the thread you linked to above).

$ cat /etc/resolv.conf
#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
#
search brain.org
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844

$ ps -ef | grep httpd
 1000 54772 1 0 3:37PM ?? 0:00.01
/Users/breser/httpd-2.2.x-root/bin/httpd -k start
 1000 54773 54772 0 3:37PM ?? 0:00.00
/Users/breser/httpd-2.2.x-root/bin/httpd -k start
 1000 54774 54772 0 3:37PM ?? 0:00.00
/Users/breser/httpd-2.2.x-root/bin/httpd -k start
 1000 54775 54772 0 3:37PM ?? 0:00.00
/Users/breser/httpd-2.2.x-root/bin/httpd -k start
 1000 54776 54772 0 3:37PM ?? 0:00.00
/Users/breser/httpd-2.2.x-root/bin/httpd -k start
 1000 54789 33137 0 3:38PM ttys007 0:00.00 grep httpd

$ lsof -p 54772 -nP | grep LISTEN
httpd 54772 breser 3u IPv6 0xffffff800d3d0d80 0t0 TCP
[2001:470:e966:5:5a55:caff:fef4:5c8b]:8088 (LISTEN)

$ dig kong.brain.org any

; <<>> DiG 9.9.2-P1 <<>> kong.brain.org any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30474
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;kong.brain.org. IN ANY

;; ANSWER SECTION:
kong.brain.org. 3114 IN AAAA 2001:470:e966:5:5a55:caff:fef4:5c8b

;; Query time: 24 msec
;; SERVER: 2001:4860:4860::8888#53(2001:4860:4860::8888)
;; WHEN: Sat Nov 2 15:39:05 2013
;; MSG SIZE rcvd: 71

$ svn --version
svn, version 1.6.18 (r1303927)
   compiled Feb 6 2013, 14:18:52

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

$ svn ls --username jrandom --password rayjandom
http://kong.brain.org:8088/svn-test-work/local_tmp/repos
A/
iota

$ svn-1.7 --version
svn, version 1.7.14-dev (under development)
   compiled Oct 1 2013, 21:37:50

Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

$ svn-1.7 ls --username jrandom --password rayjandom
http://kong.brain.org:8088/svn-test-work/local_tmp/repos
A/
iota

 svn-1.8 --version --verbose
svn, version 1.8.4-dev (under development)
   compiled Nov 2 2013, 15:45:12 on x86_64-apple-darwin11.4.2

Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.2.1
  - handles 'http' scheme
  - handles 'https' scheme

System information:

* running on x86_64-apple-darwin11.4.2
  - Mac OS X 10.7.5 Lion, build 11G63
* linked dependencies:
  - APR 1.4.2 (compiled with 1.4.2)
  - APR-Util 1.3.10 (compiled with 1.3.10)
  - SQLite 3.7.15.1 (static)

$ svn-1.8 ls --username jrandom --password rayjandom
http://kong.brain.org:8088/svn-test-work/local_tmp/repos
A/
iota

$ svn ls --username jrandom --password rayjandom
http://[2001:470:e966:5:5a55:caff:fef4:5c8b]:8088/svn-test-work/local_tmp/repos
A/
iota

$ svn-1.7 ls --username jrandom --password rayjandom
http://[2001:470:e966:5:5a55:caff:fef4:5c8b]:8088/svn-test-work/local_tmp/repos
/Users/breser/wandisco/share-local/wcs/svn-1.7.x/subversion/libsvn_ra_neon/session.c:798:
(apr_err=235000)
svn: E235000: In file
'/Users/breser/wandisco/share-local/wcs/svn-1.7.x/subversion/libsvn_ra_neon/session.c'
line 798: assertion failed (svn_uri_is_canonical(repos_URL, pool))
Abort trap: 6

$ svn-1.8 ls --username jrandom --password rayjandom
http://[2001:470:e966:5:5a55:caff:fef4:5c8b]:8088/svn-test-work/local_tmp/repos
A/
iota

$ svn-trunk --version --verbose
svn, version 1.9.0-dev (under development)
   compiled Oct 17 2013, 03:38:50 on x86_64-apple-darwin11.4.2

Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.2.1
  - handles 'http' scheme
  - handles 'https' scheme

System information:

* running on x86_64-apple-darwin11.4.2
  - Mac OS X 10.7.5 Lion, build 11G63
* linked dependencies:
  - APR 1.4.9-dev (compiled with 1.4.9-dev)
  - APR-Util 1.5.3-dev (compiled with 1.5.3-dev)
  - SQLite 3.7.12 (static)

$ svn-trunk ls --username jrandom --password rayjandom
http://kong.brain.org:8088/svn-test-work/local_tmp/repos
A/
iota

$ svn-trunk ls --username jrandom --password rayjandom
http://[2001:470:e966:5:5a55:caff:fef4:5c8b]:8088/svn-test-work/local_tmp/repos
A/
iota
Received on 2013-11-02 23:58:52 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.