Commit f7ae7f5
fix: skip push permission check when no identity resolver is configured
CheckUserPushPermissionHook was blocking all pushes in open mode (no
users configured) because a null identityResolver returned
Optional.empty(), which fell through to the "user not registered" error
path. Add an early return when identityResolver is null, consistent with
DummyUserAuthorizationService's open/permissive behaviour.
Fixes the two failing e2eTest cases in StoreForwardModeE2ETest.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5735791 commit f7ae7f5
2 files changed
Lines changed: 17 additions & 4 deletions
File tree
- jgit-proxy-core/src
- main/java/org/finos/gitproxy/git
- test/java/org/finos/gitproxy/git
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| |||
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
| |||
0 commit comments