Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Re: HP ALM: Add attachment to Test Run with the REST API throws Internal Server Error

$
0
0

Hi Michael,

 

I'm running into a similar issue. I'm creating a client app in C# that will be capable of uploading files as attachments.

 

The url and header looks ok...

http://server:8080/qcbin/rest/domains/ABC/projects/XYZProject/defects/13/attachments

Content-Type: multipart/form-data; boundary=myboundary Content-Length: 251

 

The body looks ok...

 

--myboundary
Content-Disposition: form-data; name="filename"

 

hello.txt
--myboundary
Content-Disposition: form-data; name="file"; filename="hello.txt"

 

Hello World!!!
--myboundary--

 

 

But I'm getting this error from the server....

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><QCRestException><Id>qccore.general-error</Id><Title>Illegal multi-part arguments. Attachment wasn't created.</Title></QCRestException>

 

I've been scouring the internet looking for an explanation but have come up short. Any idea what this error means?

 

Thanks,

 

Anthony

 


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>