Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-5142

Task import fails because of comma in a filename

XMLWordPrintable

      Problem

      Task import fails when visual/office conversion is involved because of comma in a filename, e.g. when Support-, Wartungs- und Hostingvertrag_benutzerbasiert_final-Powys.zip import archive contains

      workfiles/Support-, Wartungs- und Hostingvertrag_benutzerbasiert_final-Powys.docx

      It is supplied in t5visual-conversion.json as 2 files:

      "Support-" and " Wartungs- und Hostingvertrag_benutzerbasiert_final-Powys.docx":

      t5visual-conversion.json
      {"files":[{"file":"Support-","type":"","pdf":"","error":""},{"file":" Wartungs- und Hostingvertrag_benutzerbasiert_final-Powys.docx","type":"docx","pdf":"","error":""}],"timestamp":1764237442,"step":"office-to-pdfs"} 

      PDFs have the same Problem.

      Solution

      In our Model (LEK_visualreview_files.source) the files are stored comma-separated in the database. Evaluate two solutions:

      a) moving to a JSON-column
      b) using special char (e.g. slash) instead comma as separator

            volodymyr@mittagqi.com Volodymyr Kyianenko
            volodymyr@mittagqi.com Volodymyr Kyianenko
            Axel Becher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: