To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=29152





------- Additional comments from [EMAIL PROTECTED] Wed Apr  2 12:44:08 +0000 
2008 -------
As MBA has already mentioned, only the InteractionHandler from MediaDescriptor
should be used during document opening. If there is no InteractionHandler, no
interaction is allowed, in this case the authentication has no other choice than
to fail and throw an exception.

The scenario when MediaDescriptor has an InteractionHandler is more complex.
If an InteractionHandler is provided to UCB, it will be used not only for query
and authentication interactions, but also for error handling. Although most of
UCB errors ( "no file", "can not open readwrite" and etc. ) are no errors in
context of document loading, so they must not be shown.

The only solution, that I see in this case, is to use a wrapper over
InteractionHandler from MediaDescriptor, that handles only a subset of
interactions, and to provide this wrapper to UCB in all the cases when UCB is
used to load a document.
But that would require checking of the UCB implementation, since the
implementation has to check whether at least one continuation has been selected,
otherwise the related exception must be thrown by UCB. I am not sure that UCB
does it already.

By the way, does it really makes sense not to remember the password at least for
runtime. The problem is that in this case there might be a huge amount of
authentication dialogs, that makes the scenario quite unuseful. Is it really a
case that has to be handled?


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to