400 Bad request while uploading the ReqIFz file in 6.06.1 version
Hi ALL,
Unable to create package factory url for uplaoding the reqif file.
400 bad request message is thrown in 6.0.6 1version.
Request URL : https://localhost:9443/rm/reqif_oslc/import?componentURI=https://localhost:9443/rm/cm/component/_0ap4AGryEeiVzuQmixXetA
Method : POST Request Header : Accept: application/rdf+xml Oslc-Core-Version: 2.0 Content-Type: application/rdf+xml Configuration-Context: https://localhost:9443/rm/cm/stream/_kFjJQG1MEeiVzuQmixXetA UserMimeType: application/zip Basic Authentication: username and password Request Body: File in multipart format. Filename in octet stream. MultipartEntityBuilder builder = MultipartEntityBuilder.create(); builder.addTextBody("userMimeType", "application/zip", ContentType.TEXT_PLAIN); // This attaches the file to the POST: File f = new File(fileName); builder.addBinaryBody("file", new FileInputStream(f), ContentType.create("application/zip"), f.getName()); HttpEntity multipart = builder.build(); uploadRequestPost.setEntity(multipart);
Could anyone please help in finding the solution.
Thanks and regards,
Pavithra S
|
One answer
First thing that comes to mind looking at your info, is that DNG does not support basic authentication.
Is the request you are doing part of a sequence of request where your application is logged on?
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.