Uploaded image for project: 'Magnolia Resources Module'
  1. Magnolia Resources Module
  2. MGNLRES-346

Text files stored incorrectly as binary

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 3.0, 3.0.1
    • 3.0
    • None
    • None
    • UI Framework 18, UI Framework 19
    • 8

    Description

      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:

      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.
      2. Uploaded text files are stored directly under the content node, with file content stored as JCR String property named text, in plain text.
      3. In addition to plain-text files (text/plain / .txt), XML and YAML files should be treated as text files.

      Actual:

      1. Uploaded plain text and YAML files have a text property set, but with content stored as a JCR Binary property.
      2. 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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rdhar Rishab Dhar
                rdhar Rishab Dhar
                Nucleus
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Time Spent - 0.05d Remaining Estimate - 5h
                      5h
                      Logged:
                      Time Spent - 0.05d Remaining Estimate - 5h
                      0.05d