[MGNLREST-287] Unable To Get Secondary Language From Rest Response When Primary Language Is Blank Created: 12/Nov/20 Updated: 19/May/21 Resolved: 18/May/21 |
|
| Status: | Closed |
| Project: | Magnolia REST Framework |
| Component/s: | None |
| Affects Version/s: | 2.2.6 |
| Fix Version/s: | 2.2.7 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Julian Nodarse | Assignee: | Lam Nguyen Bao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | VN-Analysis, VN-Maintenance, VN-Testing, headless-team-support | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 3.25d | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
||||||||||||
| Epic Link: | Support | ||||||||||||
| Sprint: | HL & LD 28 | ||||||||||||
| Story Points: | 3 | ||||||||||||
| Description |
|
When you create some i18n content and try to retrieve the data with rest calls containing language query parameters, the query will not return the appropriate language when the content using the fallbackLocale is left blank. This happens when the parameter is anything but the fallbackLocale's. Steps to Reproduce Actual Result Expected Result Additional Notes / Examples https://demoauthor.magnolia-cms.com/.rest/delivery/{your_endpoint}/travel/about?lang=all https://demoauthor.magnolia-cms.com/.rest/delivery/{your_endpoint}/travel/about?lang=en https://demoauthor.magnolia-cms.com/.rest/delivery/{your_endpoint}/travel/about?lang=de Let's say you set fallbackLocale to "en", then you will see that when you leave the content that uses "en" blank: Workarounds
|