Issue 1015: Cannot edit access reference "^refs/heads/*"
Status:  Submitted
Owner: ----
Closed:  Jun 2011
Reported by szymon.r...@gmail.com, Jun 13, 2011
Affected Version: 2.2.1

What steps will reproduce the problem?
1. In version 2.1.6 of Gerrit add reference access for: "^refs/heads/[A-Z]{2,}-[0-9]+.*"
2. Upgrade to version 2.2.1 (2.1.6 -> 2.1.7 -> 2.2.0 -> 2.2.1)
3. Now you cannot edit previously created reference. In form after clicking edit button it transforms from "^refs/heads/[A-Z]{2,}-[0-9]+.*" to "refs/heads/^refs/heads/[A-Z]{2,}-[0-9]+.*"

What is the expected output? What do you see instead?
Allow editing this field or automatic fix of wrong created regexp, now i cannot edit this access right but it's works correctly. 

Please provide any additional information below.
Twoo screenshots list_view.png and edit_view.png.
list_view.png
17.3 KB   View   Download
edit_view.png
17.4 KB   View   Download
Jun 14, 2011
#1 sop@google.com
In 2.2.x you can't create references with a regex. There is a problem with the RefPatternBox that handles these field values.
Status: Submitted
Labels: FixedIn-2.2.2