[MGNLETK-5] Due to ETKi18nSupport the filter chain is broken if a wrong license is entered Created: 18/Jun/09  Updated: 03/Jul/14  Resolved: 11/Aug/09

Status: Closed
Project: Extended Templating Kit (closed)
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.1.2

Type: Bug Priority: Critical
Reporter: Philipp Bärfuss Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLETK-3 Public-Instance fails without valid l... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

see:

java.lang.IllegalStateException: Can't instantiate an implementation of this class [info.magnolia.module.templatingkit.sites.SiteManager]: IllegalStateException: License issue: No license found for the Extended Templating Kit!
info.magnolia.cms.util.FactoryUtil.newInstance(FactoryUtil.java:124)
info.magnolia.cms.util.FactoryUtil.getSingleton(FactoryUtil.java:175)
info.magnolia.module.templatingkit.sites.SiteManager$Factory.getInstance(SiteManager.java:71)
info.magnolia.module.extendedtemplatingkit.i18n.ETKI18nContentSupport.onDetermineLocale(ETKI18nContentSupport.java:66)
info.magnolia.cms.i18n.AbstractI18nContentSupport.determineLocale(AbstractI18nContentSupport.java:116)



 Comments   
Comment by Philipp Bärfuss [ 31/Jul/09 ]

This is what happens:
1) enter invalid license (this makes the registry filter happy and the license screen will not been shown again)
2) the chain fails because the i18n filter uses the ETKI18nContentSupport which checks for a valid license

At that point one is not able to access magnolia anymore nor is one able to enter a correct license.

Workaround (to be verified):
1) remove ETK jar (stop first)
2) access magnolia
3) manually enter valid license key in modules/enterprise/license
4) put ETK jar back (stop first)

Comment by Jan Haderka [ 11/Aug/09 ]

Done as of r27106. The fallback locale will be returned instead when license is not valid.
Also fixed STKUtil which had the same issue when attempting to retrieve site configuration. (r27107).

Generated at Mon Feb 12 01:47:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.