Issue 22342 - No scripts are shown in Tools/Configure dialog if Java is disabled
Summary: No scripts are shown in Tools/Configure dialog if Java is disabled
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: current
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: noel.power
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-11 11:54 UTC by tomaisoc
Modified: 2005-01-06 15:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tomaisoc 2003-11-11 11:54:32 UTC
Disable Java in the Security section of the Tools/Options dialog.
Open the Tools/Configure dialog.
Expand the OpenOffice.org Scripts node in the Category section.
A dialog pops up asking you if you want to enable Java, click Cancel.

Basic scripts should be shown, however there are no subnodes under the share
node. If you re-enable Java in the Security section you still don't see the
OpenOffice.org Scripts tree getting updated properly in Tools/Configure.
Comment 1 noel.power 2003-12-09 07:54:45 UTC
getAllProviders method in ProviderCache.cxx is too strict, it throws whenever it
detects a Provider it cannot instantiate. Thus, when java is disabled any
attempt to create a Provider for any of the supported java languages results in
the no Providers getting returned to the client. The knock on effect is that no
nodes are available for browsing.
Comment 2 noel.power 2003-12-12 10:35:56 UTC
Changed implementation of getAllProviders in ProviderCache.cxx to be more
forgiving, a single failure will not terminate attempt to instantiate any
Providers discovered.

To verify, go to Tools/Options/Security and disable java. Then go to
Tools/Configure and expand script nodes. Only basic should appear.
Comment 3 joerg.skottke 2003-12-18 09:38:54 UTC
Warning appears, tree is empty. good. 
Verified
Comment 4 noel.power 2005-01-06 15:47:07 UTC
closed