Error with quick-start experiment

2015-05-28 Thread Antti Simola
Hello,



I’m learning to use the command-line Subversion (1.8.13 64-bit Win,
SLIKSVN) by reading the book online and doing some tests. I followed the
quick-start guide for some experiments:



https://subversion.apache.org/quick-start



The first time around went spotless. But the second time when I wanted to
create another repo for another project I get the following error message:



svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
2307: assertion failed (svn_uri_is_canonical(url, pool))


 when I execute the part that makes trunk, branches and tags
subdirectories. That opens a dialog window for the error as well. Does
anyone have any idea what I’m doing wrong here?



Antti Simola





PS: There’s a typo in quick-start guide as the first “ is missing from the
tags subdirectory address.


Re: Error with quick-start experiment

2015-05-28 Thread Stefan Sperling
On Thu, May 28, 2015 at 11:08:17AM +0300, Antti Simola wrote:
> Hello,
> 
> 
> 
> I’m learning to use the command-line Subversion (1.8.13 64-bit Win,
> SLIKSVN) by reading the book online and doing some tests. I followed the
> quick-start guide for some experiments:
> 
> 
> 
> https://subversion.apache.org/quick-start
> 
> 
> 
> The first time around went spotless. But the second time when I wanted to
> create another repo for another project I get the following error message:
> 
> 
> 
> svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> 2307: assertion failed (svn_uri_is_canonical(url, pool))
> 
> 
>  when I execute the part that makes trunk, branches and tags
> subdirectories. That opens a dialog window for the error as well. Does
> anyone have any idea what I’m doing wrong here?
> 

Can you please show exactly what you typed on the command line
when this happened?

> 
> 
> Antti Simola
> 
> 
> 
> 
> 
> PS: There’s a typo in quick-start guide as the first “ is missing from the
> tags subdirectory address.

Fixed, thanks.


Re: Error with quick-start experiment

2015-05-28 Thread Antti Simola
This is what I typed in my last attempt. I've made several attempts after
the one that worked earlier.

C:\>set REPOS_DIR=h:\repos\my-repos

C:\>mkdir h:\repos

C:\>svnadmin create %REPOS_DIR%

C:\>svn mkdir -m "Create directory structure." "file:///%REPOS_DIR%/trunk"
"file:///%REPOS_DIR%/branches" "file:///%REPOS_DIR%/tags"
svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
2307: assertion failed (svn_uri_is_canonical(url, pool))

C:\>

On Thu, May 28, 2015 at 11:30 AM, Stefan Sperling  wrote:

> On Thu, May 28, 2015 at 11:08:17AM +0300, Antti Simola wrote:
> > Hello,
> >
> >
> >
> > I’m learning to use the command-line Subversion (1.8.13 64-bit Win,
> > SLIKSVN) by reading the book online and doing some tests. I followed the
> > quick-start guide for some experiments:
> >
> >
> >
> > https://subversion.apache.org/quick-start
> >
> >
> >
> > The first time around went spotless. But the second time when I wanted to
> > create another repo for another project I get the following error
> message:
> >
> >
> >
> > svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> > 2307: assertion failed (svn_uri_is_canonical(url, pool))
> >
> >
> >  when I execute the part that makes trunk, branches and tags
> > subdirectories. That opens a dialog window for the error as well. Does
> > anyone have any idea what I’m doing wrong here?
> >
>
> Can you please show exactly what you typed on the command line
> when this happened?
>
> >
> >
> > Antti Simola
> >
> >
> >
> >
> >
> > PS: There’s a typo in quick-start guide as the first “ is missing from
> the
> > tags subdirectory address.
>
> Fixed, thanks.
>


Re: Error with quick-start experiment

2015-05-28 Thread Stefan Sperling
On Thu, May 28, 2015 at 12:19:17PM +0300, Antti Simola wrote:
> This is what I typed in my last attempt. I've made several attempts after
> the one that worked earlier.
> 
> C:\>set REPOS_DIR=h:\repos\my-repos
> 
> C:\>mkdir h:\repos
> 
> C:\>svnadmin create %REPOS_DIR%
> 
> C:\>svn mkdir -m "Create directory structure." "file:///%REPOS_DIR%/trunk"
> "file:///%REPOS_DIR%/branches" "file:///%REPOS_DIR%/tags"
> svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> 2307: assertion failed (svn_uri_is_canonical(url, pool))
> 
> C:\>

