Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29534

ezxmltext -> richtext conversion : Possibility to fix problems in legacy db before conversion

    Details

    • Type: Bug Bug
    • Status: Documentation Review done
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 1.13.3, 2.2.2
    • Fix Version/s: 2.2.3, 1.13.5
    • Component/s: Upgrading
    • Labels:
      None

      Description

      When using the ezxmltext to richtext conversion tools on older databases, you might experience content objects which the conversion tool is not able to convert automatically. One reason for that is for instance lack of validation in ezxmltext, so it is possible to store ezxmltext which contains errors.

      As there is no GUI for editing archived versions, the conversion tool should be able to dump invalid ezxmltext to files. User may then edit those text files manually in an editor and then use a script to import them back to the db

      So, the conversion tool should have a new param:
      --export-dir .... Path to store ezxmltext which the conversion tool is not able to convert. filenames in given directory will have given pathname :

      ezxmltext_[contentobject_id]_[contentobject_attribute_id]_[version]_[language].xml

      A file with the validation errors will be written to

      ezxmltext_[contentobject_id]_[contentobject_attribute_id]_[version]_[language].txt

      A new tool should then be able to import such files

      bin/console ezxmltext:import-xml --export-dir corrections/ [--dry-run] [--test-content-object 123]

        Activity

        Show
        Vidar Langseid added a comment - PR : https://github.com/ezsystems/ezplatform-xmltext-fieldtype/pull/70
        Show
        Vidar Langseid added a comment - Doc PR : https://github.com/ezsystems/developer-documentation/pull/385
        Show
        Vidar Langseid added a comment - Merged to master in https://github.com/ezsystems/ezplatform-xmltext-fieldtype/commit/d9ba4030343a53984b417454d56dca84c2b4e8be

          People

          • Assignee:
            Unassigned
            Reporter:
            Vidar Langseid
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: