Commit bcf3e5c
committed
FIX IndexOutOfBound in redirection / forwarding
When redirecting to the next step in the GitHub
import wizard an IndexOutOfBound exception was
thrown when using relative URL in gerrit.config
for the wizard steps.
Example:
[github]
wizardFlow = repositories-next.gh => pullrequests.html
This was due to the inconsistence of requestURI
vs. contextPath. Target URI needs always to be
absolute and have contextPath as prefix of requestURI.
Change-Id: Ib5ef32378f9b351bf568aaf615b67cf864904a321 parent f64fee9 commit bcf3e5c
File tree
1 file changed
+10
-4
lines changed- github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/wizard
1 file changed
+10
-4
lines changedLines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | | - | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
143 | 149 | | |
0 commit comments