This error message should be improved. svn should not assert here
but simply tell you that the URL is invalid.

The quick-start page is wrong.
You'll need to replace backslashes with forward slashes in the URL:
file:///h:/repos/my-repos/trunk etc.

I'm not seeing an assertion on BSD so perhaps the assertion problem
is specific to Windows. On BSD I see:
svn: E180001: Unable to connect to a repository at URL 
'file:///h:%5Crepos%5Cmy-repos'
svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository 'file:///h:%5Crepos%5Cmy-repos'


Re: Error with quick-start experiment

2015-05-28 Thread Stefan Sperling
On Thu, May 28, 2015 at 11:38:17AM +0200, Stefan Sperling wrote:
> The quick-start page is wrong.

I've fixed the page. Thanks!


RE: Error with quick-start experiment

2015-05-28 Thread Bert Huijben
Hi,

 

You could use %REPOS_DIR:\=/% instead of just %REPOS_DIR% to replace all ‘\’ 
characters with ‘/’

 

(In batch scripts you might have to enable cmd extensions, but on the 
commandline this is enabled by default)

 

Bert

 

From: Antti Simola [mailto:asimol...@gmail.com] 
Sent: donderdag 28 mei 2015 11:19
To: Antti Simola; users@subversion.apache.org
Subject: Re: Error with quick-start experiment

 

This is what I typed in my last attempt. I've made several attempts after the 
one that worked earlier.

C:\>set REPOS_DIR=h:\repos\my-repos

C:\>mkdir h:\repos

C:\>svnadmin create %REPOS_DIR%

C:\>svn mkdir -m "Create directory structure." "file:///%REPOS_DIR%/trunk 
 " "file:///%REPOS_DIR%/branches 
 " "file:///%REPOS_DIR%/tags 
 "
svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line 2307: 
assertion failed (svn_uri_is_canonical(url, pool))

C:\>

 

On Thu, May 28, 2015 at 11:30 AM, Stefan Sperling mailto:s...@elego.de> > wrote:

On Thu, May 28, 2015 at 11:08:17AM +0300, Antti Simola wrote:
> Hello,
>
>
>
> I’m learning to use the command-line Subversion (1.8.13 64-bit Win,
> SLIKSVN) by reading the book online and doing some tests. I followed the
> quick-start guide for some experiments:
>
>
>
> https://subversion.apache.org/quick-start
>
>
>
> The first time around went spotless. But the second time when I wanted to
> create another repo for another project I get the following error message:
>
>
>
> svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> 2307: assertion failed (svn_uri_is_canonical(url, pool))
>
>
>  when I execute the part that makes trunk, branches and tags
> subdirectories. That opens a dialog window for the error as well. Does
> anyone have any idea what I’m doing wrong here?
>

Can you please show exactly what you typed on the command line
when this happened?

>
>
> Antti Simola
>
>
>
>
>
> PS: There’s a typo in quick-start guide as the first “ is missing from the
> tags subdirectory address.

Fixed, thanks.

 



RE: Error with quick-start experiment

2015-05-28 Thread Bert Huijben
If you want to use URL operations, the whole url should use ‘/’ separators. It 
now tries to open the local directory file:\\something 
 , which certainly won’t exist because file: is not a 
valid device specifier on Windows.

 

You want to use something like 

$ svn mkdir -m "Create directory structure." " 
 file:///%REPOS_DIR:\=/%/trunk" " 
 file:///%REPOS_DIR:\=/%\branches" " 
 file:///%REPOS_DIR:\=/%\tags"

 

But it might be easier to just set the properly encoded path in REPOS_DIR

 

 

From: Antti Simola [mailto:asimol...@gmail.com] 
Sent: donderdag 28 mei 2015 11:55
To: Bert Huijben
Subject: Re: Error with quick-start experiment

 

Thanks! There's another error now with replaced slashes:

C:\>svn mkdir -m "Create directory structure." "file:\\\%REPOS_DIR%\trunk 
 " "file:\\\%REPOS_DIR%\branches 
 " "file:\\\%REPOS_DIR%\tags 
 "
svn: E020024: Error resolving case of 'file:\\\h:\repos\my-repos\trunk'

 

On Thu, May 28, 2015 at 12:51 PM, Bert Huijben mailto:b...@qqmail.nl> > wrote:

Hi,

 

You could use %REPOS_DIR:\=/% instead of just %REPOS_DIR% to replace all ‘\’ 
characters with ‘/’

 

