【FAQ】Gerrit创建xxx/xxx这种多目录层次类型的project报错?
来源:互联网 发布:vue.js ajax 编辑:程序博客网 时间:2024/04/29 20:46
目标:
在gerrit上分类管理不同层次的git库,通过目录层次形式分开存放git库,例如app/a.git,platform/b.git……
操作:
1.在gerrit页面用管理员权限创建一个新项目app/abc
2.在gerrit页面创建abc项目,然后在服务器git目录下新建一个app目录,再将已有的abc.git库移动到app目录底下,重启gerrit服务;
3.用gerrit命令行gerritcreate-project命令创建app/abc项目
问题:
操作1无法创建项目,报错:404 Not Found;
操作2和3都能在gerrit页面显示app/abc项目,但是点开项目却报错:CodeReview-Error The page you requested was not found, or you do not havepermission to view this page.
确认操作账户是管理员,目录的权限也没有问题,2和3方式建立的项目可以clone、修改、push到gerrit,但是点开就是报如上错误。
分析:
apache默认的是AllowEncodedSlashesoff,它会禁止URLs路径使用被编码的路径分隔符(例如:“/”被编码为%2F)
解决:
对gerrit站点的apache配置文件中添加一行:AllowEncodedSlashesOn,保存并重启apache,搞定~
位置:/etc/httpd/conf/httpd.conf
1 0
- 【FAQ】Gerrit创建xxx/xxx这种多目录层次类型的project报错?
- 关于解决Eclipse报错“Path must include project and resource name:xxx.xxx”的方式
- 改变目录 xxx.vcproj stdafx.h 报错 xxx.pch
- Myeclipse报错Errors running builder 'DeploymentBuilder' on project 'xxx'
- 创建项目时 building “XXX”gradle project info的解决办法
- React创建项目报错Error: EACCES: permission denied, open 'xxx/xxx/.babel.json'
- 【FAQ】xcodebuild in command line,报错:No architectures to compile for xxx,怎么办?
- .net自定义控件添加不了,报错:引发了“NullReferenceException:无法创建xxx的实例”
- Xcode报错undefined xxx
- #define XXX(...) 这种形式多参宏预处理之后的样子
- Java-5-解决报错:Error Loading Project: Cannot load module xxx Details...
- eclipse中运行项目报错:Project xxx cannot reference itself
- MFC添加对话框报错:enum { IDD = xxx};“xxx”: 未声明的标识符
- 创建/导入项目的时候,一直处于building “XXX”gradle project info的解决办法
- confluence创建文件报错 can not create to file /tmp/xxx Errcode:28,引出的 df命令高级用法
- Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound.
- Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .
- Nhibernate报错:No persister for: xxx.xxx.xxx(实体类名称)
- 快速下载XcodeSimulator模拟器和Documentation开发文档
- od命令 查看文件的二进制内容
- iOS开发之Objective-C与JavaScript的交互
- 五种创建UIImage的类方法
- java static 静态属性
- 【FAQ】Gerrit创建xxx/xxx这种多目录层次类型的project报错?
- jquery ajax post格式
- 典型的递归函数搜集
- 安卓在4.3的系统中提供了低功耗蓝牙Bluetooth Low Energy
- android meta-data 使用
- Error:diff: /../Podfile.lock: No such file or directory
- AndroidManifest.xml文件详解(uses-feature)
- openlayers限制地图拖动区域
- 微信开发中踩过的坑