Details
-
Bug
-
Resolution: Cannot Reproduce
-
Neutral
-
None
-
None
-
None
Description
When a block definition is changed, there is an error message even though it's being registered correctly afterwards.
2020-09-10 08:48:54,696 INFO info.magnolia.dirwatch.DirectoryWatcher : Directory modified at [/Users/michalnovak/dev/corporateNOW/magnolia-mkg/light-modules/blogs/blocks] 2020-09-10 08:48:54,833 INFO info.magnolia.dirwatch.DirectoryWatcher : File resource modified at [/Users/michalnovak/dev/corporateNOW/magnolia-mkg/light-modules/blogs/blocks/test.yaml] 2020-09-10 08:48:54,852 ERROR info.magnolia.config.registry.RegistryMap : Can't register [block] definition [test] with reference id: [test] from module [blogs] at [test] since a definition with the same id test is already registered as [block] definition [test] with reference id: [test] from module [blogs] at [test]. 2020-09-10 08:48:54,853 INFO agnolia.config.source.yaml.YamlConfigurationSource: Registered definition from YAML file [/blogs/blocks/test.yaml]: [block] definition [test] with reference id: [test] from module [blogs] at [test]
Step to reproduce:
- Use already existing block || create a block and add it to an app
- Edit a property (for instance a label)
- See the log (if there is only "Directory modified..." message, restart the instance)
Expectation:
A block is being registered without an error message
Actual results:
- Firstly it fails with an error
- Then the registering is successful
Thank you
Checklists
Acceptance criteria