(In batch scripts you might have to enable cmd extensions, but on the 
commandline this is enabled by default)

 

Bert

 

From: Antti Simola [mailto:asimol...@gmail.com  ] 
Sent: donderdag 28 mei 2015 11:19
To: Antti Simola; users@subversion.apache.org 
 
Subject: Re: Error with quick-start experiment

 

This is what I typed in my last attempt. I've made several attempts after the 
one that worked earlier.

C:\>set REPOS_DIR=h:\repos\my-repos

C:\>mkdir h:\repos

C:\>svnadmin create %REPOS_DIR%

C:\>svn mkdir -m "Create directory structure." "file:///%REPOS_DIR%/trunk 
 " "file:///%REPOS_DIR%/branches 
 " "file:///%REPOS_DIR%/tags 
 "
svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line 2307: 
assertion failed (svn_uri_is_canonical(url, pool))

C:\>

 

On Thu, May 28, 2015 at 11:30 AM, Stefan Sperling mailto:s...@elego.de> > wrote:

On Thu, May 28, 2015 at 11:08:17AM +0300, Antti Simola wrote:
> Hello,
>
>
>
> I’m learning to use the command-line Subversion (1.8.13 64-bit Win,
> SLIKSVN) by reading the book online and doing some tests. I followed the
> quick-start guide for some experiments:
>
>
>
> https://subversion.apache.org/quick-start
>
>
>
> The first time around went spotless. But the second time when I wanted to
> create another repo for another project I get the following error message:
>
>
>
> svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> 2307: assertion failed (svn_uri_is_canonical(url, pool))
>
>
>  when I execute the part that makes trunk, branches and tags
> subdirectories. That opens a dialog window for the error as well. Does
> anyone have any idea what I’m doing wrong here?
>

Can you please show exactly what you typed on the command line
when this happened?

>
>
> Antti Simola
>
>
>
>
>
> PS: There’s a typo in quick-start guide as the first “ is missing from the
> tags subdirectory address.

Fixed, thanks.

 

 



Re: Error with quick-start experiment

2015-05-28 Thread Antti Simola
Thanks! I got it working now by following the updated quick-start. There's
perhaps one typo remaining as the drive is missing from this address:

> svn checkout "file:///repos/my-repos/trunk" ./


On Thu, May 28, 2015 at 1:10 PM, Bert Huijben  wrote:

> If you want to use URL operations, the whole url should use ‘/’
> separators. It now tries to open the local directory file:\\something,
> which certainly won’t exist because file: is not a valid device specifier
> on Windows.
>
>
>
> You want to use something like
>
> $ svn mkdir -m "Create directory structure." "
> file:///%REPOS_DIR:\=/%/trunk" "file:///%REPOS_DIR:\=/%\branches" "
> file:///%REPOS_DIR:\=/%\tags"
>
>
>
> But it might be easier to just set the properly encoded path in REPOS_DIR
>
>
>
>
>
> *From:* Antti Simola [mailto:asimol...@gmail.com]
> *Sent:* donderdag 28 mei 2015 11:55
> *To:* Bert Huijben
>
> *Subject:* Re: Error with quick-start experiment
>
>
>
> Thanks! There's another error now with replaced slashes:
>
> C:\>svn mkdir -m "Create directory structure." "file:\\\%REPOS_DIR%\trunk"
> "file:\\\%REPOS_DIR%\branches" "file:\\\%REPOS_DIR%\tags"
> svn: E020024: Error resolving case of 'file:\\\h:\repos\my-repos\trunk'
>
>
>
> On Thu, May 28, 2015 at 12:51 PM, Bert Huijben  wrote:
>
> Hi,
>
>
>
> You could use %REPOS_DIR:\=/% instead of just %REPOS_DIR% to replace all
> ‘\’ characters with ‘/’
>
>
>
> (In batch scripts you might have to enable cmd extensions, but on the
> commandline this is enabled by default)
>
>
>
> Bert
>
>
>
> *From:* Antti Simola [mailto:asimol...@gmail.com]
> *Sent:* donderdag 28 mei 2015 11:19
> *To:* Antti Simola; users@subversion.apache.org
> *Subject:* Re: Error with quick-start experiment
>
>
>
> This is what I typed in my last attempt. I've made several attempts after
> the one that worked earlier.
>
> C:\>set REPOS_DIR=h:\repos\my-repos
>
> C:\>mkdir h:\repos
>
> C:\>svnadmin create %REPOS_DIR%
>
> C:\>svn mkdir -m "Create directory structure." "file:///%REPOS_DIR%/trunk"
> "file:///%REPOS_DIR%/branches" "file:///%REPOS_DIR%/tags"
> svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> 2307: assertion failed (svn_uri_is_canonical(url, pool))
>
> C:\>
>
>
>
> On Thu, May 28, 2015 at 11:30 AM, Stefan Sperling  wrote:
>
> On Thu, May 28, 2015 at 11:08:17AM +0300, Antti Simola wrote:
> > Hello,
> >
> >
> >
> > I’m learning to use the command-line Subversion (1.8.13 64-bit Win,
> > SLIKSVN) by reading the book online and doing some tests. I followed the
> > quick-start guide for some experiments:
> >
> >
> >
> > https://subversion.apache.org/quick-start
> >
> >
> >
> > The first time around went spotless. But the second time when I wanted to
> > create another repo for another project I get the following error
> message:
> >
> >
> >
> > svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> > 2307: assertion failed (svn_uri_is_canonical(url, pool))
> >
> >
> >  when I execute the part that makes trunk, branches and tags
> > subdirectories. That opens a dialog window for the error as well. Does
> > anyone have any idea what I’m doing wrong here?
> >
>
> Can you please show exactly what you typed on the command line
> when this happened?
>
> >
> >
> > Antti Simola
> >
> >
> >
> >
> >
> > PS: There’s a typo in quick-start guide as the first “ is missing from
> the
> > tags subdirectory address.
>
> Fixed, thanks.
>
>
>
>
>


