You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Sergey Kryzhny <se...@gmail.com> on 2009/04/09 10:19:24 UTC

strange bug with propget/proplist/propedit via mod_dav_svn

Hi All!

I found very strange bug.

I try to implement pre-revprop-change hook for change svn:log message and
run into problem with access via apache mod_dav_svn.
Everything work fine via EDITOR=nano svn propedit -r 16385 --revprop svn:log
file:///mnt/svn/repositories/projects/
I get back string like "fixin foo/bar JIRA-blah-blah" and can edit/set new
message.
But if I use EDITOR=nano svn propedit -r 16385 --revprop svn:log
http://svn1.mycompany.org/projects/
on same host or via internet / intranet I get empty response string.
Same  behavior for propget and proplist. Proplist does not return property
list via dav.

Tried different windows/linux client.
Tried different versions of subversion: 1.4.4 via yum on Fedora7, 1.5.4 via
yum on Fedora 10, 1.6.0 build from sources on Fedora10, 1.4.6 on Ubuntu 8.04

Tried FSFS and BDB repository.
Tried Dump/Load repository and svnadmin upgrade repository.

Very strange that for some repository revision it work normally for both
file/dav access. -> so hooks are OK.
Like for revision 12570 it work, for revision 16385 it dosen't work via dav.

And most mistycal that if I rename my repository (on host local FS) from
"projects" to some other name like "projects2" or "projects.orig" it start
work via dav!!!!
I even try to symlink directory "projects" to "projects2" - work on
"projects2" and dosen't work on "projects" !!!

Any ideas to resolve this strange bug?
I wil try apache mod_rewrite with renamed "projects2" later.

P.S. very anoying bug, then I try on test machines with "projects2" -
everything work, try to implement on real service and get not working
service.

-- 
--
Best regards,
Sergey

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1612367

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: strange bug with propget/proplist/propedit via mod_dav_svn

Posted by Sergey Kryzhny <se...@gmail.com>.
Hi Andrey!


2009/4/9 Andrey Repin <an...@freemail.ru>

> Greetings, Sergey Kryzhny!
>
> > I try to implement pre-revprop-change hook for change svn:log message and
> > run into problem with access via apache mod_dav_svn.
> > Everything work fine via EDITOR=nano svn propedit -r 16385 --revprop
> svn:log
> > file:///mnt/svn/repositories/projects/
> > I get back string like "fixin foo/bar JIRA-blah-blah" and can edit/set
> new
> > message.
> > But if I use EDITOR=nano svn propedit -r 16385 --revprop svn:log
> > http://svn1.mycompany.org/projects/
> > on same host or via internet / intranet I get empty response string.
> > Same  behavior for propget and proplist. Proplist does not return
> property
> > list via dav.
>
> > Tried different windows/linux client.
> > Tried different versions of subversion: 1.4.4 via yum on Fedora7, 1.5.4
> via
> > yum on Fedora 10, 1.6.0 build from sources on Fedora10, 1.4.6 on Ubuntu
> 8.04
>
> > Tried FSFS and BDB repository.
> > Tried Dump/Load repository and svnadmin upgrade repository.
>
> > Very strange that for some repository revision it work normally for both
> file/dav access. ->> so hooks are OK.
> > Like for revision 12570 it work, for revision 16385 it dosen't work via
> dav.
>
> > And most mistycal that if I rename my repository (on host local FS) from
> > "projects" to some other name like "projects2" or "projects.orig" it
> start
> > work via dav!!!!
> > I even try to symlink directory "projects" to "projects2" - work on
> > "projects2" and dosen't work on "projects" !!!
>
> > Any ideas to resolve this strange bug?
> > I wil try apache mod_rewrite with renamed "projects2" later.
>
> > P.S. very anoying bug, then I try on test machines with "projects2" -
> > everything work, try to implement on real service and get not working
> > service.
>
> What the server software version?
> What svn says when you executing these commands without attempt to edit?
>
>
uname -a
Linux domU-***********-B2 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST
2008 x86_64 x86_64 x86_64 GNU/Linux upgraded to Fedora 10

