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
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
One answer
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).
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
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.
Comments
Ara Masrof
JAZZ DEVELOPER Oct 07 '13, 7:54 a.m.Geetha,
Jagadish R Rao
Oct 07 '13, 8:01 a.m.Ara Masrof,
1 vote
Ara Masrof
JAZZ DEVELOPER Oct 07 '13, 8:05 a.m.Jagadish,