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 2016/11/04 14:51:49 UTC

[Bug 60341] New: Handle null SdtPr in SdtBlock

https://bz.apache.org/bugzilla/show_bug.cgi?id=60341

            Bug ID: 60341
           Summary: Handle null SdtPr in SdtBlock
           Product: POI
           Version: 3.16-dev
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
          Assignee: dev@poi.apache.org
          Reporter: tallison@mitre.org
  Target Milestone: ---

On TIKA-2160, Seva Alekseyev shared a document that contains an SdtBlock that
does not have an SdtPr.  According to the ECMA standard [1] (pdf page 3842,
printed page number 3832), an SdtBlock does not need to have an SdtPr.  We
should handle the case of a non-existent SdtPr.


[1]
http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-376,%20Fourth%20Edition,%20Part%201%20-%20Fundamentals%20And%20Markup%20Language%20Reference.zip

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


[Bug 60341] Handle null SdtPr in SdtBlock

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

--- Comment #2 from Mark Murphy <jm...@apache.org> ---
(In reply to Tim Allison from comment #1)
> r1768048

I converted the unit test to junit 4 syntax, and marked test60341() @Ignore
until you add the test data Bug60341.docx to the project. I need tests to pass
so I can promote some changes.

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


[Bug 60341] Handle null SdtPr in SdtBlock

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

Tim Allison <ta...@mitre.org> changed:

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

--- Comment #1 from Tim Allison <ta...@mitre.org> ---
r1768048

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


[Bug 60341] Handle null SdtPr in SdtBlock

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

--- Comment #3 from Tim Allison <ta...@mitre.org> ---
The horror!  Sorry, forgot to add the test doc to svn.  Is 3kb worth the npe
check? Not sure...

r1768505

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