[RESPDAM-51] REST endpoint returns error on ressources created in previous Magnolia version Created: 22/Sep/21 Updated: 19/Oct/21 Resolved: 19/Oct/21 |
|
| Status: | Closed |
| Project: | DAM Focal |
| Component/s: | None |
| Affects Version/s: | 2.0.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | High |
| Reporter: | Simon Tourville | Assignee: | Adrien Manzoni |
| Resolution: | Not an issue | Votes: | 1 |
| 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: |
| Description |
Steps to reproduce
See Stacktrace. Expected results Should work with images that does not have thos lines: <sv:property sv:name="mgnl:created" sv:type="Date"> Actual results Fail... WorkaroundWe would have to re-create all our DAM resources (100+) Development notes |
| Comments |
| Comment by Simon Tourville [ 24/Sep/21 ] |
|
I'm now 100% sure that an image missing those properties creates the error: <sv:property sv:name="mgnl:created" sv:type="Date"> I do not know from which version of Magnolia 6.2.x those properties where added... Hint: May be the probel still exist if we import resources from zip file or directy... May be not... Looking at: Lines 133 and 134: this.writeNonEmptyKeyValue(jsonGenerator, "created", DateUtil.format(asset.getCreated().getTime(), DATE_TIME_PATTERN)); DateUtil.format(null) -> returns errors. Could you fix that please? |
| Comment by Simon Tourville [ 24/Sep/21 ] |
|
I've just found the solution: Executing the Groovy scrips fix the issue. Wow! |
| Comment by Simon Tourville [ 24/Sep/21 ] |
| Comment by Adrien Manzoni [ 19/Oct/21 ] |
|
Fixed in DX Core 6.2.11 |