Answered by:
ContentType restricted in PPE?

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 EngineerWednesday, 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.
- Proposed as answer by Lowell MeyerMicrosoft employee, Moderator Friday, December 18, 2009 5:40 AM
- Marked as answer by Marty Matheny Wednesday, January 6, 2010 6:02 PM
Friday, December 18, 2009 5:40 AMModerator
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 AMModerator -
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 AMModerator
-
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.comThursday, 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 PMModerator -
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 EngineerThursday, 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.
- Proposed as answer by Lowell MeyerMicrosoft employee, Moderator Friday, December 18, 2009 5:40 AM
- Marked as answer by Marty Matheny Wednesday, January 6, 2010 6:02 PM
Friday, December 18, 2009 5:40 AMModerator