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

Re: Can't commit perl code

From: Nate <mytmpuser_at_aivector.com>
Date: Thu, 3 Mar 2011 00:37:34 -0700

Ok,
Your post was great and led me to find this particular problem causing the issue, but I still haven't solved the problem.

These apache handlers are causing the issue:
<LocationMatch "(\.html)$">
  SetHandler perl-script
  PerlHandler HTML::Mason::ApacheHandler
</LocationMatch>

#Hide private components from users.
<LocationMatch "(dhandler|autohandler|\.mas|\.m(html|txt|pl))$">
  SetHandler perl-script
  PerlInitHandler Apache::Constants::NOT_FOUND
</LocationMatch>

The above are Mason handlers which need to be there, but not for the directory where we try and check code in.

The location handlers are causing me the headache. This is tougher to solve than I originally thought. Is there any way to disable these handlers for a subdirectory? I've tried a ton of things to do it already, but pretty much every combination has failed.

The URI location would be under /myfolder
The physical location on the server would be /usr/local/myfolder

Adding this line to the httpd.conf file changed the behavior:
<Location /myfolder>
    SetHandler default-handler
</Location>

Here's the error message now:
Server sent unexpected return value (500 Internal Server Error) in response to CHECKOUT request for '/myfolder YADDA YADDA'

Any clues on how to disable the apache directives for /myfolder?

On Feb 26, 2011, at 4:52 PM, Ryan Schmidt wrote:

> On Feb 26, 2011, at 16:18, Nate wrote:
>
>> Steps to reproduce:
>> 1) created a new repo in /opt/svnrepo using the following command: svnadmin create myproject
>> 2) Next I checked out the client on my workstation (I've tried it on a Mac and a Linux Centos 5.5 system)
>> svn co https://myserver.whatever.com/repopath/reponame reponame
>> 3) cd reponame
>> 4) I copied the mason files (autohandler, dbhandler) and the other .html files into the reponame from the server
>> 5) svn ci
>>
>> Here's what I keep getting and I haven't found any way around it (for those who say: Just Google it, I invite you to find me solution that actually works, most haven't!)
>> Adding autohandler
>> svn: Commit failed (details follow):
>> svn: Server sent unexpected return value (500 Internal Server Error) in response to PROPFIND request for '/repos/acutrans/!svn/wrk/123df6d8-1458-42ca-bb69-a1f438f3ee78/autohandler'
>> svn: Server sent unexpected return value (500 Internal Server Error) in response to PROPFIND request for '/repos/acutrans/autohandler'
>> svn: Your commit message was left in a temporary file:
>> svn: '/home/nathanb/acutrans/svn-commit.3.tmp'
>>
>> This keeps happening over and over on the same file. It does the same thing to .mas files as well.
>
> I am guessing there is some kind of global rule in your Apache configuration file, or an applicable .htaccess file, that has a rule that is causing this problem. (A rule probably meant for some entirely other purpose, but which is also having an effect for your Subversion commits.) See for example previous messages on this list like:
>
> http://svn.haxx.se/users/archive-2008-07/0944.shtml
>
>
>
Received on 2011-03-03 08:38:46 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.