SVN Proxy server

SVN Proxy server

Hi,

I need to write a proxy server for SVN ( using the svn protocol i.e., svn:// ).
I would like to understand protocol for the same. Altough i had gone through the protocol text file in the subversion sources directory.
I would be grrate ful somebody gives the exact working of the protocol.
Please add me to the cc of the mailing list as i am not a member of this group.

Thanks and Regards
Prasad

**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
**********************************************************************

Re: SVN Proxy server

On May 27, 2005, at 2:01 AM, Ramprasad Venkata Inala wrote:

> Hi,
>
> I need to write a proxy server for SVN ( using the svn protocol
> i.e., svn:// ).
> I would like to understand protocol for the same. Altough i had
> gone through the protocol text file in the subversion sources
> directory.
> I would be grrate ful somebody gives the exact working of the
> protocol.

Does the 'protocol' document not give a precise-enough description?
If something's unclear, please ask specific questions.

Re: SVN Proxy server

On Friday 27 May 2005 13:59, Ben Collins-Sussman wrote:

> On May 27, 2005, at 2:01 AM, Ramprasad Venkata Inala wrote:
> > Hi,
> >
> > I need to write a proxy server for SVN ( using the svn protocol
> > i.e., svn:// ).
> > I would like to understand protocol for the same. Altough i had
> > gone through the protocol text file in the subversion sources
> > directory.
> > I would be grrate ful somebody gives the exact working of the
> > protocol.
>
> Does the 'protocol' document not give a precise-enough description?
> If something's unclear, please ask specific questions.

RE: SVN Proxy server

I had to write a proxy that would pass through our versions as well before it reaches the svn.

Client-->SVNproxy-->OurVersioningSystem-->SVNDB.
The above is the process that i need to follow. Considering the different protocols that svn has like Http, Https( which are already handled ) and SVN which need to be handled now in our project.

I had written a socket ( SVN Proxy ) server in java.
Let me put the details how i am proceeding in obtaining the connection.

Note: I use the eclipse svn plugin as the client.

1. First I click Team->Share Project-> SVN( Chosen option ) click next and pick up an existing svn repsoitory on my machine.
2. Now the proxy receives the request( opening a socket , ServerSocket.accept method ) then spawns a new thread that would handle the request then on, like opening input and output streams. when the proxy receives the first call to open socket then it sends back reponse in this format
( success ( 1 2 ( ANONYMOUS ) ( edit-pipeline ) ) ) ( 2 ANONYMOUS ( ) ( ) )
3. Then the client responds back with this.
( 2 ( edit-pipeline ) 32:svn:///d:/testsvnrep/SVNProtocol )
In my case the testsvnrep is my repository and SVNProtocol is my eclipse project.
4. Then the proxy sends a reponse to the client in this format
( success ( ( ) 32:localhost/d:/testsvnrep/SVNProtocol ) )

Now the problem starts, after when i send this response to the client the client opens up anew socket instead of sending on the same socket that was opened before.

**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
**********************************************************************

> Hi,
>
> I need to write a proxy server for SVN ( using the svn protocol
> i.e., svn:// ).
> I would like to understand protocol for the same. Altough i had
> gone through the protocol text file in the subversion sources
> directory.
> I would be grrate ful somebody gives the exact working of the
> protocol.

Does the 'protocol' document not give a precise-enough description?
If something's unclear, please ask specific questions.

RE: SVN Proxy server

I had to write a proxy that would pass through our versions as well before it reaches the svn.

Client-->SVNproxy-->OurVersioningSystem-->SVN.
The above is the process that i need to follow. Considering the different protocols that svn has like Http, Https( which are already handled ) and SVN which need to be handled now in our project.

I had written a socket ( SVN Proxy ) server in java.
Let me put the details how i am proceeding in obtaining the connection.

Note: I use the eclipse svn plugin as the client.

1. First I click Team->Share Project-> SVN( Chosen option ) click next and pick up an existing svn repsoitory on my machine.
2. Now the proxy receives the request( opening a socket , ServerSocket.accept method ) then spawns a new thread that would handle the request then on, like opening input and output streams. when the proxy receives the first call to open socket then it sends back reponse in this format
( success ( 1 2 ( ANONYMOUS ) ( edit-pipeline ) ) ) ( 2 ANONYMOUS ( ) ( ) )
3. Then the client responds back with this.
( 2 ( edit-pipeline ) 32:svn:///d:/testsvnrep/SVNProtocol )
In my case the testsvnrep is my repository and SVNProtocol is my eclipse project.
4. Then the proxy sends a reponse to the client in this format
( success ( ( ) 32:localhost/d:/testsvnrep/SVNProtocol ) )

Now the problem starts, after when i send this response to the client the client opens up anew socket instead of sending on the same socket that was opened before.

**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
**********************************************************************

> Hi,
>
> I need to write a proxy server for SVN ( using the svn protocol
> i.e., svn:// ).
> I would like to understand protocol for the same. Altough i had
> gone through the protocol text file in the subversion sources
> directory.
> I would be grrate ful somebody gives the exact working of the
> protocol.

Does the 'protocol' document not give a precise-enough description?
If something's unclear, please ask specific questions.

RE: SVN Proxy server

Note: Please add me to the cc of the mailing list as i am not a member
of this group.

I had to write a proxy that would pass through our versions as well
before it reaches the svn.

Client-->SVNproxy-->OurVersioningSystem-->SVN.
The above is the process that i need to follow. Considering the
different protocols that svn has like Http, Https( which are already
handled ) and SVN which need to be handled now in our project.

I had written a socket ( SVN Proxy ) server in java.
Let me put the details how i am proceeding in obtaining the connection.

Note: I use the eclipse svn plugin as the client.

1. First I click Team->Share Project-> SVN( Chosen option ) click next
and pick up an existing svn repsoitory on my machine.
2. Now the proxy receives the request( opening a socket ,
ServerSocket.accept method ) then spawns a new thread that would handle
the request then on, like opening input and output streams. when the
proxy receives the first call to open socket then it sends back reponse
in this format
( success ( 1 2 ( ANONYMOUS ) ( edit-pipeline ) ) ) ( 2 ANONYMOUS ( ) (
) )
3. Then the client responds back with this.
( 2 ( edit-pipeline ) 32:svn:///d:/testsvnrep/SVNProtocol )
In my case the testsvnrep is my repository and SVNProtocol is my eclipse
project.
4. Then the proxy sends a reponse to the client in this format
( success ( ( ) 32:localhost/d:/testsvnrep/SVNProtocol ) )

Now the problem starts, after when i send this response to the client
the client opens up anew socket instead of sending on the same socket
that was opened before.

**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
**********************************************************************

> Hi,
>
> I need to write a proxy server for SVN ( using the svn protocol
> i.e., svn:// ).
> I would like to understand protocol for the same. Altough i had
> gone through the protocol text file in the subversion sources
> directory.
> I would be grrate ful somebody gives the exact working of the
> protocol.

Does the 'protocol' document not give a precise-enough description?
If something's unclear, please ask specific questions.

I had to write a proxy that would pass through our versions as well
before it reaches the svn.

Client-->SVNproxy-->OurVersioningSystem-->SVN.
The above is the process that i need to follow. Considering the
different protocols that svn has like Http, Https( which are already
handled ) and SVN which need to be handled now in our project.

I had written a socket ( SVN Proxy ) server in java.
Let me put the details how i am proceeding in obtaining the connection.

Note: I use the eclipse svn plugin as the client.

1. First I click Team->Share Project-> SVN( Chosen option ) click next
and pick up an existing svn repsoitory on my machine.
2. Now the proxy receives the request( opening a socket ,
ServerSocket.accept method ) then spawns a new thread that would handle
the request then on, like opening input and output streams. when the
proxy receives the first call to open socket then it sends back reponse
in this format
( success ( 1 2 ( ANONYMOUS ) ( edit-pipeline ) ) ) ( 2 ANONYMOUS ( ) (
) )
3. Then the client responds back with this.
( 2 ( edit-pipeline ) 32:svn:///d:/testsvnrep/SVNProtocol )
In my case the testsvnrep is my repository and SVNProtocol is my eclipse
project.
4. Then the proxy sends a reponse to the client in this format
( success ( ( ) 32:localhost/d:/testsvnrep/SVNProtocol ) )

Now the problem starts, after when i send this response to the client
the client opens up anew socket instead of sending on the same socket
that was opened before.

> Hi,
>
> I need to write a proxy server for SVN ( using the svn protocol
> i.e., svn:// ).
> I would like to understand protocol for the same. Altough i had
> gone through the protocol text file in the subversion sources
> directory.
> I would be grrate ful somebody gives the exact working of the
> protocol.

Does the 'protocol' document not give a precise-enough description?
If something's unclear, please ask specific questions.

**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
**********************************************************************

RE: SVN Proxy server

It sends requests in the format that is required by our versioning
system which in turn uses svn/vss/cvs. So when is request sent by a
client that in the svn protocol then the proxy converts it into the
format required by our versioning system and then send it in the format
that the client understands

Rgds
Ramprasad

Note: Please add me to the cc of the mailing list as i am not a member
of this group.

-----Original Message-----

**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
**********************************************************************