Subversion built from sources:
http://subversion.tigris.org/downloads/subversion-1.6.0.tar.bz2

sergey@serg-krz:~$ svn proplist --revprop -r 16570
http://svn1.mycompany.org/projects/
Unversioned properties on revision 16570:
  svn:log
  svn:author
  svn:date
sergey@serg-krz:~$ svn proplist --revprop -r 16389
http://svn1.mycompany.org/projects/
Unversioned properties on revision 16389:
sergey@serg-krz:~$ svn proplist --revprop -r 16389
http://svn1.mycompany.org/prj/
Unversioned properties on revision 16389:
  svn:log
  svn:author
  svn:date
sergey@serg-krz:~$

 Note that  http://svn1.mycompany.org/projects/ and
http://svn1.mycompany.org/prj/ - same repository
it use symlink :
[root@domU***** repositories]# ls -la
total 24
drwxr-xr-x 6 apache apache 4096 2009-04-09 09:07 .
drwxr-xr-x 4 root   root   4096 2009-04-02 14:43 ..
drwxr-xr-x 6 apache apache 4096 2009-04-08 07:24 prj
drwxr-xr-x 7 apache apache 4096 2009-04-07 12:23 projecto
lrwxrwxrwx 1 root   root     25 2009-04-09 09:07 projects ->
/mnt/svn/repositories/prj
drwxr-xr-x 6 apache apache 4096 2009-04-08 04:56 projectsb
drwxr-xr-x 6 apache apache 4096 2009-04-07 12:26 projects.orig
[root@domU-***** repositories]# pwd
/mnt/svn/repositories



> --
> WBR,
>  Andrey Repin (anrdaemon@freemail.ru) 09.04.2009, <15:38>
>
> Sorry for my terrible english...
>
>


-- 
--
Best regards,
Sergey

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1613533

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: strange bug with propget/proplist/propedit via mod_dav_svn

Posted by Andrey Repin <an...@freemail.ru>.
Greetings, Sergey Kryzhny!

> I try to implement pre-revprop-change hook for change svn:log message and
> run into problem with access via apache mod_dav_svn.
> Everything work fine via EDITOR=nano svn propedit -r 16385 --revprop svn:log
> file:///mnt/svn/repositories/projects/
> I get back string like "fixin foo/bar JIRA-blah-blah" and can edit/set new
> message.
> But if I use EDITOR=nano svn propedit -r 16385 --revprop svn:log
> http://svn1.mycompany.org/projects/
> on same host or via internet / intranet I get empty response string.
> Same  behavior for propget and proplist. Proplist does not return property
> list via dav.

> Tried different windows/linux client.
> Tried different versions of subversion: 1.4.4 via yum on Fedora7, 1.5.4 via
> yum on Fedora 10, 1.6.0 build from sources on Fedora10, 1.4.6 on Ubuntu 8.04

> Tried FSFS and BDB repository.
> Tried Dump/Load repository and svnadmin upgrade repository.

> Very strange that for some repository revision it work normally for both
file/dav access. ->> so hooks are OK.
> Like for revision 12570 it work, for revision 16385 it dosen't work via dav.

> And most mistycal that if I rename my repository (on host local FS) from
> "projects" to some other name like "projects2" or "projects.orig" it start
> work via dav!!!!
> I even try to symlink directory "projects" to "projects2" - work on
> "projects2" and dosen't work on "projects" !!!

> Any ideas to resolve this strange bug?
> I wil try apache mod_rewrite with renamed "projects2" later.

> P.S. very anoying bug, then I try on test machines with "projects2" -
> everything work, try to implement on real service and get not working
> service.

What the server software version?
What svn says when you executing these commands without attempt to edit?


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 09.04.2009, <15:38>

Sorry for my terrible english...

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1619616

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: strange bug with propget/proplist/propedit via mod_dav_svn

Posted by Sergey Kryzhny <se...@gmail.com>.
Hi Ryan!


