This is an automated email from the ASF dual-hosted git repository. leginee pushed a commit to branch backport/pdfimport-pdfbox in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 724a2b0c612e44d96bd7ec3aa0b5b94d1d33dc62 Author: Peter <[email protected]> AuthorDate: Sun Nov 22 21:25:51 2026 +0100 installer: unpack file:// extensions into share/extensions Extensions listed with a file:// URL in extensions.lst were unpacked into share/prereg/bundled. Setup's "unopkg sync" registers them there and the first start copies that registration into the user profile, but the office's "bundled" repository lists only what is in $BUNDLED_EXTENSIONS, i.e. share/extensions. The result was half an extension: its services and configuration were registered, so its filters appeared, but the extension itself was unknown. It did not show up in the Extension Manager, and XPackageInformationProvider::getPackageLocation() returned nothing for it. PDF import is hit by this directly: it finds its helper inside the extension through getPackageLocation(), so with no location it reports that no import backend is available and every PDF fails with a general input/output error. Unpack them into share/extensions/<name> instead, where the bundled repository picks them up on first start. PDF import is the only file:// entry in extensions.lst. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- main/solenv/bin/modules/installer/scriptitems.pm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/main/solenv/bin/modules/installer/scriptitems.pm b/main/solenv/bin/modules/installer/scriptitems.pm index 9d931573b9..19577f3b3f 100644 --- a/main/solenv/bin/modules/installer/scriptitems.pm +++ b/main/solenv/bin/modules/installer/scriptitems.pm @@ -568,7 +568,17 @@ sub add_bundled_extension_blobs If that variable is not defined then the content of main/extensions.lst defines the default set. - Preregistered extensions are placed in subdirectories of gid_Brand_Dir_Share_Prereg_Bundled. + The extensions are unpacked into subdirectories of gid_Brand_Dir_Share_Extensions, + i.e. $BUNDLED_EXTENSIONS, which is the folder the office's "bundled" repository + reads. On first start the office finds them there and registers them for the user. + + They used to go into gid_Brand_Dir_Share_Prereg_Bundled instead. Setup's + "unopkg sync" does register an extension found there, and first start copies that + registration into the user profile, but the "bundled" repository lists only what is + in $BUNDLED_EXTENSIONS. An extension installed that way therefore had its services + and configuration registered while the extension itself was unknown: it did not show + up in the Extension Manager, and XPackageInformationProvider::getPackageLocation() + returned nothing for it. =cut sub add_bundled_prereg_extensions @@ -607,8 +617,8 @@ sub add_bundled_prereg_extensions $installer::logger::Info->printf(" %s\n", $filename); } - # Find the prereg directory entry so that we can create a new sub-directory. - my $parentdir_gid = "gid_Brand_Dir_Share_Prereg_Bundled"; + # Find the bundled extensions directory entry so that we can create a new sub-directory. + my $parentdir_gid = "gid_Brand_Dir_Share_Extensions"; my $parentdir = undef; foreach my $dir (@{$dirsref}) {
