You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Andrey Repin <an...@freemail.ru> on 2009/03/28 04:06:48 UTC

How am I supposed to import my project now?

Greetings, All!

Existing, clean repository. 1.6.0
$ curl -u user:pass -i http://svn.mydomain.local/repos/
HTTP/1.1 200 OK
Date: Sat, 28 Mar 2009 03:46:56 GMT
Server: Apache/2.2.11 (Win32) mod_auth_sspi/1.0.5 SVN/1.6.0 DAV/2
Last-Modified: Sat, 28 Mar 2009 03:23:22 GMT
ETag: W/"0//"
Accept-Ranges: bytes
Content-Length: 242
Content-Type: text/html; charset=UTF-8

<html><head><title>repos - Revision 0: /</title></head>
<body>
 <h2>repos - Revision 0: /</h2>
 <ul>
 </ul>
 <hr noshade><em>Powered by <a href="http://subversion.tigris.org/">Subversion</a> version 1.6.0 (r36650).</em>
</body></html>

$ svn import ....\htdocs http://svn.mydomain.local/repos/trunc/htdocs 1> import.log
svn: Repository moved permanently to 'http://svn.mydomain.local/repos/'; please relocate
svn: Your commit message was left in a temporary file:
svn:    'svn-commit.tmp'

$ tail -n 5 \\SERVERHOST\C$\home\svn\.log\access_log
192.168.1.10 - - [28/Mar/2009:06:33:02 +0300] "OPTIONS /repos/trunc/htdocs HTTP/1.1" 401 401
192.168.1.10 - anrdaemon [28/Mar/2009:06:33:02 +0300] "OPTIONS /repos/trunc/htdocs HTTP/1.1" 200 189
192.168.1.10 - anrdaemon [28/Mar/2009:06:33:02 +0300] "PROPFIND /repos/trunc/htdocs HTTP/1.1" 404 220
192.168.1.10 - anrdaemon [28/Mar/2009:06:33:02 +0300] "PROPFIND /repos/trunc HTTP/1.1" 404 213
192.168.1.10 - anrdaemon [28/Mar/2009:06:33:02 +0300] "PROPFIND /repos HTTP/1.1" 301 240


Not understand..................


$ svn mkdir http://svn.mydomain.local/repos/trunc 1> import.log
svn: Repository moved permanently to 'http://svn.mydomain.local/repos/'; please relocate
svn: Your commit message was left in a temporary file:
svn:    'svn-commit.tmp'

$ tail -n 2 \\SERVERHOST\C$\home\svn\.log\access_log
192.168.1.10 - - [28/Mar/2009:07:02:10 +0300] "OPTIONS /repos HTTP/1.1" 401 401
192.168.1.10 - anrdaemon [28/Mar/2009:07:02:10 +0300] "OPTIONS /repos HTTP/1.1" 301 240


Not understand..................
Ideas?


-- 
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 28.03.2009, <6:42>

Sorry for my terrible english...

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

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

Re: How am I supposed to import my project now?

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

AR> Ideas?

``Despite the tons of examples and docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo.''
(q) Brian Moore

Aside the simple fact that THIS is an obvious BUG...
Key word was "passthrough", look the second RewriteRule.

