[Bug 61981] New: DataFormatter.formatCellValue(cell) throws IllegalArgumentException when the format is ""ddd,mmm dd OR ""dddd, mmmm dd, yyyy

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 61981] New: DataFormatter.formatCellValue(cell) throws IllegalArgumentException when the format is ""ddd,mmm dd OR ""dddd, mmmm dd, yyyy

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61981

            Bug ID: 61981
           Summary: DataFormatter.formatCellValue(cell) throws
                    IllegalArgumentException when the format is ""ddd,mmm
                    dd OR ""dddd, mmmm dd, yyyy
           Product: POI
           Version: 3.17-FINAL
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

Created attachment 35663
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35663&action=edit
Sample test file with one sheet, and two cells.

https://issues.apache.org/jira/browse/TIKA-2196

This seems to be happening when a cell is set to custom format with double
quotes, for example:

""ddd,mmm dd
or
""dddd, mmmm dd, yyyy

As per,
https://bz.apache.org/bugzilla/show_bug.cgi?id=54786

the double double quotes are replaced by a single single quote.

However in this case, there is no closing single quote.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]