Skip to content

fix(processors.converter): Do not panic on non-string base64_ieee_float32 fields - #20210

Merged
skartikey merged 1 commit into
influxdata:masterfrom
sohailshk:fix/converter-base64-non-string
Nov 23, 2026
Merged

skartikey merged 1 commit into
influxdata:masterfrom
sohailshk:fix/converter-base64-non-string

Conversation

@sohailshk

@sohailshk sohailshk commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

In convertFields the base64_ieee_float32 branch asserted value.(string) without a check, so a matching integer, float or bool field panics with interface conversion: interface {} is int64, not string. Such a field is now logged and removed, as it is when the string is not valid base64. A new TestMeasurement case with a string, an integer and a float field and base64_ieee_float32 = ["*"] panics on master and passes with the change.

Checklist

Related issues

resolves #20209

…at32 fields

Fields matched by base64_ieee_float32 were asserted to be strings without a check, so a matching integer or float field crashed the agent. Such fields are now reported and removed, as for a string that is not valid base64.
@sohailshk
sohailshk requested a review from a team November 21, 2026 19:19
@telegraf-tiger

Copy link
Copy Markdown
Contributor

Thanks so much for the pull request!
🤝 ✒️ Just a reminder that the CLA has not yet been signed, and we'll need it before merging. Please sign the CLA when you get a chance, then post a comment here saying !signed-cla

@telegraf-tiger telegraf-tiger Bot added fix pr to fix corresponding bug plugin/processor labels Nov 21, 2026
@telegraf-tiger

Copy link
Copy Markdown
Contributor

@srebhan srebhan added the waiting for response waiting for response from contributor label Nov 23, 2026
@srebhan srebhan self-assigned this Nov 23, 2026
@srebhan

srebhan commented Nov 23, 2026

Copy link
Copy Markdown
Member

!signed-cla

@telegraf-tiger telegraf-tiger Bot removed the waiting for response waiting for response from contributor label Nov 23, 2026
@srebhan

srebhan commented Nov 23, 2026

Copy link
Copy Markdown
Member

@sohailshk please check one of the AI boxes in the PR description so we can review your PR!

@srebhan

srebhan commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

@sohailshk can you please check one of the AI boxes ASAP so we can add this PR in today's bugfix release?

@sohailshk

Copy link
Copy Markdown
Contributor Author

@sohailshk can you please check one of the AI boxes ASAP so we can add this PR in today's bugfix release?

done!!

@srebhan srebhan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @sohailshk!

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Nov 23, 2026
@srebhan srebhan assigned skartikey and unassigned srebhan Nov 23, 2026

@skartikey skartikey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sohailshk Thanks!

@skartikey
skartikey merged commit 8242d48 into influxdata:master Nov 23, 2026
29 checks passed
@github-actions github-actions Bot added this to the v1.40.4 milestone Nov 23, 2026
srebhan pushed a commit that referenced this pull request Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix pr to fix corresponding bug plugin/processor ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

processors.converter panics when a base64_ieee_float32 field is not a string

3 participants