https://bugs.documentfoundation.org/show_bug.cgi?id=171280
Bug ID: 171280
Summary: Object Browser: Missing UNO services compared to
ServiceManager.AvailableServiceNames
Product: LibreOffice
Version: 26.2.0.0 alpha0+ master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
The Object Browser does not list all UNO services that are available through
the UNO Service Manager at runtime.
For example, services such as:
com.sun.star.comp.deployment.PackageManagerFactory
appear in the output of ServiceManager.AvailableServiceNames but are not
visible in the Object Browser.
This suggests that the Object Browser may be enumerating services from static
UNO type information rather than(or along) the runtime service registry.
Steps to Reproduce:
Run the following LibreOffice BASIC script:
==========================================================
Sub Main
Set oContext = GetDefaultContext()
Set oServiceManager=oContext.GetServiceManager()
' Get the list of all available services
Set oServices = oServiceManager.AvailableServiceNames
Set oDoc = StarDesktop.loadComponentFromURL(
"private:factory/swriter", "_blank", 0, Array() )
oText = oDoc.getText()
oCursor = oText.createTextCursor()
For i = LBound( oServices ) To UBound( oServices )
oText.insertString( oCursor, oServices(i), False )
oText.insertControlCharacter( oCursor,
com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, False )
Next
End Sub
==========================================================
Observe that the generated list begins with entries such as:
`com.sun.star.comp.deployment.PackageManagerFactory`
Actual Results:
Some services available via ServiceManager.AvailableServiceNames, particularly
those under:
com.sun.star.comp.*
do not appear in the Object Browser.
Expected Results:
Some services are only registered when specific document types (Writer, Calc,
Impress, etc.) are opened, which may affect enumeration results.
Comparing counts of:
1. services returned by AvailableServiceNames
2. services listed in Object Browser
3. UNO IDL services/interfaces
may help identify the discrepancy, which is if we had some statistics of number
of
services, interfaces, etc. loaded, it would be easier to compare.
Reproducible: Always
User Profile Reset: Yes
Additional Info:
Path: /Users/USER/*/LibreOfficeDev.app/Contents/MacOS/soffice
Identifier: org.libreoffice.script
Version: 26.8.0.0 (26.8.0.0.alpha0)
Code Type: ARM-64 (Native)
User ID: 501
Hardware Model: Mac16,1
OS Version: macOS 26.2 (25C56)
Release Type: User
--
You are receiving this mail because:
You are the assignee for the bug.