Issue 69366 - supportsService on Textportion type "Frame" crashes OOo
Summary: supportsService on Textportion type "Frame" crashes OOo
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: chne
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 16:43 UTC by mux2005
Modified: 2013-02-24 21:09 UTC (History)
5 users (show)

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


Attachments
Run the included macro and OOo crashes (9.33 KB, application/vnd.oasis.opendocument.text)
2006-09-07 16:43 UTC, mux2005
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mux2005 2006-09-07 16:43:02 UTC
The attached document contains a horizontal line that is anchored as character,
so it appears as TextPortion in the XEnumeration for the paragraph. It has
TextPortionType "Frame". If you attempt to call supportsService on this
TextPortion, the whole OOo crashes. 

The included macro demonstrates this. Just let it run and your OOo will crash
hard. Tested on Linux and Windows with OOo Basic and Java. 

The macro tries to test for a nonsense-service "foo", but the crash is NOT
related to this. It also occurs when testing for legitimate services. Xray also
crashes when trying to list Services for this object as does a program we use
internally so it seems that the getAvailableServiceNames() method is broken, too.

This crash is not an exotic fringe case. We found this during our migration
project. It affects several dozens of our documents and we'll have to rewrite
our production code to work around this.
Comment 1 mux2005 2006-09-07 16:43:49 UTC
Created attachment 39030 [details]
Run the included macro and OOo crashes
Comment 2 jsc 2006-09-08 08:06:46 UTC
jsc -> tl: i can reproduce this issue, please take care of it
Comment 3 jsc 2006-09-08 08:07:12 UTC
cc jsc
Comment 4 thomas.lange 2006-09-13 14:02:40 UTC
.
Comment 5 thomas.lange 2006-09-13 14:03:24 UTC
Fixed in CWS tl25.

SwXTextPortion does not check anymore for support of css.text.TextFrame,
css.text.TextGraphicObject and css.text.TextEmbeddedObject now.
This is because of a previous change in handling of those objects.

Files changed:
- sw/source/core/unocore/unoport.cxx
Comment 6 thomas.lange 2006-11-27 12:24:03 UTC
.
Comment 7 chne 2007-01-22 15:01:05 UTC
ok in tl25
Comment 8 chne 2007-02-02 13:30:47 UTC
ok in src680_m202
Comment 9 mux2005 2007-03-16 11:30:56 UTC
Could someone please set a target milestone for this one.