[MGNLBACKUP-25] Backup module performs incorrect license check Created: 31/Aug/09  Updated: 29/Mar/22  Resolved: 31/Aug/09

Status: Closed
Project: Backup
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.1.1

Type: Bug Priority: Critical
Reporter: Wolfgang Habicht Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Team: Nucleus

 Description   

The backup-module is not working due to license problems.

In the class BackupModule the following mehod is wrong:
public static boolean isLicenseValid()

{ return LicenseManager.getInstance().isLicenseValid("advanced-cache"); }

(probably copy-pasted from the advances cache module)

So without having the advanced-cache module installed, backup is not working.
(If for any reason, the backup depends on advances-cache, then the pom is missing the dependency)



 Comments   
Comment by Wolfgang Habicht [ 31/Aug/09 ]

31.08.2009 17:43:06 ERROR info.magnolia.module.backup.pages.BackupPage - Current license is not valid for Backup module. Canceling the backup. 127.0.0.1 GET /.magnolia/pages/backup.html "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13"
java.lang.RuntimeException: Current license is not valid for Backup module. Canceling the backup.
at info.magnolia.module.backup.BackupRun.execute(BackupRun.java:93)
at info.magnolia.module.backup.pages.BackupPage.manualBackup(BackupPage.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at info.magnolia.cms.servlets.MVCServletHandlerImpl.execute(MVCServletHandlerImpl.java:123)

Comment by Jan Haderka [ 31/Aug/09 ]

Thanks. Fixed in trunk as of r27487.

Comment by Jan Haderka [ 24/Jun/11 ]

Closing all previously resolved and released issues.

Generated at Sun Feb 11 23:24:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.