2009/4/9 Ryan Schmidt <su...@ryandesign.com>

>
> On Apr 9, 2009, at 05:19, Sergey Kryzhny wrote:
>
>  I try to implement pre-revprop-change hook for change svn:log message and
>> run into problem with access via apache mod_dav_svn.
>> Everything work fine via EDITOR=nano svn propedit -r 16385 --revprop
>> svn:log file:///mnt/svn/repositories/projects/
>> I get back string like "fixin foo/bar JIRA-blah-blah" and can edit/set new
>> message.
>> But if I use EDITOR=nano svn propedit -r 16385 --revprop svn:log
>> http://svn1.mycompany.org/projects/
>> on same host or via internet / intranet I get empty response string.
>> Same  behavior for propget and proplist. Proplist does not return property
>> list via dav.
>>
>> Tried different windows/linux client.
>> Tried different versions of subversion: 1.4.4 via yum on Fedora7, 1.5.4
>> via yum on Fedora 10, 1.6.0 build from sources on Fedora10, 1.4.6 on Ubuntu
>> 8.04
>> Tried FSFS and BDB repository.
>> Tried Dump/Load repository and svnadmin upgrade repository.
>>
>> Very strange that for some repository revision it work normally for both
>> file/dav access. -> so hooks are OK.
>> Like for revision 12570 it work, for revision 16385 it dosen't work via
>> dav.
>>
>> And most mistycal that if I rename my repository (on host local FS) from
>> "projects" to some other name like "projects2" or "projects.orig" it start
>> work via dav!!!!
>> I even try to symlink directory "projects" to "projects2" - work on
>> "projects2" and dosen't work on "projects" !!!
>>
>> Any ideas to resolve this strange bug?
>>
>
> Perhaps there is some other Apache directive matching on the string
> "projects" and interfering. Search your httpd.conf and any other files it
> includes for the string "projects".
>
>
Only one string in apache configs match projects:
            RedirectMatch "^/?$" "/projects/"

I don't think this may be problem, with some revisions in svn repository
propget works, with some don't work.
If I use mod_proxy redirection from /projects to renamed "projects2"
repository - forks fine.

-- 
--
Best regards,
Sergey

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1626292

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: strange bug with propget/proplist/propedit via mod_dav_svn

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 9, 2009, at 05:19, Sergey Kryzhny wrote:

> I try to implement pre-revprop-change hook for change svn:log  
> message and run into problem with access via apache mod_dav_svn.
> Everything work fine via EDITOR=nano svn propedit -r 16385 -- 
> revprop svn:log file:///mnt/svn/repositories/projects/
> I get back string like "fixin foo/bar JIRA-blah-blah" and can edit/ 
> set new message.
> But if I use EDITOR=nano svn propedit -r 16385 --revprop svn:log  
> http://svn1.mycompany.org/projects/
> on same host or via internet / intranet I get empty response string.
> Same  behavior for propget and proplist. Proplist does not return  
> property list via dav.
>
> Tried different windows/linux client.
> Tried different versions of subversion: 1.4.4 via yum on Fedora7,  
> 1.5.4 via yum on Fedora 10, 1.6.0 build from sources on Fedora10,  
> 1.4.6 on Ubuntu 8.04
> Tried FSFS and BDB repository.
> Tried Dump/Load repository and svnadmin upgrade repository.
>
> Very strange that for some repository revision it work normally for  
> both file/dav access. -> so hooks are OK.
> Like for revision 12570 it work, for revision 16385 it dosen't work  
> via dav.
>
> And most mistycal that if I rename my repository (on host local FS)  
> from "projects" to some other name like "projects2" or  
> "projects.orig" it start work via dav!!!!
> I even try to symlink directory "projects" to "projects2" - work on  
> "projects2" and dosen't work on "projects" !!!
>
> Any ideas to resolve this strange bug?

Perhaps there is some other Apache directive matching on the string  
"projects" and interfering. Search your httpd.conf and any other  
files it includes for the string "projects".

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1617799

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].