在以前发的博文里提到如何在gerrit里集成gitweb。
集成之后发现只有我的root用户(gerrit里注册的第一个用户)才能够点gitweb链接正常打开gitweb页面。其他的普通用户点gitweb链接显示404错误。
经过网上调查发现2.5开始使用gitweb需要有【refs/*】下所有的read权限。
参考链接1 里有下面一段话
『This is due to a change on the level of security applied by GitServlet: now the GitWeb makes sure that the user has full access to ALL branches (refs/meta/config included) otherwise it returns a 404.
The problem is: repo owner and gerrit administrator has implicit access to refs/meta/config ... and thus an extra bit is need on the if() checking permissions.』
这是2.5-rc0发布时的一个bug。后来改掉了。修改内容看参考链接2。
但是既然改了为什么我这还不行呢? 读了gerrit 2.5的release note才知道原因。Release note里有下面一句话。
『Make read access to refs/meta/config by default exclusive to project owners 』
这个设定做在了All-Projects的ACL设定里,所以缺省被所有的Project继承。
于是在单独项目的ACL里为项目的用户组增加了对refs/meta/config的read权限。果然用户可以正常显示gitweb页面了。
但是,这个设定带来了一个不好的影响。原来gerrit是用git做自身的ACL管理的,因此所有对refs/meta/config有read权限的用户都可以在Project的Access页面里修改权限,修改后虽然不能直接submit,但是可以作为patch提交review。而且通过gitweb就能够看到project.config和groups文件的全部内容,知道当前项目是如何设置权限的。这样是否合适就仁者见仁智者见智了。另外,对于用户提交的关于权限修改的patch如果想commit的话需要对refs/meta/config做和refs/heads/*一样的权限设定,也就说需要Label Code-Review,Label Verified,Submit三个权限才有可能commit patch。
最后感叹一下,Gerrit的文档真的是很少啊。调查一个问题的原因居然要看到那么多东西。。。
- 浏览: 309724 次
文章分类
最新评论
-
ZT71363387:
多谢,帮我解决了抄送人收不到邮件的问题
python smtplib -
dsjt:
pythonw.exe 运行后无反应。版本不匹配啊。
python+PyQT+Eric安装配置 -
dsjt:
xp 32位系统安装eric后,目录下没有 .bat文件是怎么 ...
python+PyQT+Eric安装配置
发表评论
-
How to modify existing, unpushed or pushed commits?
2017-06-20 16:43 576https://stackoverflow.com/ques ... -
git diff提示filemode发生改变(old mode 100644、new mode 10075)
2017-06-10 09:32 1852今天在提交代码之前 git status了一下,发现一 ... -
Playing With Gerrit Jira Plugin
2017-06-09 16:10 694Playing With Gerrit Jira Plugi ... -
Gerrit mysql error: Communications link failure
2017-05-24 15:31 1038fatal: DbInjector failed f ... -
Gerrit replication.config
2017-03-16 19:15 1797replication.config [remote &q ... -
Gerrit命令
2017-03-10 10:33 1797查看可见的群组 ssh -p 29418 admin@lo ... -
Make Gerrit look for new repositories
2017-03-08 19:01 583Command line alternative Copy ... -
gitlab 项目迁移
2017-03-04 11:45 2764gitlab项目迁移: 一: 场景 目前有 ... -
Gerrit reviewer plugin
2017-02-20 11:20 1059https://gerrit.googlesource.co ... -
One or more refs/for/ names blocks change upload
2017-02-16 12:23 944One or more refs/for/ names ... -
Python的高级Git库 Gittle安装使用方法
2017-02-15 18:29 2365本文为大家讲解的是Python的高级Git库 Gittle ... -
GitPython 库
2017-02-15 18:25 1150GitPython is a python library ... -
Why does Gerrit not include the change-id into merge commits?
2017-01-20 10:23 550The underlying pro ... -
How to use gerrit gsql -c option
2017-01-06 19:35 1003You have to ensure the quotes ... -
How to remove group and project in Gerrit ?
2016-12-26 15:35 657Group1. access gerrit sql dat ... -
Pygerrit - Client library for interacting with Gerrit Code Review
2016-12-20 14:11 1121https://github.com/sonyxperia ... -
git 取得两个 tag 之间的 commit
2016-11-26 13:10 2142参考:http://stackoverflow.com/qu ... -
Ubuntu Git 版本升级
2016-11-05 14:52 605安装命令: sudo add-apt-repository ... -
repo upload Uncomment the branches to upload:
2016-10-09 11:34 933$ repo upload 如果有多个项目同时进行了改动, ... -
Repo/Git 使用手冊, android開發圖說如何使用指令
2016-10-09 11:13 913安裝repo 參考:http://source.andro ...
相关推荐
本文档详细介绍了如何在linux系统下安装ldap、gerrit、gitweb的安装流程。还包括gerrit的ldap认证配置,gerrit+gitweb集成化安装部署流程。
自己从零开始搭建git + gitweb + gerrit服务器 软硬件环境 物理机:Windows10 64位 VMware版本:VMware Workstation 12 Ubuntu版本:ubuntu-14.04-server-amd64.iso
gerrit搭建方法,已经试验过可以成功。
gerrit代码审核服务器:作为Git代码管理服务器,gerrit为git代码的提交引入了强制审核机制(除非特别的授权设置),所以也可以称gerrit服务器为代码审核服务器,其提供团队开发时的严格的代码审核入库机制,便于版本...
gerrit安装及使用以及与git的集成配置,通过apache实现代理访问
gerrit使用文档手册,适合新手学习gerrit
Gerrit 中文配置使用
Gerrit Code Review 搭建gerrit平台所需工具 官方最新版本
gerrit-2.15.3 与Cas集成部署
git+repo+gerrit代码评审服务器搭建流程详细步骤,一步步教你搭建完整的代码评审服务器,本人亲自搭建流程记录,验证通过
git+gerrit+jenkins+sonar持续集成环境大家资料,具体搭建步骤请参考本人博客。 里面还有一些插件,方便大家少走弯路
gerrit-3.6.1安装包
gerrit.el:emacs中的gerrit集成
Gerrit Code Review 系统的安装,配置,设置等说明,有一定的帮助
1.通过如下步骤设置gerrit服务开机自启动: sudo ln -snf /home/gerrit/review_site/bin/gerrit.sh /etc/init.d/gerrit.sh sduo ln -snf /etc/init.d/gerrit.sh /etc/rc2.d/S90gerrit sduo ln -snf /etc/init.d/...
a guide for gerrit user
gerrit-2.15-rc4.war,gerrit 最新稳定版本 gerrit 最新稳定版本
windows 搭建git,gerrit代码审核平台
Gerrit使用方法说明 Gerrit上代码提交的三种状态 代码提交至Gerrit之后,有三种状态,分别是:Open、Merged、Abandoned。 Open 状态的代码需要经过Review,Verify,Submit操作后才会真正入库,即成为Merged状态 ...
Gerrit 中的 JIRA 集成 这是一个非废弃的 hooks-jira 叉子,专为我们在奥克兰大学做看板而设计。 它主要增加了在票证不在正确位置时转换票证的能力,并允许对它们采取行动,目前是“设置分配”和“取消分配”。 您...