Uploaded image for project: 'Content Editor'
  1. Content Editor
  2. CONTEDIT-253

A block definition's change causes a error message

    XMLWordPrintable

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:

      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

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              mnovak Michal Novak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD