locked
ContentType restricted in PPE? RRS feed

  • Question

  • We're getting an exception today when trying to save "File" items when the ContentType is "multipart/mixed" or "multipart/alternative".

    Here's the exception:
    "Microsoft.Health.HealthServiceException: The content type multipart/mixed is not supported"

    This is occurring in the Pre-Production environment, but not production.  Is this behavior expected?  Will it be released to production soon?

    Thanks,
    Marty
    Software Engineer
    Wednesday, December 2, 2009 11:08 PM

Answers

  • To update everyone-- at this time, we've made a change that has removed some of the new restrictions from the content-type field.  This should allow your scenario to continue working with no issues.  Please let us know if you see any problems.

    Friday, December 18, 2009 5:40 AM
    Moderator

All replies

  • Hello Marty,

    I am able to reproduce this issue. I am contacting our development team on this issue. I will soon have an update.

    Thanks and Regards,
    Aneesh D.
    Thursday, December 3, 2009 12:13 AM
    Moderator
  • I'm pinging the team internally-- this could be due to a code update to PPE that has not yet made it to Production.  We'll reply back here after investigating more.  Thanks!
    Thursday, December 3, 2009 12:19 AM
    Moderator
  • One thing I know is that the Content Encoding (not content type)  was normailized (or restricted) since a past release as described in the following article

    http://blogs.msdn.com/healthvault/archive/2009/06/10/upcoming-changes-in-0906-release.aspx

    My guess is that Content Type is also restricted from this recent release to PPE.  Anyway, let us wait on what Lowell finds out

    Raj
    Raj HealthVault Developer Tool http://xray.getrealconsulting.com
    Thursday, December 3, 2009 6:59 AM
  • We don't currently accept multipart content-type for a variety of reasons.  What is the use case for this?  We're curious about why someone would want to upload a multipart file to their HealthVault record.

    FYI: our documented approved types involve file extensions; you can obtain this list through GetServiceDefinition and the public config “allowedDocumentExtensions”.  Currently this is:

     

    .avi,.bmp,.ccd,.ccr,.cda,.doc,.docm,.docx,.gif,.jpg,.mp3,.one,.pdf,.png,.ppsm,.ppsx,.ppt,.pptm,.pptx,.pub,.rpmsg,.rtf,.tif,.tiff,.txt,.vsd,.wav,.wma,.wmv,.xls,.xlsb,.xlsm,.xlsx,.xml,.xps

     

    Thursday, December 3, 2009 6:56 PM
    Moderator
  • Lowell,

    Our use-case is this:  We allow patients to store emails from there doctor into HV.  The body of the email is MIME, which has a multipart-mixed content-type.  We also save the attachments to the email (e.g. Lab Result PDF) as files, and use the same content-type specified in the MIME.

    We're interested in the new "approved content-type" list, and also very interested as to when this new behavior will go live.

    Thank you for your help,
    --Marty

    Software Engineer
    Thursday, December 3, 2009 7:47 PM
  • To update everyone-- at this time, we've made a change that has removed some of the new restrictions from the content-type field.  This should allow your scenario to continue working with no issues.  Please let us know if you see any problems.

    Friday, December 18, 2009 5:40 AM
    Moderator