Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,221

Question asked: Aug 28 '19, 1:20 a.m.

Question was seen: 1,823 times

Last updated: Aug 28 '19, 2:47 p.m.

Related questions
Confirmation Cancel Confirm