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 2010/06/16 14:56:04 UTC

DO NOT REPLY [Bug 49446] New: [patch] please don't insert field codes in the XWPFWordExtractor output

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

           Summary: [patch] please don't insert field codes in the
                    XWPFWordExtractor output
           Product: POI
           Version: 3.6-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: antoni.mylka@aduna-software.com


Created an attachment (id=25597)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25597)
a patch

The OpenXML specification defines in sec. 17.16.23 a w:instrText tag. It
contains field codes which are usually uninteresting for consumers of the
fulltext. In the XMLBeans model they show up as instances of CText.

I suggest that the XWPFParagraph.readNewText method should take this into
account.

A patch is attached.

-- 
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 49446] [patch] please don't insert field codes in the XWPFWordExtractor output

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

--- Comment #1 from Antoni Mylka <an...@aduna-software.com> 2010-06-16 08:57:09 EDT ---
Created an attachment (id=25598)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25598)
A test case, to be placed in test-data/document

added a sample docx file with AUTHOR and CREATEDATE fields

-- 
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 49446] [patch] please don't insert field codes in the XWPFWordExtractor output

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

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

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

--- Comment #3 from Nick Burch <ni...@alfresco.com> 2010-06-29 09:39:21 EDT ---
Thanks for the patch, applied in r958965.

-- 
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 49446] [patch] please don't insert field codes in the XWPFWordExtractor output

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

Antoni Mylka <an...@aduna-software.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25597|application/octet-stream    |text/plain
          mime type|                            |
  Attachment #25597|0                           |1
           is patch|                            |

--- Comment #2 from Antoni Mylka <an...@aduna-software.com> 2010-06-24 04:57:34 EDT ---
(From update of attachment 25597)
Enabled the "patch" checkbox on the poi-fieldcodes.patch attachment.

-- 
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