Problem/Motivation

There are security problems when using serialized arrays in PHP code.
JSON data storage is a requirement of Drupal 10 (https://www.drupal.org/node/3192484), and the D9 version will use it soon.

Proposed resolution

Convert to JSON data storage.

Remaining tasks

  • Convert to JSON data storage.
  • Update custom update scripts.
  • Add an update script to update existing configuration.
  • Test coverage for the config update script.
  • Add an update script to update stored entity data.
  • Test coverage for the entity update script.
  • Dig into the test failure from #22, which suggests an API breakage somewhere.

User interface changes

None.

API changes

TBD

Data model changes

TBD

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

damienmckenna’s picture

damienmckenna’s picture

Issue summary: View changes
damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new4.84 KB

WIP patch. MetatagCoreNodeTest passes locally, hopefully everything else will too.

damienmckenna’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev
damienmckenna’s picture

Issue summary: View changes
StatusFileSize
new434 bytes
new5.15 KB

metatag_metatags_save() wasn't updated.

Might need some more test coverage for this..

damienmckenna’s picture

Test coverage for metatag_metatags_save() will be done in #3323254: Add test coverage for metatag_metatags_save().

damienmckenna’s picture

Assigned: Unassigned » damienmckenna
Issue summary: View changes

Next off: update scripts.

damienmckenna’s picture

StatusFileSize
new9.53 KB
new14.41 KB

Test coverage.

Status: Needs review » Needs work

The last submitted patch, 10: metatag-n3273408-10.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new396 bytes
new14.37 KB

Copy pasta.

Status: Needs review » Needs work

The last submitted patch, 12: metatag-n3273408-12.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new654 bytes
new14.37 KB

More copy pasta.

damienmckenna’s picture

Issue summary: View changes
Status: Needs review » Needs work

Next off: review the defaults configuration system, make sure it works, write an update script if needed.

damienmckenna’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new3.1 KB
new16.35 KB

This should cover the config changes.

Status: Needs review » Needs work

The last submitted patch, 16: metatag-n3273408-16.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new1.6 KB
new17.84 KB

This resolves the i18n issues locally.

damienmckenna’s picture

Issue summary: View changes

Last step - test coverage for the config update script.

damienmckenna’s picture

Status: Needs review » Needs work
damienmckenna’s picture

Issue tags: +Needs change record

We also need a change record because of the API change over the configuration object.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new7.17 KB
new21.51 KB

Test coverage for the config update, and some fixes to it.

Status: Needs review » Needs work

The last submitted patch, 22: metatag-n3273408-22.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new616 bytes
new22.24 KB

Hopefully this will fix the test failures.

Though I don't honestly understand why #22 failed.

damienmckenna’s picture

Issue summary: View changes
Status: Needs review » Needs work

The only thing left is to dig into the test failure in #22, which suggests an API breakage somewhere. And the change record.

damienmckenna’s picture

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new1.05 KB
new21.63 KB

Rolling back the change in the Xss test file, just to see if it'll work this time?

Status: Needs review » Needs work

The last submitted patch, 27: metatag-n3273408-27.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

damienmckenna’s picture

StatusFileSize
new1.89 KB
new21.84 KB

This should fix the test failures.

damienmckenna’s picture

Status: Needs work » Needs review
damienmckenna’s picture

Issue summary: View changes

I think that's it!

  • DamienMcKenna committed cf9f0faa on 7.x-2.x
    Issue #3273408 by DamienMcKenna: Convert to JSON data storage.
    
damienmckenna’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Fixed
Issue tags: -Needs change record

Committed to the new 7.x-2.x branch!

damienmckenna’s picture

Assigned: damienmckenna » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.