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

Coniguring 301/302 redirects to track an fspath rename

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Fri, 1 Feb 2013 20:11:22 +0200

Does anyone have an example of how to configure a server to issue
301/302 redirects for an fspath that had been renamed?

For example we have

    <Location /repos/asf>
    SVNPath ...
    </Location>

And we'd like to do:

    # The project was renamed
    Redirect /repos/asf/openejb https://svn.apache.org/repos/asf/tomee

but we're hitting various problems:

- The redirect kicks in for historical revisions (prior to the 'svn mv
  ^/openejb ^/tomee' in r1432805) too, such as:
  https://svn.apache.org/repos/asf/openejb?p=1400000

- A similar configuration failed to kick in during update/checkout of
  working copy checked out from (a pre-rename revision of) ^/openejb:
  the initial request got matched and redirected, but a subsequent
  request to /repos/asf/!svn/.../openejb failed to match.

Ideally we'd like to issue a 301 redirect for requests to /openejb that
concern r1432805 or later, but leave requests concerning r1432804 or
earlier untouched.

(or maybe what we *really* want is a repos-side symlink... but we're
running 1.7, not 1.9, and we'll appreciate solutions that work within
that limitation :))
Received on 2013-02-01 19:12:02 CET

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.