Re: subversion changes file permissions on commit
Does the file have any specific properties, such as svn:eol-style or svn:keywords? Bert From: Thorsten Schöning Sent: Tuesday, October 22, 2013 8:05 AM To: users@subversion.apache.org Guten Tag Branko Čibej, am Dienstag, 22. Oktober 2013 um 07:13 schrieben Sie: No, because Subversion does not promise to restore original file permissions, and therefore you shouldn't rely on it to do so. It's not about restoring, but not changing them during/after a commit. Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail:thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...05151- 9468- 55 Fax...05151- 9468- 88 Mobil..0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
Re: subversion changes file permissions on commit
On 22.10.2013 07:13, Branko Čibej wrote: On 21.10.2013 18:16, Attila Nagy wrote: On 10/15/2013 08:09 AM, Attila Nagy wrote: I store OS images in svn, so I need to record file permissions and ownership. For this, I use properties. But svn changes real file permissions: OK, long story short. Isn't this a security issue? No, because Subversion does not promise to restore original file permissions, and therefore you shouldn't rely on it to do so. There used to be a Unix-specific patch for storing and restoring the permissions bits, but it does not appear to be mantained. And moreover the working copy keeps a pristine version of every (committed) file; those pristine versions are also created with the default permissions dictated by umask. -- Brane -- Branko Čibej | Director of Subversion WANdisco // Non-Stop Data e. br...@wandisco.com
Access Problem with Subversion
Hi all! I have a urgent problem with our subversion. I need to do a dump file, but I always get the answer, that I do not have access! But my user is administrator... Can you please help me? [cid:image001.png@01CECF0F.22EADF00] I really need this export! Thanks a lot. Kind regards Selina Schwitter System Administrator Oerlikon IT Solutions AG, Pfäffikon Churerstrasse 120 8808 Pfäffikon SZ Switzerland P +4158 356 87 04 selina.schwit...@oerlikon.commailto:selina.schwit...@oerlikon.com www.oerlikon.com P Please consider our environment before printing this e-mail. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please notify the sender immediately and destroy this e-mail. Unauthorised copying, disclosure and distribution of the material in this e-mail are strictly prohibited. inline: image001.png
mod_dav_svn: nested Location warning
Dear All, I have just upgraded from Apache HTTPD 2.2 -- 2.4. My svn repository seems to work fine over https but I get these repeated warnings: [:warn] [pid 15721] mod_dav_svn: nested Location '/repos/thereponame' hinders access to '' in SVNPath Location '/repos/thereponame' My httpd.conf file contains this: IfModule mod_dav_svn.c ## ## project related HTML files ## IfModule mod_alias.c Alias /repos/srv/svn/html /IfModule Directory /srv/svn/html Options +Indexes +Multiviews -FollowSymLinks IndexOptionsFancyIndexing \ ScanHTMLTitles \ NameWidth=* \ DescriptionWidth=* \ SuppressLastModified \ SuppressSize order allow,deny allow from all /Directory Location /repos/thereponame DAV svn SVNPath /srv/svn/repos/thereponame SVNIndexXSLT /repos-web/view/repos-thereponame.xsl # Include per-directory access control policy AuthzSVNAccessFile /srv/svn/user_access/thereponame_authz # Limit write permission to list of valid users. # LimitExcept GET PROPFIND OPTIONS REPORT # Require SSL connection for password protection. SSLRequireSSL AuthType Basic AuthName Authorization Realm AuthUserFile /srv/svn/user_access/thereponame_passwd Require valid-user # /LimitExcept /Location /IfModule What have I done wrong? Thanks, Chris.
RE: Access Problem with Subversion
Hi all! I have a urgent problem with our subversion. I need to do a dump file, but I always get the answer, that I do not have access! But my user is administrator... Can you please help me? I really need this export! At this point, it simply a file access issue. This really has nothing to do with subversion. If you have access to run the exe and write access to the target directory then you should be good. However, I think you need to specify the dump file name... svnadmin dump path_to_repo e:\backup\reponame.dump Not sure if that is the issue. BOb
RE: mod_dav_svn: nested Location warning
-Original Message- From: Chris Rodgers [mailto:christopher.rodg...@cardiov.ox.ac.uk] Sent: 22 October 2013 11:15 Dear All, I have just upgraded from Apache HTTPD 2.2 -- 2.4. My svn repository seems to work fine over https but I get these repeated warnings: [:warn] [pid 15721] mod_dav_svn: nested Location '/repos/thereponame' hinders access to '' in SVNPath Location '/repos/thereponame' My httpd.conf file contains this: IfModule mod_dav_svn.c ## ## project related HTML files ## IfModule mod_alias.c Alias /repos/srv/svn/html /IfModule Directory /srv/svn/html Options +Indexes +Multiviews -FollowSymLinks IndexOptionsFancyIndexing \ ScanHTMLTitles \ NameWidth=* \ DescriptionWidth=* \ SuppressLastModified \ SuppressSize order allow,deny allow from all /Directory Location /repos/thereponame DAV svn SVNPath /srv/svn/repos/thereponame SVNIndexXSLT /repos-web/view/repos-thereponame.xsl # Include per-directory access control policy AuthzSVNAccessFile /srv/svn/user_access/thereponame_authz # Limit write permission to list of valid users. # LimitExcept GET PROPFIND OPTIONS REPORT # Require SSL connection for password protection. SSLRequireSSL AuthType Basic AuthName Authorization Realm AuthUserFile /srv/svn/user_access/thereponame_passwd Require valid-user # /LimitExcept /Location /IfModule What have I done wrong? What are you trying to achieve with your `/repos` alias? Are you trying to server mulitple repos from that root but apply special handling to a specific path? The location directive serves one specific repo without the need for the alias, I would guess you could just remove that (but I might be wrong!) ~ mark c Thanks, Chris.
Re: mod_dav_svn: nested Location warning
Hi Mark, Thanks for getting back to me. I added this to avoid a 404 error for https://myserver/repos/ The /srv/svn/html folder is completely empty. C. On 22/10/2013 15:00, Cooke, Mark wrote: -Original Message- From: Chris Rodgers [mailto:christopher.rodg...@cardiov.ox.ac.uk] Sent: 22 October 2013 11:15 Dear All, I have just upgraded from Apache HTTPD 2.2 -- 2.4. My svn repository seems to work fine over https but I get these repeated warnings: [:warn] [pid 15721] mod_dav_svn: nested Location '/repos/thereponame' hinders access to '' in SVNPath Location '/repos/thereponame' My httpd.conf file contains this: IfModule mod_dav_svn.c ## ## project related HTML files ## IfModule mod_alias.c Alias /repos/srv/svn/html /IfModule Directory /srv/svn/html Options +Indexes +Multiviews -FollowSymLinks IndexOptionsFancyIndexing \ ScanHTMLTitles \ NameWidth=* \ DescriptionWidth=* \ SuppressLastModified \ SuppressSize order allow,deny allow from all /Directory Location /repos/thereponame DAV svn SVNPath /srv/svn/repos/thereponame SVNIndexXSLT /repos-web/view/repos-thereponame.xsl # Include per-directory access control policy AuthzSVNAccessFile /srv/svn/user_access/thereponame_authz # Limit write permission to list of valid users. # LimitExcept GET PROPFIND OPTIONS REPORT # Require SSL connection for password protection. SSLRequireSSL AuthType Basic AuthName Authorization Realm AuthUserFile /srv/svn/user_access/thereponame_passwd Require valid-user # /LimitExcept /Location /IfModule What have I done wrong? What are you trying to achieve with your `/repos` alias? Are you trying to server mulitple repos from that root but apply special handling to a specific path? The location directive serves one specific repo without the need for the alias, I would guess you could just remove that (but I might be wrong!) ~ mark c Thanks, Chris.
RE: mod_dav_svn: nested Location warning
[Polite note: the convention on this list is to post inline or at the bottom...] On 22/10/2013 15:00, Cooke, Mark wrote: -Original Message- From: Chris Rodgers [mailto:christopher.rodg...@cardiov.ox.ac.uk] Sent: 22 October 2013 11:15 Dear All, I have just upgraded from Apache HTTPD 2.2 -- 2.4. My svn repository seems to work fine over https but I get these repeated warnings: [:warn] [pid 15721] mod_dav_svn: nested Location '/repos/thereponame' hinders access to '' in SVNPath Location '/repos/thereponame' My httpd.conf file contains this: IfModule mod_dav_svn.c ## ## project related HTML files ## IfModule mod_alias.c Alias /repos/srv/svn/html /IfModule Directory /srv/svn/html Options +Indexes +Multiviews -FollowSymLinks IndexOptionsFancyIndexing \ ScanHTMLTitles \ NameWidth=* \ DescriptionWidth=* \ SuppressLastModified \ SuppressSize order allow,deny allow from all /Directory Location /repos/thereponame DAV svn SVNPath /srv/svn/repos/thereponame SVNIndexXSLT /repos-web/view/repos-thereponame.xsl # Include per-directory access control policy AuthzSVNAccessFile /srv/svn/user_access/thereponame_authz # Limit write permission to list of valid users. # LimitExcept GET PROPFIND OPTIONS REPORT # Require SSL connection for password protection. SSLRequireSSL AuthType Basic AuthName Authorization Realm AuthUserFile /srv/svn/user_access/thereponame_passwd Require valid-user # /LimitExcept /Location /IfModule What have I done wrong? What are you trying to achieve with your `/repos` alias? Are you trying to server mulitple repos from that root but apply special handling to a specific path? The location directive serves one specific repo without the need for the alias, I would guess you could just remove that (but I might be wrong!) ~ mark c Thanks, Chris. -Original Message- From: Chris Rodgers [mailto:christopher.rodg...@cardiov.ox.ac.uk] Sent: 22 October 2013 16:08 To: Cooke, Mark; users@subversion.apache.org Subject: Re: mod_dav_svn: nested Location warning Hi Mark, Thanks for getting back to me. I added this to avoid a 404 error for https://myserver/repos/ The /srv/svn/html folder is completely empty. C. ...but what should be there? If you want a list of repositories then I would suggest investigating the `SVNParentPath` directive. 1/ If you comment out the alias directive, does you svn work ok? 2/ what are you trying to serve via the `/repos` URL? ~ Mark C
Re: mod_dav_svn: nested Location warning
...but what should be there? If you want a list of repositories then I would suggest investigating the `SVNParentPath` directive. 1/ If you comment out the alias directive, does you svn work ok? 2/ what are you trying to serve via the `/repos` URL? ~ Mark C Hi Mark, 1) Yes, SVN does then work OK. But I then get a 404 error from https://server/repos/ 2) I am using the http://www.reposstyle.com/ style sheet, so each repository root has an Up button in the HTML page that is served... I wanted a blank directory listing with a quick .. link for getting back to the server root. The intention was not to reveal the repos names whilst avoiding the dead link from the repo root folder. I still don't really understand the need for this warning: There is no folder thereponame in /srv/svn/html so nothing actually conflicts. If I removed the Alias, wouldn't there still be a potential-but-not-in-fact conflict between a path on disk /htdocs/repos/thereponame (which doesn't exist) and the repository URL https://server/repos/thereponame/ ?? C.
Re: mod_dav_svn: nested Location warning
...but what should be there? If you want a list of repositories then I would suggest investigating the `SVNParentPath` directive. 1/ If you comment out the alias directive, does you svn work ok? 2/ what are you trying to serve via the `/repos` URL? ~ Mark C I have also just noticed that the warning is still being generated even without the Alias directive. Do you have any further ideas for what I can try / if this matters? Chris.
RE: mod_dav_svn: nested Location warning
-Original Message- From: Chris Rodgers [mailto:christopher.rodg...@cardiov.ox.ac.uk] Sent: 22 October 2013 16:51 ...but what should be there? If you want a list of repositories then I would suggest investigating the `SVNParentPath` directive. 1/ If you comment out the alias directive, does you svn work ok? 2/ what are you trying to serve via the `/repos` URL? ~ Mark C Hi Mark, 1) Yes, SVN does then work OK. But I then get a 404 error from https://server/repos/ What is in /srv/svn/repos/thereponame? SVNPath should point to a single repository root folder (the one with the conf, dav, db etc folders. 2) I am using the http://www.reposstyle.com/ style sheet, so each repository root has an Up button in the HTML page that is served... I wanted a blank directory listing with a quick .. link for getting back to the server root. The intention was not to reveal the repos names whilst avoiding the dead link from the repo root folder. I am not sure I understand. Do you want to use `SVNParentPath` to serve a group of repositories without actually revealing the list of repo names? You should be able to do that be editing the style sheet to not list the actual names but then how are your users going to find their repos? I still don't really understand the need for this warning: There is no folder thereponame in /srv/svn/html so nothing actually conflicts. It does because the alias is matched first and affects your loaction directive (I could well be wrong but I cannot see how to use the two together without potential issues). Can I suggest: instead of asking for a solution to your specific problem, ask how to achieve what you actually want (i.e. describe if my guess above is wrong)... ~ Mark C If I removed the Alias, wouldn't there still be a potential-but-not-in-fact conflict between a path on disk /htdocs/repos/thereponame (which doesn't exist) and the repository URL https://server/repos/thereponame/ ?? C.
SVN server log
Hello, Could somebody help me with what I see in the logs on the server? In some cases subversion server logs each request during checkout (get-file or get-dir) Like this: 11.11.11.71 - bob [22/Oct/2013:15:57:50 -0400] 207 1331 SVN/1.7.13 serf/1.2.1 repo:benchmark-svn [get-file /big-tree/combined/zoom-in-7.icns r26 props] 1331 Bytes in 0 Sec 11.11.11.71 - bob [22/Oct/2013:15:57:50 -0400] 207 1334 SVN/1.7.13 serf/1.2.1 repo:benchmark-svn [get-file /big-tree/combined/edit-paste-4.icns r26 props] 1334 Bytes in 0 Sec 11.11.11.71 - bob [22/Oct/2013:15:57:50 -0400] 207 1329 SVN/1.7.13 serf/1.2.1 repo:benchmark-svn [get-file /big-tree/combined/lmarbles.icns r26 props] 1329 Bytes in 0 Sec 11.11.11.71 - bob [22/Oct/2013:15:57:50 -0400] 207 1327 SVN/1.7.13 serf/1.2.1 repo:benchmark-svn [get-file /big-tree/combined/gquilt.icns r26 props] 1327 Bytes in 0 Sec What I usually see is only one line in this log about checkout-export operation: 11.11.11.22 - bob [22/Oct/2013:15:27:39 -0400] 200 107392120 SVN/1.8.3 (i686-pc-cygwin) serf/1.3.1 repo:benchmark-svn [checkout-or-export / r33] 107392120 Bytes in 354 Sec (both were svn co, one with the client on cygwin, another with from Linux box using 1.7.13 with compiled serf). Seems like this slows down checkouts somewhat, when client has to wait for a server to dump the loglines from buffer. --Roman ___ This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential. Unauthorised use or disclosure is prohibited. If you receive This e-mail in error, please advise immediately and delete the original message. This message may have been altered without your or our knowledge and the sender does not accept any liability for any errors or omissions in the message. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen.
Re: SVN server log
SVN 1.8 will behave like a Neon client when talking to a pre-1.8 server. Hence the single request. See: http://subversion.apache.org/docs/release-notes/1.8.html#neon-deleted On Oct 22, 2013, at 4:08 PM, Naumenko, Roman roman.naume...@rbccm.com wrote: Hello, Could somebody help me with what I see in the logs on the server? In some cases subversion server logs each request during checkout (get-file or get-dir) Like this: 11.11.11.71 - bob [22/Oct/2013:15:57:50 -0400] 207 1331 SVN/1.7.13 serf/1.2.1 repo:benchmark-svn [get-file /big-tree/combined/zoom-in-7.icns r26 props] 1331 Bytes in 0 Sec 11.11.11.71 - bob [22/Oct/2013:15:57:50 -0400] 207 1334 SVN/1.7.13 serf/1.2.1 repo:benchmark-svn [get-file /big-tree/combined/edit-paste-4.icns r26 props] 1334 Bytes in 0 Sec 11.11.11.71 - bob [22/Oct/2013:15:57:50 -0400] 207 1329 SVN/1.7.13 serf/1.2.1 repo:benchmark-svn [get-file /big-tree/combined/lmarbles.icns r26 props] 1329 Bytes in 0 Sec 11.11.11.71 - bob [22/Oct/2013:15:57:50 -0400] 207 1327 SVN/1.7.13 serf/1.2.1 repo:benchmark-svn [get-file /big-tree/combined/gquilt.icns r26 props] 1327 Bytes in 0 Sec What I usually see is only one line in this log about checkout-export operation: 11.11.11.22 - bob [22/Oct/2013:15:27:39 -0400] 200 107392120 SVN/1.8.3 (i686-pc-cygwin) serf/1.3.1 repo:benchmark-svn [checkout-or-export / r33] 107392120 Bytes in 354 Sec (both were svn co, one with the client on cygwin, another with from Linux box using 1.7.13 with compiled serf). Seems like this slows down checkouts somewhat, when client has to wait for a server to dump the loglines from buffer. --Roman ___ This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential. Unauthorised use or disclosure is prohibited. If you receive This e-mail in error, please advise immediately and delete the original message. This message may have been altered without your or our knowledge and the sender does not accept any liability for any errors or omissions in the message. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen.
Re: mod_dav_svn: nested Location warning
On Oct 22, 2013, at 11:04, Cooke, Mark mark.co...@siemens.com wrote: I am not sure I understand. Do you want to use `SVNParentPath` to serve a group of repositories without actually revealing the list of repo names? You should be able to do that be editing the style sheet to not list the actual names but then how are your users going to find their repos? I don't think so, because the XML data and the XSLT stylesheet are both sent to the browser which puts them together to display them; a user could easily circumvent a stylesheet by viewing the XML source directly. If you're using SVNParentPath but don't want to show the list of repositories, you simply don't set SVNListParentPath on. The directive Alias /repos /srv/svn/html matches all locations that *begin* with /repos; sounds like what you really want is to match only the locations /repos and /repos/ exactly. For that you should be able to use something like: AliasMatch ^/repos/?$ /srv/svn/html Or: RedirectMatch permanent ^/repos$ /repos/ AliasMatch ^/repos/$ /srv/svn/html If the index.html page in that directory references any assets (stylesheets, images) in the same folder they won't work because the AliasMatch doesn't know about them. You could either list those assets in the AliasMatch too, or just reference assets from elsewhere on your server.
Would reintegration still work the 2nd time after 1st reintegration only commits a partial list of changes
Hi All We like to reintegrate from bracnh to trunk and for unclear reasons some files are touched that we dont want to get into the trunk so that seems to indicate that the server thinks the password is correct, but there's some other error going on if we do a few reverts of a few files and directories before the commit and after our commit rev X to the trunk, and suppose we like to reintegrate using the same branch to the trunk, would reintegrate still work even after we apply --record-only rev X; We ask because we read somewhere on stackoverflow that if we do that, when we need to perform reintegration because of bad merges, then this subset of files in first commit would cause problems in 2nd reintegration even after applying --record-only on the branch Is there a problem with my scenario ? Thanks Sincerely