Bug 123138 - problem with preconfigured "javasettings_Windows_X86_64.xml" and vendorUpdate attribute
Summary: problem with preconfigured "javasettings_Windows_X86_64.xml" and vendorUpdate...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.1.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected
Depends on:
Blocks:
 
Reported: 2019-02-03 09:32 UTC by Oliver Brinzing
Modified: 2022-05-08 12:35 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
message during first start after deleting user profile (11.40 KB, image/png)
2019-02-03 09:32 UTC, Oliver Brinzing
Details
broadcastcomp.uno.zip - example java extension (12.44 KB, application/x-zip-compressed)
2019-02-03 09:33 UTC, Oliver Brinzing
Details
javasettings_Windows_X86_64.xml (886 bytes, text/xml)
2019-02-03 09:36 UTC, Oliver Brinzing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Brinzing 2019-02-03 09:32:32 UTC
Created attachment 148867 [details]
message during first start after deleting user profile

we have preconfigured java runtime for all users with a "javasettings_Windows_X86_64.xml" in "C:\Program Files\LibreOffice\share\config". at first start (e.g. after deleting a user profile) lo creates a new user profile including an empty "user" "javasettings_Windows_X86_64.xml":

<?xml version="1.0" encoding="UTF-8"?>
<!--This is a generated file. Do not alter this file!-->
<java xmlns="http://openoffice.org/2004/java/framework/1.0" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <enabled xsi:nil="true"></enabled>
 <userClassPath xsi:nil="true"></userClassPath>
 <vmParameters xsi:nil="true"></vmParameters>
 <jreLocations xsi:nil="true"></jreLocations>
 <javaInfo xsi:nil="true"></javaInfo>
</java>

starting with lo 6.1.5 we noticed, that lo complains during first start:
"The configuration has been changed" (please see attached picture).

till now we used a "javasettings_Windows_X86_64.xml" with "vendorUpdate="2013-05-02".
and this seems to be the problem now. 
creating a new "javasettings_Windows_X86_64.xml with JRE 1.8.0_202 changes
the date to "vendorUpdate="2019-01-19". this will work with lo 6.1.5.2, but
not with LO 6.1.4.2 and LO 6.2.0.3. the latter two (network installations on
my test system) still need "vendorUpdate="2013-05-02".

steps to reproduce:
- LO 6.1.5.2 is installed in "C:\Program Files\LibreOffice" 
  (with system integration)
- Java JRE x64 is installed in "C:\Program Files\Java\jre1.8.0_202".
  (btw: a JDK 11.0.2 is installed on my test system too)
- attached java extensions is installed in 
  "C:\Program Files\LibreOffice\share\uno_packages":
  unopkg add broadcastcomp.uno.zip --shared --verbose
  btw: it seems to be neccessary to use a java extension which will be
       initialized during lo start.
- make sure lo is not running
- copy attached "javasettings_Windows_X86_64.xml" into 
  "C:\Program Files\LibreOffice\share\config"
- delete lo user profile
- start lo 
- this should work, cause vendorUpdate is "2019-01-19".

but it will fail if you change the vendorUpdate to "2013-05-02" or 
try the same with LO 6.1.4.2/LO 6.2.0.3.
Comment 1 Oliver Brinzing 2019-02-03 09:33:19 UTC
Created attachment 148868 [details]
broadcastcomp.uno.zip - example java extension
Comment 2 Oliver Brinzing 2019-02-03 09:36:34 UTC
Created attachment 148869 [details]
javasettings_Windows_X86_64.xml
Comment 3 Mike Kaganski 2019-02-03 11:46:48 UTC
Confirm.

https://git.libreoffice.org/core/+/61c4f96d6ae6a80370774e53287edb27cbce8067 changed this (and https://gerrit.libreoffice.org/67289 will likely do it again), but the requirement to mention the vendorUpdate level in the setting (or its handling) makes it impossible to create a single template applicable to multiple LO versions.

Stephan: do you have an idea is there's some option here?
Comment 4 Oliver Brinzing 2019-02-03 12:44:38 UTC
(In reply to Mike Kaganski from comment #3)
 
> Stephan: do you have an idea is there's some option here?

I generally don't have any problems to update the "javasettings_Windows_X86_64.xml" from time to time with a new lo version, 
but i was surprised that this happend in lo 6.1.5 - and lo 6.2.0.3 still
uses the old vendorUpdate date.
Comment 5 Mike Kaganski 2019-02-03 13:03:54 UTC
(In reply to Oliver Brinzing from comment #4)
> but i was surprised that this happend in lo 6.1.5 - and lo 6.2.0.3 still
> uses the old vendorUpdate date.

Well - the change has been pushed to branches at Jan 25th, and 6.1.5.2 is from Jan 30th [1], while 6.2.0.3 is from Jan 23th [2].

[1] https://git.libreoffice.org/core/+/3e230c18143c4893e67e6e814fb73f9daaf226e3

[2] https://git.libreoffice.org/core/+/ef2cec46280dc29e2472a11fda2da62bb7ed090d
Comment 6 Oliver Brinzing 2019-02-03 18:42:04 UTC
(In reply to Mike Kaganski from comment #5)
> Well - the change has been pushed to branches at Jan 25th, and 6.1.5.2 is
> from Jan 30th [1], while 6.2.0.3 is from Jan 23th [2].

Thanks for the clarification :-)
Comment 7 Christian Lohmaier 2019-03-27 11:51:40 UTC
adding comment from https://lists.freedesktop.org/archives/libreoffice-bugs/2019-March/176641.html (outage):

"(Also note <https://gerrit.libreoffice.org/#/c/69731/> "Note when
javavendors_*.xml <updated> should be updated" clarifying that
javavendors_*.xml <updated> should only be updated for incompatible changes,
and <https://gerrit.libreoffice.org/#/c/69730/> "javavendors_*.xml <updated>
should not have been updated..." doing a compatible change to javavendors_*.xml
for libreoffice-6-2 towards LO 6.2.3 without updating <updated>.  That means
that updates to those <updated> timestamps will hopefully happen less often in
the future than they happened in the recent past.)"
Comment 8 QA Administrators 2021-03-27 04:07:27 UTC Comment hidden (obsolete)
Comment 9 Julien Nabet 2022-01-22 10:23:45 UTC
Olivier: any update with last LO version 7.2.5 and brand new LO profile? (see https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile)
Comment 10 Oliver Brinzing 2022-02-20 15:53:44 UTC
this seems to be fixed, e.g. vendorUpdate="2019-07-26" (oracle 1.8) is valid for LO 7.2.5, LO 7.3.0 and LO 6.4.