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

Forward Port of #36773 to saas-12.3 #36784

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Sep 12, 2019

[FIX] snailmail: do not decode null objects

Prior to this commit, we would try to decode the logo of a company
without any verification on its presence. If the logo was not set, we'd
try to decode nothing which caused a crash.

This commit ensure that we asert that the field is set before trying to
encode it for a JSON payload.

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #36773

Prior to this commit, we would try to decode the logo of a company
without any verification on its presence. If the logo was not set, we'd
try to decode nothing which caused a crash.

This commit ensure that we asert that the field is set before trying to
encode it for a JSON payload.

X-original-commit: f40f763
@robodoo
Copy link
Contributor

robodoo commented Sep 12, 2019

This PR targets saas-12.3 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@C3POdoo C3POdoo added the RD research & development, internal work label Sep 12, 2019
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Sep 12, 2019
@robodoo
Copy link
Contributor

robodoo commented Sep 13, 2019

This forward port PR is awaiting action

@nim-odoo
Copy link
Contributor

@fw-bot r+

robodoo pushed a commit that referenced this pull request Sep 13, 2019
Prior to this commit, we would try to decode the logo of a company
without any verification on its presence. If the logo was not set, we'd
try to decode nothing which caused a crash.

This commit ensure that we asert that the field is set before trying to
encode it for a JSON payload.

closes #36784

X-original-commit: f40f763
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
robodoo pushed a commit that referenced this pull request Sep 13, 2019
Prior to this commit, we would try to decode the logo of a company
without any verification on its presence. If the logo was not set, we'd
try to decode nothing which caused a crash.

This commit ensure that we asert that the field is set before trying to
encode it for a JSON payload.

closes #36784

X-original-commit: f40f763
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
@robodoo
Copy link
Contributor

robodoo commented Sep 13, 2019

Merged at 3f401e3, thanks!

@robodoo robodoo closed this Sep 13, 2019
@fw-bot fw-bot deleted the saas-12.3-12.0-fix-snailmail-logo-rar-ZG5TL6FQ-forwardport branch October 18, 2019 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants