Ticket #2266 (new defect)

Opened 9 years ago

Last modified 9 years ago

Error on ununderstood .doc file

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.7
Component: CPS (global) Version: 3.5.1
Severity: normal Keywords:


If one has a Word file such that the output of wv is empty, the following error occurs:

  Module Products.CPSSchemas.FileUtils, line 57, in _convertFileToMimeType
  Module Products.PortalTransforms.TransformEngine, line 116, in convertTo
  Module Products.PortalTransforms.chain, line 32, in convert
  Module Products.PortalTransforms.zope.Transform, line 169, in convert
  Module Products.PortalTransforms.transforms.word_to_html, line 38, in convert
  Module Products.PortalTransforms.transforms.office_wvware, line 56, in html
  Module Products.PortalTransforms.libtransforms.utils, line 271, in lxmlScrubHTML
  Module lxml.etree, line 2698, in lxml.etree.parse (src/lxml/lxml.etree.c:49590)
  Module lxml.etree, line 1508, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:71381)
  Module lxml.etree, line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653)
  Module lxml.etree, line 1415, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70514)
  Module lxml.etree, line 938, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:67438)
  Module lxml.etree, line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820)
  Module lxml.etree, line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741)
  Module lxml.etree, line 576, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64256)
XMLSyntaxError: None

Remarks :

  • it should be easy to reproduce this without the file itself in unit tests ;
  • lxml now always comes with CPS.

Change History

comment:1 Changed 9 years ago by gracinet

  • Milestone changed from CPS 3.5.2 to CPS 3.5.3

Current state of #2227 is not to scrub within the transform (CPS does it later, while presenting the preview). This may change, though.

Note: See TracTickets for help on using tickets.