Skip to content

[release/v1.4] Fix nil-deref panics when listing projections - #49

Merged
w1am merged 2 commits into
release/v1.4from
cherry-pick/48/ui-1893/fix-projection-list-nil-panics-release/v1.4
Jul 27, 2026
Merged

[release/v1.4] Fix nil-deref panics when listing projections#49
w1am merged 2 commits into
release/v1.4from
cherry-pick/48/ui-1893/fix-projection-list-nil-panics-release/v1.4

Conversation

@github-actions

Copy link
Copy Markdown

Cherry picked from #48

listInternal dereferenced the Statistics stream without checking the
call error (nil stream on failure) and item.Details without a nil guard;
GetStatus then indexed [0] on a possibly-empty result. Guard all three:
return the call error, skip items with no details, and return not-found
when a named lookup yields nothing.
Skipping a nil-Details statistics frame silently dropped an entry from
ListAll/ListContinuous and could turn a malformed named lookup into
ResourceNotFound. A partial list with no signal is worse than a clear
failure - callers can't tell a projection is missing from a bad frame,
and gaffer's drift check would read the dropped projection as undeployed.
Surface it as an ErrorCodeInternalServer so the caller decides how to
handle it. The empty-stream case in GetStatus is still a genuine
not-found and keeps its own guard.
@linear-code

linear-code Bot commented Jul 27, 2026

Copy link
Copy Markdown

UI-1893

@w1am
w1am merged commit 412704a into release/v1.4 Jul 27, 2026
21 checks passed
@w1am
w1am deleted the cherry-pick/48/ui-1893/fix-projection-list-nil-panics-release/v1.4 branch July 27, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants