sonarRunner权限不足错误 [英] Insufficient privileges error with sonarRunner

查看:309
本文介绍了sonarRunner权限不足错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行声纳时出现权限不足错误.在我将sonarQube升级到5.0之后,这种情况开始发生.

I am getting Insufficient privileges error running sonar. This started happening after I upgraded sonarQube to 5.0.

错误:声纳跑步者执行期间出错 错误:无法执行声纳 错误:原因:无法修饰'org.sonar.api.resources.File@152f931e [key = ........]' 错误:由以下原因引起:{错误":[{"msg":权限不足"}}}

ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: Fail to decorate 'org.sonar.api.resources.File@152f931e[key=........]' ERROR: Caused by: {"errors":[{"msg":"Insufficient privileges"}]}

对于现有项目,我重命名了钥匙,现在有了新的声纳项目.那些似乎目前工作正常.创建的新项目将引发此错误.有什么建议吗?

For the existing projects, I renamed the key and now I have new sonar projects. Those seems to be working fine for now. The new projects that are created are throwing this error. Any suggestions?

推荐答案

该问题似乎是Sonar Server 5.0发行版中的错误.

The issue appears to be a bug in the Sonar Server 5.0 release.

https://jira.codehaus.org/browse/SONAR-6091

要解决此问题,可以在管理页面上将"SEE SOURCE CODE"项目权限设置为包括"Anyone",如以下屏幕截图所示:

In order to work around it the 'SEE SOURCE CODE' project permissions can be set to include 'Anyone' from the admin page as in the below screen shot:

很明显,这在不受保护的环境中并不理想,因为可以访问Sonar服务器API的任何人都可以查看源代码,但希望它可以在Sonar Server 5.1发行版中得到解决.

Obviously, this is not ideal in an unprotected environment because the source code can be viewed by anyone with access to the Sonar server API, but hopefully its addressed in the 5.1 release of Sonar Server.

这篇关于sonarRunner权限不足错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