[MAGNOLIA-6740] wrong message in log when creating definition which already exists in jcr Created: 04/Aug/16 Updated: 19/May/22 Resolved: 19/May/22 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 5.4.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Tomáš Gregovský | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
EE Pro 5.4.7 |
||
| 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 yaml template definition is created and same (same id) definition already exists in jcr, then I see message in log about 'Can't register Definition' but this one is followed by another message 'Registered Definition' which is not true in this case. Second message shouldn't be displayed in log. Messages: 2016-08-04 14:12:29,836 ERROR info.magnolia.config.registry.RegistryMap : Can't register DefinitionMetadataBuilder.DefinitionMetadataImpl(type=TEMPLATE, referenceId=corporate-website-2015:pages/cHome, name=cHome, module=corporate-website-2015, location=/corporate-website-2015/templates/pages/cHome.yaml, relativeLocation=pages/cHome) since a definition with the same id corporate-website-2015:pages/cHome is already registered as DefinitionMetadataBuilder.DefinitionMetadataImpl(type=TEMPLATE, referenceId=corporate-website-2015:pages/cHome, name=cHome, module=corporate-website-2015, location=/modules/corporate-website-2015/templates/pages/cHome, relativeLocation=pages/cHome). 2016-08-04 14:12:29,836 INFO agnolia.config.source.yaml.YamlConfigurationSource: Registered DefinitionMetadataBuilder.DefinitionMetadataImpl(type=TEMPLATE, referenceId=corporate-website-2015:pages/cHome, name=cHome, module=corporate-website-2015, location=/corporate-website-2015/templates/pages/cHome.yaml, relativeLocation=pages/cHome) from LayeredResource{path='/corporate-website-2015/templates/pages/cHome.yaml', layeredResources=[FileSystemResource {origin=filesystem,path=/corporate-website-2015/templates/pages/cHome.yaml,file}]} |
| 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, |