Tim Mori | There's at least 3 different posts where people ran into this issue and I didn't see that anyone posted a resolution. I'm attempting to do this in python and I'm getting the boundary error.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:result xmlns:ns2="http://www.cisco.com/dms/xml/ns/dsmCommonService" xmlns:ns3="http://www.cisco.com/dms/xml/ns/historyManagement"><status>failure</status><code>Internal Server Error</code><description>Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadException: the request was rejected because no multipart boundary was found</description></ns2:result>
I am using multipart/form-data as my content-type. If I add some generic boundary, e.g. setting 'Content-Type': 'multipart/form-data;boundary=abc123', the boundary error goes away, but the 500 server error remains.
So far there are posts where this has happened in PHP and Java, and now I can't get it to work in Python, so it's seems to be an issue on the DMM end. Is there an explicit boundary to use? Edit: I think the boundary error is a red herring. Going by several different examples, I just set a dummy boundary and that error goes away. However, I cannot upload anything programmatically to the DMM. And I'm not even uploading a file, just a URL. Everything I've tried gives me a 500 error. I can add them using the HTML form though. I think the problem may be that the API requires a multipart/form-data encoding and I'm not really uploading a file, just data. This should work fine using text/xml or some other basic content-type. |
| Please sign in to flag this as inappropriate. |