[CONTEDIT-253] A block definition's change causes a error message Created: 10/Sep/20  Updated: 02/Jun/21  Resolved: 02/Jun/21

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Michal Novak Assignee: Unassigned
Resolution: Cannot Reproduce 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:
Epic Link: Content editor next

 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:

  1. Use already existing block || create a block and add it to an app
  2. Edit a property (for instance a label)
  3. 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



 Comments   
Comment by Laura Delnevo [ 02/Jun/21 ]

Hi mnovak we checked this ticket on the latest Mgnl vs and we were unable to reproduce the error. Does this still happen to you on your instance? Could you share a video or more details if this is still occurring

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