RE: Error with quick-start experiment

2015-05-28 Thread Bert Huijben
That is not strictly typo, but I already committed a change to that line before 
I wrote my previous mail (r1682198). 

 

The current form specifies a root relative path on Windows ( \repos ), which 
would work while your current drive is ‘C:’ but stops working when you switch 
the active drive.

 

Bert

 

From: Antti Simola [mailto:asimol...@gmail.com] 
Sent: donderdag 28 mei 2015 12:49
To: Bert Huijben
Cc: users@subversion.apache.org
Subject: Re: Error with quick-start experiment

 

Thanks! I got it working now by following the updated quick-start. There's 
perhaps one typo remaining as the drive is missing from this address:

> svn checkout "file:///repos/my-repos/trunk  " 
> ./

 

On Thu, May 28, 2015 at 1:10 PM, Bert Huijben mailto:b...@qqmail.nl> > wrote:

If you want to use URL operations, the whole url should use ‘/’ separators. It 
now tries to open the local directory file:\\something 
 , which certainly won’t exist because file: is not a 
valid device specifier on Windows.

 

You want to use something like 

$ svn mkdir -m "Create directory structure." "file:///%REPOS_DIR:\=/%/trunk 
 " "file:///%REPOS_DIR:\=/%\branches 
 " "file:///%REPOS_DIR:\=/%\tags 
 "

 

But it might be easier to just set the properly encoded path in REPOS_DIR

 

 

From: Antti Simola [mailto:asimol...@gmail.com  ] 
Sent: donderdag 28 mei 2015 11:55
To: Bert Huijben


Subject: Re: Error with quick-start experiment

 

Thanks! There's another error now with replaced slashes:

C:\>svn mkdir -m "Create directory structure." "file:\\\%REPOS_DIR%\trunk 
 " "file:\\\%REPOS_DIR%\branches 
 " "file:\\\%REPOS_DIR%\tags 
 "
svn: E020024: Error resolving case of 'file:\\\h:\repos\my-repos\trunk'

 

On Thu, May 28, 2015 at 12:51 PM, Bert Huijben mailto:b...@qqmail.nl> > wrote:

Hi,

 

You could use %REPOS_DIR:\=/% instead of just %REPOS_DIR% to replace all ‘\’ 
characters with ‘/’

 

(In batch scripts you might have to enable cmd extensions, but on the 
commandline this is enabled by default)

 

Bert

 

From: Antti Simola [mailto:asimol...@gmail.com  ] 
Sent: donderdag 28 mei 2015 11:19
To: Antti Simola; users@subversion.apache.org 
 
Subject: Re: Error with quick-start experiment

 

This is what I typed in my last attempt. I've made several attempts after the 
one that worked earlier.

C:\>set REPOS_DIR=h:\repos\my-repos

C:\>mkdir h:\repos

C:\>svnadmin create %REPOS_DIR%

