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

Redirect cycle detected for URL, if redirect adds a trailing slash

From: Julian Foad <julianfoad_at_apache.org>
Date: Wed, 11 Sep 2019 17:22:37 +0100

[[[
$ curl --head https://archive.apache.org/dist
HTTP/1.1 301 Moved Permanently
Location: https://archive.apache.org/dist/
...

$ svn ls https://archive.apache.org/dist
Redirecting to URL 'https://archive.apache.org/dist':
Redirecting to URL 'https://archive.apache.org/dist':
svn: E195019: Redirect cycle detected for URL
'https://archive.apache.org/dist'
]]]

Subversion "canonicalized" the redirect URL in its own way, and in doing
so removed the trailing slash, and then tried again and got the same
response.

I feel we should not really blame the server configuration. If the
server was intended for use by svn clients only, we could say it should
be changed to match what the Subversion client software expects, but
that server is aimed just as much at web browser users, not that this
trailing slash is important for them either. Anyhow, this kind of
redirect seems perfectly reasonable and it seems wrong that Subversion
does not work with it.

I suppose Subversion should not canonicalize a URL received in a
redirect, but should use it as given.

Does that make sense?

- Julian
Received on 2019-09-11 18:22:40 CEST

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

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