[MAGNOLIA-6098] Rendering of areas broken if the page and one of its areas has the same name. Created: 26/Feb/15 Updated: 03/Mar/15 Resolved: 27/Feb/15 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | configuration |
| Affects Version/s: | None |
| Fix Version/s: | 5.4 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Michael Mühlebach | Assignee: | Michael Mühlebach |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| 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 |
ScenarioIn the ftp-sample-site we have a page definition named "main". Expected behaviourJust the specified area is rendered. Actual behaviourThe complete page is rendered. |
| Comments |
| Comment by Jan Haderka [ 26/Feb/15 ] |
|
Junit test? |
| Comment by Michael Mühlebach [ 27/Feb/15 ] |
|
Added an additional test for the special case. |
| Comment by Roman Kovařík [ 27/Feb/15 ] |
|
info.magnolia.rendering.listeners.AreaFilteringListener#getTemplateDefinition may return null. |
| Comment by Jan Haderka [ 27/Feb/15 ] |
|
tiny typo in the javadoc |
| Comment by Mikaël Geljić [ 27/Feb/15 ] |
|
Hey there, I indeed closed this ticket after QA because direct area rendering works again as expected I just shrank it to the following code, and it works exactly the same, including tests. return content != null && targetArea.equals(content.getName())
|
| Comment by Roman Kovařík [ 02/Mar/15 ] |
|
| Comment by Mikaël Geljić [ 03/Mar/15 ] |
|
Thanks Roman, I forgot about this one! |