On Tue, 2002-08-13 at 15:53, Shay Harding wrote:
> On Tue, 2002-08-13 at 15:41, Julian Fitzell wrote:
> > Shay Harding wrote:
> > > On Tue, 2002-08-13 at 08:57, Karl Fogel wrote:
> > >
> > >>Shay Harding <sharding@ccbill.com> writes:
> > >>
> > >>>Ok, I am at my wits end about these problems that suddenly appeared
> > >>>after upgrading to the newest Subversion (revision 2959) and Apache
> > >>>(from CVS).
> > >>>
> > >>>I keep getting the following error no matter what commands I issue:
> > >>>
> > >>>[shayh]# svn mkdir http://localhost/repos/programmers -m "Test"
> > >>>subversion/libsvn_ra_dav/util.c:332: (apr_err=20014, src_err=0)
> > >>>svn: Error string not specified yet
> > >>>svn: OPTIONS request failed on /repos
> > >>>subversion/libsvn_ra_dav/util.c:306: (apr_err=20014, src_err=0)
> > >>>svn: The OPTIONS status was 301, but expected 200.
> > >>>
> > >>>Now this was working before I updated. I get the same error if I try to
> > >>>import anything now as well.
> > >>>
> > >>>Nothing at all appears in the Apache error log, just the above error
> > >>>that gets printed to screen.
> > >>
> > >>Can you do an ethereal capture of the traffic on port 80?
> > >>
> > >>(And if you're really feeling ambitious, do the same thing with the
> > >>old code, the version that worked, so we can compare them...)
> > >>
> > >
> > >
> > > Well, after messing with this for a while, it seems Apache (or some
> > > component of Apache) is sending back a 301 status (permanent redirect)
> > > for any access to http://localhost/repos where my repository resides. If
> > > I lynx to the page, I get there no problem but that's only because Lynx
> > > redirects me without complaints. If I use 'svn mkdir
> > > http://localhost/repos/A', it errors out because it is expecting a 200
> > > (OK) status, but receiving a 301 status back (guess there's no redirect
> > > capability within mod_dav_svn (or maybe it's the mod_dav) module?
> > >
> > > Now as to why the Apache server is insisting on a 301 status... I have
> > > no clue. There are no <Redirect> type tags in the conf file and the SVN
> > > config is:
> > >
> > > Alias /repos /var/securewww/repos
> > >
> > > <Location /repos>
> > > DAV svn
> > > SVNPath /var/securewww/repos
> > >
> > > AllowOverride None
> > > Options None
> > > </Location>
> > >
And it figures I would find the solution right after I post to the
list... seems the 'Alias' line needs to be:
Alias /repos/ /var/securewww/repos/
Guess for SVN to correctly get to the repository, the trailing slashes
are required. Guess my next question is which piece of the puzzle does
the actual lookup (and handling of redirects if necessary) of the
resource requested?
Shay
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 14 00:54:43 2002