C:\>svn mkdir -m "Create directory structure." "file:///%REPOS_DIR%/trunk 
 " "file:///%REPOS_DIR%/branches 
 " "file:///%REPOS_DIR%/tags 
 "
svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line 2307: 
assertion failed (svn_uri_is_canonical(url, pool))

C:\>

 

On Thu, May 28, 2015 at 11:30 AM, Stefan Sperling mailto:s...@elego.de> > wrote:

On Thu, May 28, 2015 at 11:08:17AM +0300, Antti Simola wrote:
> Hello,
>
>
>
> I’m learning to use the command-line Subversion (1.8.13 64-bit Win,
> SLIKSVN) by reading the book online and doing some tests. I followed the
> quick-start guide for some experiments:
>
>
>
> https://subversion.apache.org/quick-start
>
>
>
> The first time around went spotless. But the second time when I wanted to
> create another repo for another project I get the following error message:
>
>
>
> svn: E235000: In file '..\..\..\subversion\libsvn_subr\dirent_uri.c' line
> 2307: assertion failed (svn_uri_is_canonical(url, pool))
>
>
>  when I execute the part that makes trunk, branches and tags
> subdirectories. That opens a dialog window for the error as well. Does
> anyone have any idea what I’m doing wrong here?
>

Can you please show exactly what you typed on the command line
when this happened?

>
>
> Antti Simola
>
>
>
>
>
> PS: There’s a typo in quick-start guide as the first “ is missing from the
> tags subdirectory address.

Fixed, thanks.

 

 

 



May some account in group1 do some illegal modification into the group2 section?

2015-05-28 Thread Ricardo NUNEZ
Hi,



We're deploying a Subversion server 1.8.11 using Apache 2.4.12. All the clients 
are using the 1.8 protocol.

Let's say we only have two groups. We want every account in those groups to 
have read access to the whole repository, but read-write access to only their 
section. We're talking about LDAP groups, so AuthzSVNAccessFile doesn't help 
much without using additional scripts.



I found that the following authentication/authorization configuration works 
well, supposing that the base subversion URL is http://server/svn:



(...)


Require ldap-group CN=group1,OU=(...)

Require expr %{Request_URI} =~ m|^/svn/group1|
Require expr %{Request_URI} =~ m|^/svn/\!svn|
Require expr %{REQUEST_METHOD} in 
{'GET','OPTIONS','PROPFIND','REPORT'}




Require ldap-group CN=group2,OU=(...)

Require expr %{Request_URI} =~ m|^/svn/group2|
Require expr %{Request_URI} =~ m|^/svn/\!svn|
Require expr %{REQUEST_METHOD} in 
{'GET','OPTIONS','PROPFIND','REPORT'}



(...)



The real question here is that I don't know if we could be opening a potential 
security hole because of the sentence: Require expr %{Request_URI} =~ 
m|^/svn/\!svn|. Looking at the apache logs, I found that the URI 
'/svn/!svn(...)' appeared when trying to modify allowed information.



That is, given this configuration, is it possible that some account in group1 
could do some illegal modification into the group2 section?

Thank you!



Ricardo



PS: To find the read only HTTP methods, I used 
http://svn.apache.org/repos/asf/subversion/trunk/notes/http-and-webdav/webdav-protocol


Re: Performance issue with svn export [svn 1.8.11]

2015-05-28 Thread Eric Johnson
Looks like nobody has responded yet. I've certainly not encountered that
behavior.

I think you'll need to provide more information. The problem could stem
from so many places. Could be, for example, that you've got a virus
scanner, and when you export the 30K files, you're exporting files that
draw more attention from a virus scanner.

What's the client on which you're running the svn export command? Are you
doing the export across the network, or on the same machine hosting the
repository? When the export is done, how much disk space is taken by the
export (in both cases)?

Eric.

On Tue, May 26, 2015 at 9:05 AM, Nouha Terzi  wrote:

> Hello all,
>
> we are deploying svn 1.8.11 on our server Rhel 6.6.
> We are facing some issue within svn export.
> it seems that it has some perf limitation when dealing with a huge number
> of files.
>
> we have this delay when doing an svn export url and the target has:
>
> less than 20k files export  = ~ 1 minute
>
> more than 30k files export  > 1 hour
>
>
>
> Is it a known issue? Has someone encouter thsi behavior?
>
>
> thnak you for your valuable support.
>
>
> regards,
>
> Nouha
>