It's all about the answers!

Ask a question

400 Bad request while uploading the ReqIFz file in 6.06.1 version


Pavithra Shivalingappa (128220) | asked Aug 28 '19, 1:20 a.m.
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



permanent link
Bas Bekker (1.4k4) | answered Aug 28 '19, 2:47 p.m.
JAZZ DEVELOPER
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?

Also, I assume you have seen this page: Rational DOORS Next Generation ReqIF API 1.0I

Your answer


Register or to post 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.