Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interfaces/builtin: don't panic if content plug has nil attrs #3204

Merged
merged 1 commit into from Apr 19, 2017

Conversation

zyga
Copy link
Collaborator

@zyga zyga commented Apr 19, 2017

This patch fixes a bug that was reported on the forum
https://forum.snapcraft.io/t/snapd-service-doesnt-start/319

A plug that has nil attr map will fail to sanitize and will cause a
panic instead. This patch fixes the issue so that the plug can correctly
sanitize and return an error.

Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com

This patch fixes a bug that was reported on the forum
https://forum.snapcraft.io/t/snapd-service-doesnt-start/319

A plug that has nil attr map will fail to sanitize and will cause a
panic instead. This patch fixes the issue so that the plug can correctly
sanitize and return an error.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Copy link
Contributor

@stolowski stolowski left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Nice catch!

@mvo5 mvo5 merged commit 0dcd203 into snapcore:master Apr 19, 2017
@zyga zyga deleted the fix/content-plug-nil-attr-map branch April 19, 2017 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants