reviki with svnkit

21 views
Skip to first unread message

Richard Hildred

unread,
Jul 7, 2008, 9:29:10 PM7/7/08
to reviki
Hi:

I am kind of thinking about righting a subversion servlet using
svnkit. Then I could use jetty with both reviki and subversion. Any
thoughts?

thanks

Rich

Matt Hillsdon

unread,
Jul 8, 2008, 2:40:38 PM7/8/08
to rev...@googlegroups.com
Richard Hildred wrote:
> I am kind of thinking about righting a subversion servlet using
> svnkit. Then I could use jetty with both reviki and subversion. Any
> thoughts?

Hi Richard,

I'm not sure what you're trying to achieve with the subversion servlet.
Are you trying to avoid using Apache with Subversion?

I'd be interested to know if reviki works well with Jetty. So far I've
only tested it with Tomcat - I wouldn't expect any difficulty though.

Cheers,

Matt.

Richard Hildred

unread,
Aug 5, 2008, 3:00:39 PM8/5/08
to reviki
Hi Matt:

Thanks for replying to my post, and for reviki. That was exactly what
I was thinking that I wanted to do, was avoid using apache with
subversion. In the meantime, I installed apache, and did a deny, allow
deny all allow 127.0.0.1 so that I could access it with reviki or on
my server with file:///. I have Jetty working with setuid on port 443
with my certificate, so when subversion prompts me for a name and
password, reviki supplies it through https. This seems to me to be a
good solution for a wiki to be edited and viewed privately by a small
geographically disperse group.

Jetty works great with reviki, until I try to start it from a rc.d
link. Then it stops being able to find the reviki-data directory. I am
thinking of changing your code to put the reviki-data directory in
the .war itself to get past this problem. I spent yesterday morning
and evening trying to figure out what was different in the environment
when my jetty start-up script was executed from a shell and when my
machine was init 6'd.

thanks

Rich

Richard Hildred

unread,
Aug 5, 2008, 3:26:02 PM8/5/08
to reviki
Hi Again Matt:

I am having trouble checking out the reviki code from svn.

[rhildred@cctrain1pass scratch]$ svn co http://svn.reviki.org/svn/reviki/
reviki
svn: REPORT request failed on '/svn/!svn/vcc/default'
svn: The REPORT request returned invalid XML in the response: XML
parse error at line 1: mismatched tag (/svn/!svn/vcc/default)

F:\scratch>svn co http://svn.reviki.org/svn/reviki/ reviki
svn: PROPFIND request failed on '/svn/reviki'
svn: PROPFIND of '/svn/reviki': 307 Proxy Redirect (http://
svn.reviki.org)

Not sure what is going on here. Do you have any ideas?

thanks

Rich

Matt Hillsdon

unread,
Aug 5, 2008, 3:41:16 PM8/5/08
to rev...@googlegroups.com
Richard Hildred wrote:
> Hi Again Matt:
>
> I am having trouble checking out the reviki code from svn.
>
> [rhildred@cctrain1pass scratch]$ svn co http://svn.reviki.org/svn/reviki/
> reviki
> svn: REPORT request failed on '/svn/!svn/vcc/default'
> svn: The REPORT request returned invalid XML in the response: XML
> parse error at line 1: mismatched tag (/svn/!svn/vcc/default)
>
> F:\scratch>svn co http://svn.reviki.org/svn/reviki/ reviki
> svn: PROPFIND request failed on '/svn/reviki'
> svn: PROPFIND of '/svn/reviki': 307 Proxy Redirect (http://
> svn.reviki.org)
>
> Not sure what is going on here. Do you have any ideas?
>

Interesting. I just successfully checked it out

mth@newt:~/tmp$ svn co http://svn.reviki.org/svn/reviki
A reviki/trunk
A reviki/trunk/NOTICE
A reviki/trunk/plugins
...

I was playing with the apache configuration yesterday, is it possible
you were unlucky enough to try then?

If you're still having trouble I'll try to get to the bottom of it. Can
you view http://svn.reviki.org/svn/reviki/trunk/ in a web browser?

Matt.

Matt Hillsdon

