Issue 114111 - [SRB] ODF spreadsheet report: invalid style:column-width
Summary: [SRB] ODF spreadsheet report: invalid style:column-width
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: ReportBuilder (show other issues)
Version: DEV300m86
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 3.3
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks: 111112
  Show dependency tree
 
Reported: 2010-08-25 17:51 UTC by mst.ooo
Modified: 2017-05-20 10:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
fix this problem (1.24 KB, patch)
2010-08-25 20:56 UTC, mst.ooo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description mst.ooo 2010-08-25 17:51:26 UTC
now i've generated a spreadsheet document (from the same file attached to issue
112652), and it has the boolean-value problem, the styles.xml root element
problem, and this new one:

upload:///Table1_fixed.ods/content.xml[2,2066]:Error:attribute
"style:column-width" has a bad value: the value does not match the regular
expression
"([0-9]*[1-9][0-9]*(\.[0-9]*)?|0+\.[0-9]*[1-9][0-9]*|\.[0-9]*[1-9][0-9]*)((cm)|(mm)|(in)|(pt)|(pc)|(px))".

<style:table-column-properties style:column-width="3.0E-4cm"/>
Comment 1 mst.ooo 2010-08-25 20:56:14 UTC
Created attachment 71400 [details]
fix this problem
Comment 2 mst.ooo 2010-08-25 21:00:49 UTC
this problem is caused by using Double.toString() (implicitly via String
concatenation), which apparently (if the number is sufficiently small/large)
writes an exponent.
using String.format("%f") does not seem to write an exponent.

so this problem probably occurs in other places where lengths are written.
this attribute has the type "positiveLength" in the schema.
the XMLSchema-2 "double" type, OTOH, apparently may have an exponent.

so it would be a good idea to review the code where other lengths could be
written in an invalid way.
Comment 3 mst.ooo 2010-08-27 11:58:03 UTC
target 3.3 (as discussed)
Comment 4 ocke.janssen 2010-08-30 08:27:23 UTC
Fixed in cws dba33h
Comment 5 ocke.janssen 2010-09-01 08:18:40 UTC
Please verify. Thanks.

- Execute the report as described in issue 112652
- Use the resulting odt and upload it on
http://tools.services.openoffice.org/odfvalidator/
- Run test

=> upload:///Table1_fixed.ods/content.xml[2,2066]:Error:attribute
"style:column-width" has a bad value: the value does not match the regular
expression
"([0-9]*[1-9][0-9]*(\.[0-9]*)?|0+\.[0-9]*[1-9][0-9]*|\.[0-9]*[1-9][0-9]*)((cm)|(mm)|(in)|(pt)|(pc)|(px))".


should be fixed
Comment 6 marc.neumann 2010-09-03 07:04:36 UTC
verified in CWS dba33h

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba33h