You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2011/01/19 12:26:31 UTC

DO NOT REPLY [Bug 50616] New: WordDocument.writeAllText returns incomplete result without throwing exception

https://issues.apache.org/bugzilla/show_bug.cgi?id=50616

           Summary: WordDocument.writeAllText returns incomplete result
                    without throwing exception
           Product: POI
           Version: 3.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HDF
        AssignedTo: dev@poi.apache.org
        ReportedBy: pdrozda@gmail.com


Created an attachment (id=26514)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26514)
MS Word document on which the effect can be reproduced.

When MS Word document (please see the attachment) containing greek characters
is passed to org.apache.poi.hdf.extractor.WordDocument. Method writeAllText
returns incorrect-incomplete result. No exception is thrown to indicate the
problem.

Steps to reproduce:

1. Use the MS Word document from attachment.
2. Create the input stream of the document and then use this snippet:

            WordDocument wd = new WordDocument(inputStream);
            StringWriter docTextWriter = new StringWriter();
            PrintWriter pw = new PrintWriter(docTextWriter);
            wd.writeAllText(pw);
            result = docTextWriter.toString();

3. Expected result is string containing "Process description document τεστ new"
4. Actual result is "Process description"
5. No sign of internal error indicated, no exception is thrown.

I would expect at least exception thrown as an indicator that something went
wrong.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 50616] WordDocument.writeAllText returns incomplete result without throwing exception

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50616

Nick Burch <ni...@alfresco.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Nick Burch <ni...@alfresco.com> 2011-01-19 06:43:10 EST ---
HDF is no longer supported, and only remains for existing legacy users. Please
try with HWPF

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org