[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Commiting binary file on network/Samba disk - bad file permission inside .svn/props

From: Michal Jurosz <rootmj_konf_at_seznam.cz>
Date: Fri, 27 Nov 2009 14:05:58 +0100

Hi. My guess: Committing binary file (from Windows on Samba disk) create
temp file inside .svn/props with bad permission (no write access for
user). Should I report this as bug?

# --------------------------------------------------------------------
# Commiting binary file on network/Samba disk - bad file permission
inside .svn/props.
# Commiting text files is ok. So probably no Samba config problem.
# Probably very old regression (from 1.4?). Samba config wasn't changed
since it works.

# W:\ is Linux Samba disk mouted as network drive to WinXP

# on WinXP client

W:\>cd test-repository
W:\test-repository>echo text content > favicon.txt
W:\test-repository>svn add favicon.txt
A favicon.txt

W:\test-repository>svn ci -m"text file is ok" favicon.txt
Adding favicon.txt
Transmitting file data .
Committed revision 99.

W:\test-repository>

W:\test-repository>svn add favicon.ico
A (bin) favicon.ico

W:\test-repository>svn ci favicon.ico -m"image (binary file)"
Adding (bin) favicon.ico
Transmitting file data .svn: Commit succeeded, but other errors follow:
svn: Error bumping revisions post-commit (details follow):
svn: In directory 'W:\test-repository'
svn: Error processing command 'committed' in 'W:\test-repository'
svn: Can't move 'W:\test-repository\.svn\props\favicon.ico.svn-work' to
'W:\test-repository\.svn\prop-base\favicon.ico.svn-base': Access denied.

W:\test-repository>svn cleanup
svn: In directory '.'
svn: Error processing command 'committed' in '.'
svn: Can't move '.svn\props\favicon.ico.svn-work' to
'.svn\prop-base\favicon.ico.svn-base': Access denied.

# on Linux (Samba) server

[root_at_ent data]# cd test-repository/

[root_at_ent test-repository]# ls -al .svn/props/favicon.ico.svn-work
-r-xr--r-- 1 vyvoj vyvoj 53 Aug 19 12:28 .svn/props/favicon.ico.svn-work

[root_at_ent test-repository]# chmod u+w .svn/props/favicon.ico.svn-work

# on WinXP client

W:\test-repository>svn cleanup
W:\test-repository>

# --------------------------------------------------------------------

# Bypass ("Solution")
# Add 'force create mode = 0664' to Samba config
# Run 'service smb restart'

W:\test-repository>svn add favicon.ico
A (bin) favicon.ico

W:\test-repository>svn ci favicon.ico -m"image (binary file)"
Adding (bin) favicon.ico
Transmitting file data .
Committed revision 104.

-- 
S pozdravem Michal Jurosz
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2424830
Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-27 14:08:29 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.