-
Bug
-
Resolution: Fixed
-
Neutral
-
3.0
-
None
-
None
-
-
Empty show more show less
-
UI Framework 18, UI Framework 19
-
8
The resources app allows a user to upload both binary files - images/videos, and text files - plaintext, yaml, etc.
Expected—working as of 6.1:
- Binary files are stored under a sub-node named binary of node-type mgnl:resource, with file content stored as JCR Binary property named jcr:data.
- Uploaded text files are stored directly under the content node, with file content stored as JCR String property named text, in plain text.
- In addition to plain-text files (text/plain / .txt), XML and YAML files should be treated as text files.
Actual:
- Uploaded plain text and YAML files have a text property set, but with content stored as a JCR Binary property.
- Uploaded XML files are completely treated as binary files instead of text files.
The info.magnolia.resources.app.data.ResourcePropertySetFactory manages the creation of node and setting appropriate properties for a file uploaded in resources app.
Old implementation should be ported from ResourcesContentConnector, and unit tests should be ported as well.
See also attached exports for actual/expected structure for comparison.
Acceptance criteria
- is related to
-
MAGNOLIA-7741 IndexOutOfBoundsException when uploading binary in resources workspace
- Closed
- supersedes
-
MGNLRES-334 Resource uploaded via UI is treated as text file albeit being an image
- Closed