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

I get RestException executing: PUT File Artifact, RC:302 when I try to copy the test plan from one RQM server to another

I am trying to copy the test plan from one server to another. I get the following exception while doing this

Oct 7, 2013 3:17:33 PM com.ibm.rqm.ct.util.Logger logInfoINFO: Attempting to create SSL_TLS context
Oct 7, 2013 3:17:44 PM com.ibm.rqm.ct.util.Logger logInfoINFO: Starting: testplan urn:com.ibm.rqm:testplan:408
Oct 7, 2013 3:17:53 PM com.ibm.rqm.ct.util.Logger logInfoINFO: Starting: attachment urn:com.ibm.rqm:attachment:30666
Oct 7, 2013 3:17:58 PM com.ibm.rqm.ct.util.Logger logInfoINFO: Authentication expired, relogin required
Oct 7, 2013 3:18:07 PM com.ibm.rqm.ct.util.Logger logErrorSEVERE: RestException executing: PUT File Artifact, RC: 302, message:
Oct 7, 2013 3:18:12 PM com.ibm.rqm.ct.util.Logger logErrorSEVERE: RestException executing: PUT File Artifact, RC: 302, message:
Oct 7, 2013 3:18:12 PM com.ibm.rqm.ct.util.Logger logErrorSEVERE: General REST Exception: RestException executing: PUT File Artifact, RC:
302, message:
Oct 7, 2013 3:18:12 PM com.ibm.rqm.ct.util.Logger logErrorSEVERE: FAILURE!
Disconnecting from the source IBM Rational Quality Manager server.
Disconnecting from the destination IBM Rational Quality Manager server.

Command used -
java -jar RQMCopyUtility.jar -s="https://source:9444/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ProjectA"
 -us=ADMIN -pws=ADMIN -a=testplan -id=urn:com.ibm.rqm:testplan:XXX -ud=ADMIN
 -pwd=ADMIN -d="https://target:9675/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ProjectB - Predictive Maintenance & Quality (Quality Management)" -l=importlog.txt

RQM version of source server - 4.0.2
RQM version of target server - 4.0.3

0 votes

Comments

Geetha,

One thing worth noting, the Copy Utility is built on the RQM Reportable REST API, which is not compatible between Rational Quality Manager versions.
 There are several differences between the Rational Quality Manager 4.0.2 and 4.0.3 XML schemas.



Ara Masrof,


It was not the RQM version problem. As the HTTP (PUT) response was 302 .. it was meaning there was some redirection happening , something in URI needs fixing . so replacing the hostname with IP did the trick and it is now running fine :-) 
Jagadish

1 vote

Jagadish,

Sorry for the confusion, my comment was not directed at the issue,  but rather as a general "Best Practices" when using the Copy Utility tool.
If you are copy assents across different version, there is potential for data corruption issues.

Ara



One answer

Permanent link
Are you using a proxy server?  For some reason, the RQM Copy Utility cannot update (PUT request) the attachment since it's temporarily redirecting.  Can you GET the following using Poster/HTTP Requester:

https://<host>:<port>/<context root>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project area alias>/attachment/urn:com.ibm.rqm:attachment:30666?abbreviate=false

Accept: application/xml

Note:https://jazz.net/wiki/bin/view/Main/RqmApi#ResourcesFootnote6.

Note, the source/target servers must be the same version (see https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#Compatibility).

0 votes

Comments

Paul,

No we are not using any proxy server and this is on our intranet only probability could be that the RQM server is in different Geo and this could have resulted in some redirection happening when we used hostname , with IP RQMUtility was able to copy all the artifacts without any issues . 

but surprisingly if i invoke the REST url  from browser I can see all the test artifacts whether it be plan or test cases

Jagadish 
 

Hi Jagadish,

After reviewing the RQM Copy Utility code, the utility does not support redirects (302) for resource requests (only the login operation).  Please open a RQM defect.

When RQM is in different Geo, I suppose you need to have an DNS entry in your local host file.

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

Question asked: Oct 07 '13, 6:08 a.m.

Question was seen: 4,666 times

Last updated: Oct 08 '13, 8:27 p.m.

Confirmation Cancel Confirm