[MGNLRES-206] Uploading a file under folders not yet existing fails with NPE in FileTransformer Created: 31/Aug/15 Updated: 29/Mar/22 Resolved: 03/Sep/15 |
|
| Status: | Closed |
| Project: | Magnolia Resources Module |
| Component/s: | None |
| Affects Version/s: | 2.4.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Federico Grilli | Assignee: | Federico Grilli |
| Resolution: | Obsolete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 0.75d | ||
| 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: | |||||||||
| Epic Link: | Phase out in-place templating app | ||||||||
| Sprint: | Sprint (Basel) 8 | ||||||||
| Story Points: | 5 | ||||||||
| Team: | |||||||||
| Description |
|
Uploading a file under a not yet existing folder path fails with NPE in FileTransformer Java.lang.NullPointerException at info.magnolia.ui.form.field.transformer.item.FileTransformer.getOrCreateFileItem(FileTransformer.java:147) |
| Comments |
| Comment by Federico Grilli [ 01/Sep/15 ] |
|
To summarise:
|
| Comment by Aleksandr Pchelintcev [ 02/Sep/15 ] |
Side notes:
|
| Comment by Mikaël Geljić [ 03/Sep/15 ] |
|
Obsolete. Upload shouldn't go straight to a JCR adapter, we create the path/node in SaveAction in one step instead. |