unread,
Aug 5, 2008, 4:00:12 PM8/5/08
to rev...@googlegroups.com
Richard Hildred wrote:
> Thanks for replying to my post, and for reviki. That was exactly what
> I was thinking that I wanted to do, was avoid using apache with
> subversion. In the meantime, I installed apache, and did a deny, allow
> deny all allow 127.0.0.1 so that I could access it with reviki or on
> my server with file:///. I have Jetty working with setuid on port 443
> with my certificate, so when subversion prompts me for a name and
> password, reviki supplies it through https. This seems to me to be a
> good solution for a wiki to be edited and viewed privately by a small
> geographically disperse group.
>

I suspect there would be a lot of work involved to avoid using apache
for very little gain. svnkit is really a Java implementation the client
side of Subversion. It can do client access by file, svn+ssh and
http(s) protocols, each one a different implementation. I suppose you
would have to implement the server side of the http(s)/WebDAV protocol
by using the svnkit file implementation to access the repository that
would be local to you on the server side. Not a trivial task.

There was a similar question on the svnkit mailing list a while back
with a response I agree with. Unfortunately this is the best link I can
find - read from the bottom up!

http://article.gmane.org/gmane.comp.version-control.subversion.javasvn.user/2290

> Jetty works great with reviki, until I try to start it from a rc.d
> link. Then it stops being able to find the reviki-data directory. I am
> thinking of changing your code to put the reviki-data directory in
> the .war itself to get past this problem. I spent yesterday morning
> and evening trying to figure out what was different in the environment
> when my jetty start-up script was executed from a shell and when my
> machine was init 6'd.
>

By default the reviki-data is created in the home directory of the user
running the reviki. Usually when you use an init script the service
will be started as a specific user (e.g. a 'jetty' user).

I can't imagine the reviki-data directory working in a war - direct file
access is needed by the search engine which stores its index there.

You can override the location of the data directory if necessary by
passing a ServletContext init-parameter "reviki-data-dir". The
mechanism for doing this is specific to the web container used. I've
documented the tomcat method here

http://reviki.org/wiki/TomcatContextXmlConfiguration

Hope this helps,

Matt.


Richard Hildred

unread,
Aug 5, 2008, 4:58:47 PM8/5/08
to reviki
Hi Matt:

This time I seem to have got revision 965 with an error only at the
end:

A reviki/.settings/org.eclipse.jst.common.project.facet.core.prefs
A reviki/.settings/org.eclipse.wst.common.component
U reviki
Checked out revision 965.
rhildred@syndicateme:~/scratch$ svn: REPORT request failed on '/svn/!
svn/vcc/default'
-sh: svn:: command not found
rhildred@syndicateme:~/scratch$ svn: The REPORT request returned
invalid XML in the response: XML parse error at line 1: mismatched tag
(/svn/!svn/vcc/default)
-sh: !svn/vcc/default: event not found
red invalid XML in the response: XML parse error at line 1: mismatched
tag (/svn/!svn/vcc/default)

thanks

Rich

On Aug 5, 3:41 pm, Matt Hillsdon <m...@hillsdon.net> wrote:
> Richard Hildred wrote:
> > Hi Again Matt:
>
> > I am having trouble checking out the reviki code from svn.
>
> > [rhildred@cctrain1pass scratch]$ svn cohttp://svn.reviki.org/svn/reviki/
> > reviki
> > svn: REPORT request failed on '/svn/!svn/vcc/default'
> > svn: The REPORT request returned invalid XML in the response: XML
> > parse error at line 1: mismatched tag (/svn/!svn/vcc/default)
>
> > F:\scratch>svn cohttp://svn.reviki.org/svn/reviki/reviki
> > svn: PROPFIND request failed on '/svn/reviki'
> > svn: PROPFIND of '/svn/reviki': 307 Proxy Redirect (http://
> > svn.reviki.org)
>
> > Not sure what is going on here. Do you have any ideas?
>
> Interesting. I just successfully checked it out
>
> mth@newt:~/tmp$ svn cohttp://svn.reviki.org/svn/reviki
Reply all
Reply to author
Forward
0 new messages