LibreOffice doesn't detect JVM because of unexpected java.vendor property value
Bug #1822839 reported by
Olivier Tilloy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LibreOffice |
Fix Released
|
Medium
|
|||
libreoffice (Debian) |
Won't Fix
|
Unknown
|
|||
libreoffice (Ubuntu) |
Fix Released
|
Medium
|
Olivier Tilloy | ||
Xenial |
Fix Released
|
High
|
Marcus Tomlinson | ||
Bionic |
Fix Released
|
High
|
Marcus Tomlinson | ||
Disco |
Fix Released
|
High
|
Marcus Tomlinson | ||
libreoffice-l10n (Ubuntu) |
Fix Released
|
Medium
|
Olivier Tilloy | ||
Bionic |
Fix Released
|
High
|
Marcus Tomlinson | ||
Disco |
Fix Released
|
High
|
Marcus Tomlinson |
Bug Description
[Impact]
* A recent OpenJDK update changes the value of the "java.vendor" property from "Oracle Corporation" to "Private Build". This breaks the code in LibreOffice that detects an installed JVM.
* The fix is currently in LibreOffice 6.2.3 on eoan.
[Test Case]
1. Launch the LibreOffice Start Center
2. Open Tools > Options
3. Navigate to LibreOffice > Advanced
4. A JRE should be listed with Location: /usr/lib/jvm/...
[Regression Potential]
* This fix is small and concentrated so potential for regression should be relatively low.
* A combination of autopkgtests and manual testing as described above should provide reasonable confidence that no regressions sneaked in.
Changed in df-libreoffice: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in libreoffice (Debian): | |
status: | Unknown → New |
Changed in df-libreoffice: | |
status: | New → Confirmed |
Changed in libreoffice (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in libreoffice (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in df-libreoffice: | |
status: | Confirmed → Fix Released |
no longer affects: | openjdk-lts (Ubuntu Xenial) |
no longer affects: | openjdk-lts (Ubuntu Bionic) |
Changed in libreoffice (Ubuntu Xenial): | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
Changed in libreoffice (Ubuntu Bionic): | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
status: | New → Triaged |
Changed in libreoffice (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in libreoffice (Ubuntu Disco): | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
description: | updated |
description: | updated |
Changed in libreoffice (Ubuntu Disco): | |
status: | Incomplete → In Progress |
Changed in libreoffice (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in libreoffice (Ubuntu Disco): | |
importance: | Undecided → High |
Changed in libreoffice (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in libreoffice (Ubuntu Bionic): | |
status: | Triaged → In Progress |
Changed in libreoffice (Ubuntu Xenial): | |
status: | Triaged → In Progress |
description: | updated |
Changed in libreoffice-l10n (Ubuntu Disco): | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
importance: | Undecided → High |
Changed in libreoffice-l10n (Ubuntu): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in libreoffice (Debian): | |
status: | New → Won't Fix |
Changed in libreoffice-l10n (Ubuntu Bionic): | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
importance: | Undecided → High |
no longer affects: | openjdk-lts (Ubuntu Disco) |
no longer affects: | openjdk-lts (Ubuntu) |
tags: | removed: verification-needed |
To post a comment you must log in.
Originally reported in Ubuntu: https:/ /launchpad. net/bugs/ 1822839.
A recent OpenJDK update in Ubuntu 19.04 (to be released later this month) changes the value of the "java.vendor" property, from the well-known name "Oracle Corporation" to "Private Build".
This breaks the code in LibreOffice that detects an installed JVM, because the vendor name is validated against a hardcoded list: https:/ /cgit.freedeskt op.org/ libreoffice/ core/tree/ jvmfwk/ plugins/ sunmajor/ pluginlib/ vendorlist. cxx?h=libreoffi ce-6-2# n33.
This change can probably be reverted in Ubuntu, but I'm wondering what the purpose of that hardcoded list of vendors is? Isn't it a valid use case for distributions to change the vendor name?