Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9027

Content-Type tag wrong in emailed reports

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 17.0.0
    • Component/s: Reports / Statsd
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
    • Sprint:
      Horizon - August 15th 2018, Horizon - August 22nd 2018

      Description

      setup the early morning report to run and email at 5:00am. I can open the report from the webpage via okular and my iphone renders it correctly. My thunderbird and zimbra mail clients failed to render the pdf. When I looked into it the pdf the following:
      Content-Type: text/plain; name="local_Early-Morning-Report wes.pdf"
      Content-Transfer-Encoding: base64
      Content-Disposition: attachment; filename="local_Early-Morning-Report wes.pdf

      A properly rendered pdf had :
      Content-Type: application/pdf;
      name="SB9719.pdf"
      Content-Transfer-Encoding: base64
      Content-Disposition: attachment;
      filename="SB9719.pdf"

      I'm guessing the "Content-Type" should be app/pdf and not text/pdf for proper rendering in my mail client

        Attachments

          Activity

            People

            • Assignee:
              cpape Christian Pape
              Reporter:
              aasuaasu wes hall
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: