[Libreoffice-bugs] [Bug 132110] Wizard service broken

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 15 09:42:20 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=132110

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sbergman at redhat.com

--- Comment #7 from Julien Nabet <serval2412 at yahoo.fr> ---
Stephan: taking a look at this error:
Python exception: <class 'RuntimeError'>: Type [] string is unknown, traceback
follows
  File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xe6.tmp_/OAuth2OOo.oxt/pythonpath/unolib/unolib.py",
line 46, in getPropertySetInfo
    properties = self._getPropertySetInfo()
  File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xeb.tmp_/smtpMailerOOo.oxt/pythonpath/smtpmailer/wizardhandler.py",
line 383, in _getPropertySetInfo
    properties['DataSources'] = getProperty('DataSources', '[] string',
transient)
  File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xe6.tmp_/OAuth2OOo.oxt/pythonpath/unolib/unotools.py",
line 53, in getProperty
    property.Type = uno.getTypeByName(type)
  File "/home/julien/lo/libreoffice/instdir/program/uno.py", line 73, in
getTypeByName
    return pyuno.getTypeByName(typeName)

I thought we could use this patch:
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 92a7e6ca5120..b9f008365bcf 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -1906,6 +1906,7 @@ extern "C" void SAL_CALL
typelib_typedescription_getByName(
         if (2 < name.getLength() && '[' == name[ 0 ])
         {
             OUString element_name( name.copy( 2 ) );
+            element_name = element_name.trim();
             typelib_TypeDescription * element_td = nullptr;
             typelib_typedescription_getByName( &element_td, element_name.pData
);
             if (nullptr != element_td)

What do you think?

Is it ok or should the extension use "[]string" instead of "[] string"
in this block
    378     def _getPropertySetInfo(self):
    379         properties = {}
    380         readonly =
uno.getConstantByName('com.sun.star.beans.PropertyAttribute.READONLY')
    381         transient =
uno.getConstantByName('com.sun.star.beans.PropertyAttribute.TRANSIENT')
    382         properties['Connection'] = getProperty('Connection',
'com.sun.star.sdbc.XConnection', transient)
    383         properties['DataSources'] = getProperty('DataSources', '[]
string', transient)
    384         properties['TableNames'] = getProperty('TableNames', '[]
string', transient)
    385         properties['ColumnNames'] = getProperty('ColumnNames', '[]
string', transient)
    386         return properties
?

prrvchr: even after workarounding this pb, I got a new Python error, see
console logs:
wizardpage.__init__() 1
warn:stoc:17328:17328:stoc/source/inspect/introspection.cxx:1612: object of
type "com.sun.star.uno.XReference" lacks XTypeProvider
warn:stoc:17328:17328:stoc/source/inspect/introspection.cxx:1612: object of
type "com.sun.star.uno.XReference" lacks XTypeProvider
Traceback (most recent call last):
  File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xeb.tmp_/smtpMailerOOo.oxt/pythonpath/smtpmailer/wizardpage.py",
line 66, in __init__
    self._refreshPage2()
  File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xeb.tmp_/smtpMailerOOo.oxt/pythonpath/smtpmailer/wizardpage.py",
line 191, in _refreshPage2
    self._handler.refreshTables(self.Window.getControl('ListBox1'))
  File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xeb.tmp_/smtpMailerOOo.oxt/pythonpath/smtpmailer/wizardhandler.py",
line 259, in refreshTables
    table = self._query.UpdateTableName
AttributeError: 'NoneType' object has no attribute 'UpdateTableName'

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200415/cf2b9428/attachment.htm>


More information about the Libreoffice-bugs mailing list