[MGNLUI-3933] Deprecated ctor of DateFieldFactory doesn't work Created: 30/Jun/16  Updated: 28/Jul/16  Resolved: 07/Jul/16

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.4.7
Fix Version/s: 5.4.8

Type: Bug Priority: Neutral
Reporter: Evzen Fochr Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 5m
Original Estimate: Not Specified

Attachments: File magnolia-ui-form-5.4.7-MGNLUI-3933.jar    
Issue Links:
causality
caused by MGNLUI-2695 User can configure his timezone Closed
duplicate
is duplicated by MGNLGAV-33 GAV app fails to start on 5.4.7: UiCo... Closed
relation
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
Sprint: Kromeriz 51
Story Points: 1

 Description   

As described in info.magnolia.ui.form.field.factory.AbstractFieldFactory we can't use Components utility for retreiving UiContext.
And pull-request of MGNLUI-2695 added to deprecated constructor of DateFieldFactory Components.getComponent(UiContext.class)

See: Caused by: info.magnolia.objectfactory.NoSuchComponentException: No component configuration for type [info.magnolia.ui.api.context.UiContext] found. Please add a configuration to your module descriptor.
	at info.magnolia.objectfactory.guice.GuiceComponentProvider.getComponent(GuiceComponentProvider.java:100)
	at info.magnolia.objectfactory.Components.getComponent(Components.java:107)
	at info.magnolia.ui.form.field.factory.DateFieldFactory.<init>(DateFieldFactory.java:78)
	at info.magnolia.ga.visualization.app.fields.GoogleAnalyticsDateFieldFactory.<init>(GoogleAnalyticsDateFieldFactory.java:39)
	... 164 more

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