Community
Participate
Working Groups
The licences accepted in the AcceptLicensesWizardPage are remembered by the SimpleLicenseManager of Equinox-p2. Unfortunately it seems like the remembered accepted licenses are not persisted. I've installed new software to a new stand-alone "Eclipse IDE for Java Developers 2021-06" and accepted the licence of the new software (in my case something from the Sim-Rel realeses repo, where mostly the "Eclipse Foundation Software User Agreement" is used). When I don't restart after the installation and additionally install other new software with the same licence, I don't get prompted to accept that licence again. So far so good. But after a restart I have to accept the licence of new software again even tough it is exactly the same licence text (I used a diff-tool to verify it). I put a break-point into SimpleLicenseManager.initializeFromPreferences() and debugged the mentioned Eclipse as a Remote Java Application and noticed that the "digestList" load from the preferences is always empty. When I accept licences they are added to the 'accepted'-set of the SimpleLicenseManager as expected. Furthermore I noticed that the prefs-file "p2\org.eclipse.equinox.p2.engine\profileRegistry\epp.package.java.profile\.data\.settings\org.eclipse.equinox.p2.ui.sdk.prefs" within my Eclipse installation, which I assume is supposed to store the preference, never contains any corresponding entry. Therefore I think the problem is that the remembered licenses are not properly persisted. It looks like the problem can be solved if in SimpleLicenseManager.updatePreferences() the updated preferences are flushed. Or is there a better, more general solution?
New Gerrit change created: https://git.eclipse.org/r/c/equinox/rt.equinox.p2/+/182707
Gerrit change https://git.eclipse.org/r/c/equinox/rt.equinox.p2/+/182707 was merged to [master]. Commit: http://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/?id=df70526aa12fc77cc4ab6fc48b8e15b522214fea
Thanks, Hannes. Can you add a small entry to the N&N for 4.21? See https://git.eclipse.org/r/q/project:www.eclipse.org/eclipse/news for an examples.
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/183391
(In reply to Lars Vogel from comment #3) > Thanks, Hannes. Can you add a small entry to the N&N for 4.21? See > https://git.eclipse.org/r/q/project:www.eclipse.org/eclipse/news for an > examples. Your welcome and thanks for reviewing. Sure, the N&N change was just submitted.
Gerrit change https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/183391 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=24d5e587150a0e2b3d339a07d315a6c6e904f7a3
Thanks, Hannes. Please test with the next I-Build.
I have just verified it with I-Build I20210726-1800 (the first one that included this change) and everything works fine. After the first new software is installed, I don't get asked to accept the licences of further new software that uses the same license.
(In reply to Hannes Wellmann from comment #8) > I have just verified it with I-Build I20210726-1800 (the first one that > included this change) and everything works fine. > After the first new software is installed, I don't get asked to accept the > licences of further new software that uses the same license. Thanks again, Hannes.