Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-1695

Make sure GridFsResource.getContentType() reads type from new location within file metadata

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0 M3 (Kay)
    • Fix Version/s: 2.0 M4 (Kay)
    • Component/s: Mapping / Conversion
    • Labels:
      None
    • Sprint:
      Kay M3

      Description

      The implementation of GridFsResource.getContentType() in version 1.10.3.RELEASE is

      return file.getContentType();

      However, in Spring Data MongoDB 2.0.0.M3 the contentType is stored inside metadata with the key type. Therefore, the implementation of GridFsResource.getContentType() should be

      return file.getMetadata().getString("type")

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              juergen.zimmermann Juergen Zimmermann
              Last updater:
              Mark Paluch
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: