-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE
-
Fix Version/s: 6.2.X EE
-
Component/s: App Management, App Management > License Manager
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Story Points:1
-
Fix Priority:5
-
Git Pull Request:
Description
When deploying a license, an UnsupportedOperationException is thrown.
This does not occur with testing/developer licenses.
This occurs with licenses that involve checking for specific IP addresses / mac addresses when deployed.
This issue occurs with portal-109 is installed, but not with portal-108.
This issue was not reproduced in DXP - 7.0.0-ga1.
This issue is caused by LPS-64373.
The licensing code in 6.2 throws an exception with the changes.
The licensing code in DXP however works properly with the changes.
Steps to Reproduce
- Installed patching-tool 1.0.23
- Installed portal-109
- Start up a 6.2 bundle
- Deploy a license that involves checks for specific IP addresses / mac addresses
- Receive Licensing errors
23:16:47,859 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LicenseAutoDeployListener:?] Copying license for C:\Users\liferay\Downloads\liferay-portal-6.2-ee-sp14(1)\deploy\nonproduction-production-6.2ee.xml 23:16:47,939 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LicenseManager:?] Portal Non-Production license validation failed java.lang.UnsupportedOperationException at java.util.Collections$UnmodifiableCollection.retainAll(Collections.java:1091) at com.liferay.portal.license.a.f.c(Unknown Source) at com.liferay.portal.license.a.f.e(Unknown Source) at com.liferay.portal.license.a.i.c(Unknown Source) at com.liferay.portal.license.a.f.d(Unknown Source) at com.liferay.portal.license.a.f.d(Unknown Source) at com.liferay.portal.license.a.f.d(Unknown Source) at com.liferay.portal.license.LicenseManager.c(Unknown Source) at com.liferay.portal.license.LicenseManager.checkBinaryLicense(Unknown Source) at com.liferay.portal.license.tools.deploy.LicenseDeployer.deploy(Unknown Source) at com.liferay.portal.license.deploy.auto.LicenseAutoDeployer.autoDeploy(Unknown Source) at com.liferay.portal.license.deploy.auto.LicenseAutoDeployListener.deploy(Unknown Source) at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:50) at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:211) at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:275) at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:58) 23:16:47,979 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LicenseDeployer:?] License registered
Results of Testing:
Expected Results: License works when deployed.
Actual Results: License has errors when deployed.
Reproduced in?
Branch? - Can't be tested because licenses not required for branch.
Master? - Can't be tested because licenses not required for master.
6.2 sp13 w/ portal-108 - Not Reproduced
6.2 sp13 w/ portal-109 - Reproduced
7.0.0-ga1 - Not Reproduced