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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • 2.2.3, 1.13.5
    • 1.13.3, 2.2.2
    • Upgrading
    • 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]

      Attachments

        Activity

          People

            Unassigned Unassigned
            vidar.langseid@ibexa.co Vidar Langseid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: