<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Wizard service broken"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132110#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Wizard service broken"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132110">bug 132110</a>
              from <span class="vcard"><a class="email" href="mailto:sbergman@redhat.com" title="Stephan Bergmann <sbergman@redhat.com>"> <span class="fn">Stephan Bergmann</span></a>
</span></b>
        <pre>(In reply to Julien Nabet from <a href="show_bug.cgi?id=132110#c7">comment #7</a>)
<span class="quote">> 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?</span >

No, such errors should always be fixed on the calling side.  There is a precise
grammar for names of UNO type system entities (see
<<a href="http://www.openoffice.org/udk/common/man/typesystem.html">http://www.openoffice.org/udk/common/man/typesystem.html</a>>), and we shouldn't
second-guess what calling code actually meant.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>