Skip to content

ui: fix journal parsing in ProgressView#2085

Merged
Chris-Peterson444 merged 1 commit into
canonical:mainfrom
Chris-Peterson444:journal-parsing-unpack-error
Sep 17, 2024
Merged

ui: fix journal parsing in ProgressView#2085
Chris-Peterson444 merged 1 commit into
canonical:mainfrom
Chris-Peterson444:journal-parsing-unpack-error

Conversation

@Chris-Peterson444

@Chris-Peterson444 Chris-Peterson444 commented Sep 17, 2024

Copy link
Copy Markdown
Contributor

The ProgressView.other_event function splits messages on the ":" character to get the context type and the message from journal messages. This code will crash if the message has more than one ":" character. When passing cloud-config with invalid top level keys, subiquity will check these keys and report on the journal with a message: "cloud-init schema validation failure for: [, , ...]", which was causing the UI to crash repeatedly.

LP: #2080918

The ProgressView.other_event function splits messages on the ":"
character to get the context type and the message from journal messages.
This code will crash if the message has more than one ":" character.
When passing cloud-config with invalid top level keys, subiquity will
check these keys and report on the journal with a message:
"cloud-init schema validation failure for: <key1> [, <key2>, ...]",
which was causing the UI to crash repeatedly.

LP: #2080918
@Chris-Peterson444

Copy link
Copy Markdown
Contributor Author

I was pretty sure I tested this out in Noble before and didn't run into this, but I can recreate it with the Noble release ISO.

@Chris-Peterson444 Chris-Peterson444 merged commit ccd71d5 into canonical:main Sep 17, 2024
@Chris-Peterson444 Chris-Peterson444 deleted the journal-parsing-unpack-error branch September 17, 2024 15:59
@mwhudson

Copy link
Copy Markdown
Collaborator

doh

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.

4 participants