Issue 117523

Summary: extensions: OLE: broken SAFEARRAY VType
Product: General Reporter: jokusoftware
Component: codeAssignee: joachim.lingner
Status: CLOSED DUPLICATE QA Contact: issues@framework <issues>
Severity: Normal    
Priority: P3 CC: issues, oliver.brinzing
Version: OOo 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description jokusoftware 2011-03-23 16:50:28 UTC
After changeset 27974ced5167, a call to createUnoSequenceWrapper() in 
/extensions/source/ole/unoconvertsionsutilities.hxx, line 788, method:
template<class T> void UnoConversionUtilities<T>::anyToVariant(VARIANT* pVariant, const Any& rAny)
returns invalid data. 

The array element type is not returned properly anymore. The VT_ARRAY | VT_VARIANT is returned even if the SAFEARRAY contains completely different type.

This completely breaks OLE compatiblity for methods returning ARRAYs. It can be reproduced even on getAvailableServiceNames() method of XMultiServiceFactory of the com::sun::star::ServiceManager object instance.
Comment 1 Oliver Brinzing 2011-03-24 12:19:23 UTC
duplicate of http://openoffice.org/bugzilla/show_bug.cgi?id=117010 ?
Comment 2 Olaf Felka 2011-04-07 09:20:36 UTC
@ jl: Is this something for you?
Comment 3 joachim.lingner 2011-04-07 09:31:06 UTC
Yes, it is a duplicate of issue 117010
Comment 4 joachim.lingner 2011-04-07 09:31:46 UTC
.

*** This issue has been marked as a duplicate of issue 117010 ***
Comment 5 joachim.lingner 2011-04-07 09:32:24 UTC
.
Comment 6 Oliver-Rainer Wittmann 2012-06-13 12:23:06 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.