<VirtualHost *>
    ServerName svn.mydomain.local
    ServerAlias svn.example.org

    DocumentRoot "C:/home/svn"
    AddDefaultCharset utf-8

    ErrorLog "C:/home/svn/.log/error_log"
    CustomLog "C:/home/svn/.log/access_log" common env=!SVN-ACTION
    CustomLog "C:/home/svn/.log/svn_access_log" svn env=SVN-ACTION

    <IfModule rewrite_module>
        RewriteLog "C:/home/svn/.log/rewrite_log"
        RewriteLogLevel 0

        RewriteEngine On

        # Prevent from accessing files beginning with dot in any cases
        RewriteRule "^/\..*" - [forbidden,last]

        # Fool the SVN about requested path if it's a repository root
        RewriteCond "%{REQUEST_METHOD}" !"^(GET|POST|HEAD)$"
        RewriteCond "%{REQUEST_FILENAME}" "^/([^/\.]+)$"
        RewriteCond "C:/home/svn/%1" -d
        RewriteRule "^/([^/\.]+)$" "/$1/" [passthrough]

        # Redirect access from the docroot to the actual website
        RewriteCond "%{REQUEST_METHOD}" "^(GET|POST|HEAD)$"
        RewriteCond "%{IS_SUBREQ}" "false"
        RewriteRule "^/(index\..*)?$" "http://www.example.org/svn/$1" [nosubreq,redirect=permanent,qsappend,last]

        # Explained 404 for nonexistent repos.
        RewriteCond "%{IS_SUBREQ}" "false"
        RewriteCond "%{REQUEST_FILENAME}" "^/([^/\.]+)(?:/.*)?$"
        RewriteCond "C:/home/svn/%1" !-d
        RewriteRule ".*" - [nosubreq,redirect=404,last]
    </IfModule>

    <Location "/">
#        AllowOverride Limit AuthConfig
#        Options None
        Order allow,deny
        Allow from 192.168.1.10

        <IfModule dav_svn_module>
            DAV svn
            SVNParentPath "C:/home/svn"
        </IfModule>

        <IfModule sspi_auth_module>
            Allow from all

            AuthName "Subversion repository"
            AuthType SSPI
            SSPIAuth On
            SSPIAuthoritative On
            SSPIOfferBasic On
            SSPIOmitDomain On
            SSPIUsernameCase lower
            SSPIBasicPreferred On

            # only developers may access the repository
            Require group "DAEMON1\CVS"

            # And they should obey to SVN user permissions file
            <IfModule authz_svn_module>
#                AuthzSVNAccessFile /path/to/access/file
            </IfModule>
        </IfModule>
    </Location>
</VirtualHost>


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 29.03.2009, <0:36>

Sorry for my terrible english...

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

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

Re[2]: How am I supposed to import my project now?

Posted by Andrey Repin <an...@freemail.ru>.
Greetings, Ryan Schmidt!

>> $ svn import ....\htdocs http://svn.mydomain.local/repos/trunc/
>> htdocs 1> import.log
>> svn: Repository moved permanently to 'http://svn.mydomain.local/ 
>> repos/'; please relocate
>> svn: Your commit message was left in a temporary file:
>> svn:    'svn-commit.tmp'


RS> Could you show us the relevant section of your httpd.conf -- the part  
RS> that defines the svn.mydomain.local virtual host?

mid:1494392258.20090324190643@mtu-net.ru
I've sent a solution already, but something goes on with the mailing list.
It filtering/delaying messages on random.

RS> Note that one usually spells it "trunk" not "trunc" (not that it  
RS> should matter for the error you're seeing).

Yes, I know.
Problem is in SVN client and it's specific to reaction on requests sent
against repository root.
It SHOULD follow redirect telling that file access unreliable for specified URL
i.e. http://svn.mydomain.local/repos -> http://svn.mydomain.local/repos/


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 29.03.2009, <18:33>

Sorry for my terrible english...

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

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

Re: How am I supposed to import my project now?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 27, 2009, at 23:06, Andrey Repin wrote:

> $ svn import ....\htdocs http://svn.mydomain.local/repos/trunc/ 
> htdocs 1> import.log
> svn: Repository moved permanently to 'http://svn.mydomain.local/ 
> repos/'; please relocate
> svn: Your commit message was left in a temporary file:
> svn:    'svn-commit.tmp'


Could you show us the relevant section of your httpd.conf -- the part  
that defines the svn.mydomain.local virtual host?

Note that one usually spells it "trunk" not "trunc" (not that it  
should matter for the error you're seeing).

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

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