[MAGNOLIA-6678] Creating template (and possibly other definitions) from resources app results in at least one UnsupportedOperationException Created: 25/May/16 Updated: 19/May/22 Resolved: 19/May/22 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 5.4.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Philip Mundt | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | regression | ||
| 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: |
| Description |
|
When using the resources app to e.g. create a template, the app will create the node before any contents have been given. This results in YamlDefinitionProvider trying to create a TEMPLATE from given empty contents: 2016-05-25 08:14:39,247 WARN magnolia.config.source.yaml.YamlDefinitionProvider: Problem while registering TEMPLATE from LayeredResource{path='/mte/templates/pages/another.yaml', layeredResources=[JcrResource{origin=jcr,path=/mte/templates/pages/another.yaml,file}]}: Unsupported operation java.lang.UnsupportedOperationException at java.util.AbstractMap.put(AbstractMap.java:209) at info.magnolia.config.source.yaml.YamlDefinitionProvider.resolve(YamlDefinitionProvider.java:133) at info.magnolia.config.source.yaml.YamlDefinitionProvider.getDelegate(YamlDefinitionProvider.java:99) at info.magnolia.config.registry.AbstractDefinitionProviderWrapper.getMetadata(AbstractDefinitionProviderWrapper.java:55) at info.magnolia.config.registry.AbstractDefinitionProviderWrapper.getMetadata(AbstractDefinitionProviderWrapper.java:55) at info.magnolia.config.registry.RegistryMap.asStringKey(RegistryMap.java:147) at info.magnolia.config.registry.RegistryMap.put(RegistryMap.java:94) at info.magnolia.config.registry.AbstractRegistry.register(AbstractRegistry.java:98) at info.magnolia.config.source.yaml.YamlConfigurationSource.loadAndRegister(YamlConfigurationSource.java:87) at info.magnolia.config.source.yaml.AbstractFileResourceConfigurationSource$1.onResourceChanged(AbstractFileResourceConfigurationSource.java:121) at info.magnolia.resourceloader.layered.LayeredResourceOrigin$RelayingChangeHandler.onResourceChanged(LayeredResourceOrigin.java:291) at info.magnolia.resourceloader.AbstractResourceOrigin.dispatchResourceChange(AbstractResourceOrigin.java:132) at info.magnolia.resourceloader.jcr.JcrResourceOrigin$ResourcesObservationListener.onEvent(JcrResourceOrigin.java:393) at info.magnolia.cms.util.FilteredEventListener.onEvent(FilteredEventListener.java:86) at info.magnolia.observation.DeferringEventListener$ObservationBasedDelayedExecutor$1.run(DeferringEventListener.java:102) at info.magnolia.cms.util.DelayedExecutor$RunnableWrapper.run(DelayedExecutor.java:103) at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown Source) at java.lang.Thread.run(Thread.java:745) Once contents are provided to the template, everything works according to plan. |
| Comments |
| Comment by Roman Kovařík [ 19/May/22 ] |
|
Hello, This ticket is now marked as closed due to one of the following reasons:
If you are still facing a problem or consider this issue still relevant, please feel free to re-open the ticket and we will reach out to you. Thank you, |