My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 968: Submitting project.config with malformed access right leads to Exception on submit
3 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----


Sign in to add a comment
 
Project Member Reported by stefanl...@gmail.com, May 20, 2011
Affected Version: master

What steps will reproduce the problem?
1. Add a line "read = abc" to an access section
2. Push to /refs/for/refs/meta/config
3. Review and Submit

What is the expected output? What do you see instead?

There is an Exception (see below) and the state of the change is "Submitted, Merge Pending". Reloading the open changes page leads to an internal server exception.

Caused by: org.eclipse.jgit.errors.ConfigInvalidException: Invalid rule in access.refs/heads/a*.read: Rule must include group: abc
	at com.google.gerrit.server.git.ProjectConfig.onLoad(ProjectConfig.java:217)
	at com.google.gerrit.server.git.VersionedMetaData.load(VersionedMetaData.java:121)
	at com.google.gerrit.server.git.MergeOp.updateBranch(MergeOp.java:888)
	... 50 more
Caused by: java.lang.IllegalArgumentException: Rule must include group: abc
	at com.google.gerrit.common.data.PermissionRule.fromString(PermissionRule.java:191)
	at com.google.gerrit.server.git.ProjectConfig.onLoad(ProjectConfig.java:215)
	... 52 more

May 20, 2011
Project Member #1 nas...@grainawi.org
(No comment was entered for this change.)
Status: Accepted
May 23, 2011
#2 sop@google.com
(No comment was entered for this change.)
Labels: git-store
Sign in to add a comment

Powered by Google Project Hosting