[MGNLREST-295] Custom Reference Resolvers Failing since 2.2.2 Created: 07/Jan/21 Updated: 28/Nov/23 |
|
| Status: | Accepted |
| Project: | Magnolia REST Framework |
| Component/s: | delivery |
| Affects Version/s: | 2.2.2, 2.2.5, 2.2.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Chris Jennings | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| 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: | Support |
| Team: |
| Description |
| Comments |
| Comment by Shaun Mendham [ 20/Apr/21 ] |
|
Although not ideal, is creating a custom MessageBodyWriter class considered a viable workaround? The below has been tested and is working against Magnolia 6.2.7 and rest-content-delivery 2.2.6. In the Dummy example this could be the corresponding Writer class: DummyWriter.java With an entry added to dummy-module/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers, referencing the writer class. Has any other alternative been identified? Regards, Shaun |
| Comment by Chris Jennings [ 27/Apr/21 ] |
|
Thanks very much for getting in touch, Shaun. I validated your approach for myself (using Magnolia 6.2.8 / REST Content Delivery 2.2.6) and the output is as it was before (obviously the Jackson annotations are on the POJO are now ignored). I raised this with czimmermann who agrees it is a bug. However, as we have a workaround, it will probably not receive much attention soon. |
| Comment by Shaun Mendham [ 04/May/21 ] |
|
Thanks Chris, for validating and the update. |