abiword saves document it can't open, inserts duplicate props attributes in xml

Bug #1248011 reported by jsnow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
abiword (Ubuntu)
New
Undecided
Unassigned

Bug Description

Here is an exerpt of the XML generated when saving a document as .abw:

  If the average node has OL outlinks, then we can expect our naive algorithm to be approximately O(OL</c><c props="" props="text-position:superscript">^</c><c props="text-position:superscript">6</c><c>).

This was text I copy-pasted into abiword. Apparently it decided (correctly in this case) that a carot was supposed to indicate a superscript, but it botched the xml generation, introducing duplicate contradictory "props" for one element.

Abiword will not open this document. Needless to say, I consider it a pretty serious issue when a word processor fails to open a file I had saved from that same program previously.

 xmllint generates the following output:

  provisional-patent.abw:79: parser error : Attribute props redefined
  orithm to be approximately O(OL</c><c props="" props="text-position:superscript"
                                                                               ^
  provisional-patent.abw:79: parser error : Attribute props redefined
  n is that we can turn that O(OL</c><c props="" props="text-position:superscript"
                                                                               ^
  provisional-patent.abw:79: parser error : Attribute props redefined
  erscript">6</c><c>) into O(2*OL</c><c props="" props="text-position:superscrip

I was able to restore the document to a state that could be opened by manually deleting the empty "props" attributes.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: abiword 2.9.2+svn20120213-1
ProcVersionSignature: Ubuntu 3.2.0-54.82-generic 3.2.50
Uname: Linux 3.2.0-54-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.5
Architecture: amd64
Date: Mon Nov 4 18:01:35 2013
EcryptfsInUse: Yes
InstallationMedia: Xubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.3)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: abiword
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
jsnow (jsnow) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.