Skip to content

Bug 2059503 - Ensure errors are not put into the client_info or any other internal section - #3564

Open
badboy wants to merge 1 commit into
mainfrom
ensure-errors-are-not-put-into/tnnwnklmqvvw
Open

Bug 2059503 - Ensure errors are not put into the client_info or any other internal section#3564
badboy wants to merge 1 commit into
mainfrom
ensure-errors-are-not-put-into/tnnwnklmqvvw

Conversation

@badboy

@badboy badboy commented Jul 31, 2026

Copy link
Copy Markdown
Member

No description provided.

@badboy
badboy requested a review from a team as a code owner July 31, 2026 10:40
@badboy
badboy requested review from jeddai and removed request for a team July 31, 2026 10:40
@badboy
badboy force-pushed the ensure-errors-are-not-put-into/tnnwnklmqvvw branch from 67e3f03 to eaa832a Compare July 31, 2026 10:40
@badboy
badboy requested review from a team and chutten July 31, 2026 10:40
@badboy
badboy force-pushed the ensure-errors-are-not-put-into/tnnwnklmqvvw branch from eaa832a to f7d891a Compare July 31, 2026 10:41
Comment on lines +178 to +186
// string JUST outside the limits, forcing this to record an error.
let term = "a".repeat(255) + "b";
glean::update_attribution(AttributionMetrics {
source: Some("rlb-tests".into()),
medium: Some("cargo-test".into()),
campaign: Some("testing".into()),
term: Some(term),
content: None,
});

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.

Does this subsequently test that the error doesn't show up in the client_info or other sections?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yup! This test specifically fills a ping with data and then checks the resulting payload against the (bundled) ping schema.
The test with this addtions fails without the fix from this PR

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