Commit cbdbe27
Roy Lin
fix(cri): reject empty image reference in pull/status/remove image
PullImage, ImageStatus and RemoveImage validated that the image SPEC was present
but not that image_spec.image was non-empty. An empty reference passed the check
and failed deep in reference parsing with a confusing error. Reject it up front
with a clear invalid_argument, consistently across the three image RPCs.
From the CRI audit (hand-verified). clippy -D warnings clean; 237 cri tests pass.1 parent 32ca2be commit cbdbe27
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
228 | 235 | | |
229 | 236 | | |
230 | 237 | | |
| |||
258 | 265 | | |
259 | 266 | | |
260 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
261 | 275 | | |
262 | 276 | | |
263 | 277 | | |
| |||
298 | 312 | | |
299 | 313 | | |
300 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
301 | 322 | | |
302 | 323 | | |
303 | 324 | | |
| |||
0 commit comments