Hi Mathias,

> I currently have no idea why you don't get the error message from Java.
> OTOH I think that the error message in an API call is a bug, so the
> behavior in Java is correct, why ever. A message box shouldn't be shown
> if no InteractionHandler set set.

thats right, but OTOH a unresolved URL should not cause OOo to freeze...

http://qa.openoffice.org/issues/show_bug.cgi?id=57049

> Of course it still is an API bug that no suitable exception is thrown,
> but as I already wrote it can't be fixed in the method
> insertDocumentFromURL, it can be fixed only by providing a new method
> (and so a new interface).

The idl-ref says:

void insertDocumentFromURL(     [in] string      aURL,
        [in] sequence< ::com::sun::star::beans::PropertyValue >          
aOptions )
raises(         ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::io::IOException );

I think that's all I need!? The problem is that the IOException is never thrown.

>
> > I also tried to provide a different InteractionHandler in the
> > MediaDescriptor props, but (that's the reason why I wrote the Bug
> > 1-example) it seems that insertDocumentFromURL throws an
> > IllegalArgumentException everytime the MediaDescriptor is not empty.
>
> This also sounds like a bug to me.

http://qa.openoffice.org/issues/show_bug.cgi?id=57047

best regards,
Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to