SVN Repo 日志中没有作者
No Author in SVN Repo Logs
我正在尝试在新机器上设置 svn 存储库和 Redmine。一切正常,运行 很好,除了我想强制作者提交。
现在,我的日志看起来像这样 (svn log):
r10 | (no author) | 2015-04-30 16:18:47 -0700 (Thu, 30 Apr 2015) | 2 lines
自从我来这里以来,我们还有另一个用 svn 设置的盒子,它会在用户每次尝试提交时询问他的用户名和密码。我查看了所有配置文件,它们看起来完全一样。我怎样才能做到这一点?我已将此问题发布到 Whosebug 和 Redmine 论坛。我还没有得到答案。这对我来说是一件非常非常重要的事情,因为我想看看谁对回购做了什么。
这是我的 apache2.conf svn 目录。里面有很多Redmine的东西,不过我觉得不重要。我觉得Redmine就是看作者在svn上的东西来显示的
PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath /var/www/redmine-svn
Options FollowSymLinks
#Order deny,allow
#Deny from all
Require valid-user
Satisfy any
# If a client tries to svn update which involves updating many files,
# the update request might result in an error Server sent unexpected
# return value (413 Request Entity Too Large) in response to REPORT
# request,because the size of the update request exceeds the limit
# allowed by the server. You can avoid this error by disabling the
# request size limit by adding the line LimitXMLRequestBody 0
# between the <Location...> and </Location> lines.
LimitXMLRequestBody 0
# Only check Authentication for root path, nor again for recursive
# folder.
# Redmine core does only permit access on repository level, so this
# doesn't hurt security. On the other hand it does boost performance
# a lot!
SVNPathAuthz on
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
AuthType Basic
AuthName "Redmine SVN Repository"
#read-only access
<Limit GET PROPFIND OPTIONS REPORT>
Require valid-user
Allow from localhost
# Allow from another-ip
Satisfy any
</Limit>
# write access
<LimitExcept GET PROPFIND OPTIONS REPORT>
#Require all denied
Require valid-user
</LimitExcept>
## for mysql
RedmineDSN "DBI:mysql:database=redmine_default;host=localhost"
RedmineDbUser "redmine"
RedmineDbPass "---"
</Location>
在服务器上的 /etc/subversion/config 中,我取消了以下注释:
store-passwords = no
store-auth-creds = no
然后我删除我客户端上 .subversion/auth/* 中的本地内容。但我仍然可以在不提供作者的情况下提交!我认为问题出在 Apache 的东西上,但我就是想不通:(
我错过了什么?这让我陷入困境,我无法继续进行这些未经授权的提交!
在此先感谢您的帮助。
已更新 apache.conf 似乎询问我的用户密码(更改以粗体显示):
PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath /var/www/redmine-svn
Options FollowSymLinks
**Order deny,allow**
#Deny from all
**#Require valid-user**
Satisfy any
# If a client tries to svn update which involves updating many files,
# the update request might result in an error Server sent unexpected
# return value (413 Request Entity Too Large) in response to REPORT
# request,because the size of the update request exceeds the limit
# allowed by the server. You can avoid this error by disabling the
# request size limit by adding the line LimitXMLRequestBody 0
# between the <Location...> and </Location> lines.
LimitXMLRequestBody 0
# Only check Authentication for root path, nor again for recursive
# folder.
# Redmine core does only permit access on repository level, so this
# doesn't hurt security. On the other hand it does boost performance
# a lot!
SVNPathAuthz on
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
AuthType Basic
AuthName "Redmine SVN Repository"
#read-only access
<Limit GET PROPFIND OPTIONS REPORT>
Require valid-user
Allow from localhost
# Allow from another-ip
Satisfy any
</Limit>
# write access
<LimitExcept GET PROPFIND OPTIONS REPORT>
**#Require all denied**
**Deny from all**
Require valid-user
</LimitExcept>
## for mysql
RedmineDSN "DBI:mysql:database=redmine_default;host=localhost"
RedmineDbUser "redmine"
RedmineDbPass "SrDQio8BjB0Q"
</Location>
我正在尝试在新机器上设置 svn 存储库和 Redmine。一切正常,运行 很好,除了我想强制作者提交。
现在,我的日志看起来像这样 (svn log):
r10 | (no author) | 2015-04-30 16:18:47 -0700 (Thu, 30 Apr 2015) | 2 lines
自从我来这里以来,我们还有另一个用 svn 设置的盒子,它会在用户每次尝试提交时询问他的用户名和密码。我查看了所有配置文件,它们看起来完全一样。我怎样才能做到这一点?我已将此问题发布到 Whosebug 和 Redmine 论坛。我还没有得到答案。这对我来说是一件非常非常重要的事情,因为我想看看谁对回购做了什么。
这是我的 apache2.conf svn 目录。里面有很多Redmine的东西,不过我觉得不重要。我觉得Redmine就是看作者在svn上的东西来显示的
PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath /var/www/redmine-svn
Options FollowSymLinks
#Order deny,allow
#Deny from all
Require valid-user
Satisfy any
# If a client tries to svn update which involves updating many files,
# the update request might result in an error Server sent unexpected
# return value (413 Request Entity Too Large) in response to REPORT
# request,because the size of the update request exceeds the limit
# allowed by the server. You can avoid this error by disabling the
# request size limit by adding the line LimitXMLRequestBody 0
# between the <Location...> and </Location> lines.
LimitXMLRequestBody 0
# Only check Authentication for root path, nor again for recursive
# folder.
# Redmine core does only permit access on repository level, so this
# doesn't hurt security. On the other hand it does boost performance
# a lot!
SVNPathAuthz on
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
AuthType Basic
AuthName "Redmine SVN Repository"
#read-only access
<Limit GET PROPFIND OPTIONS REPORT>
Require valid-user
Allow from localhost
# Allow from another-ip
Satisfy any
</Limit>
# write access
<LimitExcept GET PROPFIND OPTIONS REPORT>
#Require all denied
Require valid-user
</LimitExcept>
## for mysql
RedmineDSN "DBI:mysql:database=redmine_default;host=localhost"
RedmineDbUser "redmine"
RedmineDbPass "---"
</Location>
在服务器上的 /etc/subversion/config 中,我取消了以下注释:
store-passwords = no
store-auth-creds = no
然后我删除我客户端上 .subversion/auth/* 中的本地内容。但我仍然可以在不提供作者的情况下提交!我认为问题出在 Apache 的东西上,但我就是想不通:(
我错过了什么?这让我陷入困境,我无法继续进行这些未经授权的提交!
在此先感谢您的帮助。
已更新 apache.conf 似乎询问我的用户密码(更改以粗体显示):
PerlLoadModule Apache::Redmine
<Location /svn>
DAV svn
SVNParentPath /var/www/redmine-svn
Options FollowSymLinks
**Order deny,allow**
#Deny from all
**#Require valid-user**
Satisfy any
# If a client tries to svn update which involves updating many files,
# the update request might result in an error Server sent unexpected
# return value (413 Request Entity Too Large) in response to REPORT
# request,because the size of the update request exceeds the limit
# allowed by the server. You can avoid this error by disabling the
# request size limit by adding the line LimitXMLRequestBody 0
# between the <Location...> and </Location> lines.
LimitXMLRequestBody 0
# Only check Authentication for root path, nor again for recursive
# folder.
# Redmine core does only permit access on repository level, so this
# doesn't hurt security. On the other hand it does boost performance
# a lot!
SVNPathAuthz on
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
AuthType Basic
AuthName "Redmine SVN Repository"
#read-only access
<Limit GET PROPFIND OPTIONS REPORT>
Require valid-user
Allow from localhost
# Allow from another-ip
Satisfy any
</Limit>
# write access
<LimitExcept GET PROPFIND OPTIONS REPORT>
**#Require all denied**
**Deny from all**
Require valid-user
</LimitExcept>
## for mysql
RedmineDSN "DBI:mysql:database=redmine_default;host=localhost"
RedmineDbUser "redmine"
RedmineDbPass "SrDQio8BjB0Q"
</Location>