subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Strapetz <marc.strap...@syntevo.com>
Subject JavaHL: redirect cycle detected for non-cyclic redirects
Date Wed, 24 May 2017 10:19:13 GMT
I have following Apache virtual host configuration which contains a 
redirect:

   RedirectMatch 301 ^/svntest/(.*)$ /svntests/$1

   <Location /svntests>
     DAV svn
     SVNParentPath /misc/svntests
     ...
   </Location>

When trying to access a redirected repository from command line, this 
works fine:

$ svn ls https://host/svntest/test1
Redirecting to URL 'https://host/svntests/test1':
project1/

When trying to access using JavaHL, a "Redirect cycle detected for URL" 
SubversionException is thrown. Code snippet:

RemoteFactory remoteFactory = new RemoteFactory();
remoteFactory.openRemoteSession("https://host/svntest/test1", 100);

As the definition is not cyclic and retryAttempts=100 should be 
sufficient, it looks like there is a JavaHL problem related to redirects?

Tested with Subversion 1.9.5

-Marc

Mime
View raw message