Skip to content

Fix record encryptor hash values JSON parsing for legacy unencrypted hash values#7494

Merged
mrcasals merged 2 commits intodecidim:developfrom
mainio:fix/7487-json-parsing
Mar 2, 2021
Merged

Fix record encryptor hash values JSON parsing for legacy unencrypted hash values#7494
mrcasals merged 2 commits intodecidim:developfrom
mainio:fix/7487-json-parsing

Conversation

@ahukkanen
Copy link
Copy Markdown
Contributor

@ahukkanen ahukkanen commented Mar 2, 2021

🎩 What? Why?

When the database contains unecrypted hash values for columns that are set for decryption, the JSON parsing can fail in case the hash contains values that cannot be JSON decoded (e.g. ruby strings).

See more specific description of the problem from this issue comment:
#7487 (comment)

📌 Related Issues

Testing

Likely you would be able to test this following the testing instrucitons at: #7488

📋 Checklist

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

@mrcasals mrcasals added module: core type: fix PRs that implement a fix for a bug labels Mar 2, 2021
@mrcasals
Copy link
Copy Markdown
Contributor

mrcasals commented Mar 2, 2021

Yay, thank you so much @ahukkanen!

@mrcasals mrcasals merged commit e024ca6 into decidim:develop Mar 2, 2021
@ahukkanen ahukkanen deleted the fix/7487-json-parsing branch March 2, 2021 10:55
mrcasals pushed a commit that referenced this pull request Mar 2, 2021
entantoencuanto added a commit that referenced this pull request Mar 2, 2021
* develop: (25 commits)
  Add css selectors to emails to improve design customization (#7493)
  Only share tokens if component exists (#7499)
  Fix record encryptor hash values JSON parsing for legacy unencrypted hash values (#7494)
  Fix NULL error with weight field in assemblies & processes (#7486)
  Fix proposals to budget import (#7449)
  Fix cost display on proposals (#7450)
  Fix #7487 - Invalid signature on message decryption (#7488)
  New Crowdin updates (#7482)
  Move specs file to correct folder (#7476)
  Improve changelog generator (#7475)
  New Crowdin updates (#7472)
  Prepare 0.25-dev version (#7473)
  New Crowdin updates (#7470)
  New Crowdin updates (#7468)
  Feature proposal infinite edit time (#7406)
  New Crowdin updates (#7457)
  Trigger docs build on folder changes (#7360)
  Add changelog generator based on PR data (#7461)
  Add Votings to Open Data export (#7388)
  Add order in not highlighted assemblies by weight (#7444)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: core type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't migrate the DB after #6947

2 participants