It's all about the answers!

Ask a question

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


Geetha Rh Murthy (1111) | asked Oct 07 '13, 6:08 a.m.
edited Oct 07 '13, 6:21 a.m.
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


Comments
Ara Masrof commented Oct 07 '13, 7:54 a.m.
JAZZ DEVELOPER

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.




1
Jagadish R Rao commented Oct 07 '13, 8:01 a.m.

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


Ara Masrof commented Oct 07 '13, 8:05 a.m.
JAZZ DEVELOPER

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
Paul Slauenwhite (8.4k12) | answered Oct 07 '13, 9:55 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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).

Comments
Jagadish R Rao commented Oct 07 '13, 10:41 a.m.

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 
 


Paul Slauenwhite commented Oct 08 '13, 11:14 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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.


Don Yang commented Oct 08 '13, 8:27 p.m.

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

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.