Basic copy utility arguments
Hi, I'm struggling with the rqm copy utilty arguments. I'm just trying to do something really basic like copy a test plan from one project to another project on another server.
but I'm receiving errors like this:
5 answers
Looks like an issue logging into the source server. Check the user name/password. Also, the project area alias is used in the URLs:
Looks like an issue logging into the source server. Check the user name/password. Also, the project area alias is used in the URLs:
Alright, so if I pull the project feed as follows
https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects
For the source project, I see this
<id>https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects/Project+Area+to+verify+Template</id>;
<updated></updated>
<title type="text">N+1 RQM Team Project</title>
<summary type="text">Alias: Project+Area+to+verify+Template</summary>
<link href="https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects/Project+Area+to+verify+Template" rel="alternate" type="application/xml" title=""/>
<link href="https://server:9443/qm/web/console/N%2B1%20RQM%20Team%20Project" rel="enclosure" type="text/html" title="Web Console"/>
<content type="application/xml">
<ns2:project xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://purl.org/dc/terms/" xmlns:ns7="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns10="http://open-services.net/ns/core#" xmlns:ns11="http://open-services.net/ns/qm#" xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns13="http://www.w3.org/2002/07/owl#" xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns21="http://www.w3.org/1999/XSL/Transform">;
<ns3:identifier>https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects/Project+Area+to+verify+Template</ns3:identifier>;
<ns3:title>N+1 RQM Team Project</ns3:title>
<ns3:description>Alias: Project+Area+to+verify+Template</ns3:description>
<ns2:alias type="string">Project+Area+to+verify+Template</ns2:alias>
.
.
.
So I assume that the alias for this is Project+Area+to+verify+Template. After URI encoding that and adding it to the parameters I have:
-s="https://server:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Project%2BArea%2Bto%2Bverify%2BTemplate" -sc="https://server:9443/qm/oslc_config/resources/com.ibm.team.vvc.Configuration/_4kSlMLAZEeeKj9Ue-jeIAA" -us=user -pws=**** -d="https://server:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Tools%2Band%2BProcess -dc="https://server:9443/qm/oslc_config/resources/com.ibm.team.vvc.Configuration/_xZYWAaVKEeeJmM8rnaT5WQ" -a=testplan -l=importlog.txt -id=urn:com.ibm.rqm:testplan#479
When I run this, I see in the console output, but no log file is created.
19 Dec 2018 08:46:35,633-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context
19 Dec 2018 08:46:35,681-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: SSL_TLS SSLContext not available
19 Dec 2018 08:46:35,681-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Unable to create SSL_TLS context, trying SSLv3
19 Dec 2018 08:46:37,980-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Error logging in to source: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at com.ibm.rqm.ct.client.internal.JFSHttpsClient.login(JFSHttpsClient.java:100)
at com.ibm.rqm.ct.Application.run(CopyUtil.java:152)
at com.ibm.rqm.ct.CopyUtil.main(CopyUtil.java:43)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(Unknown Source)
... 16 more
19 Dec 2018 08:46:37,981-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.
19 Dec 2018 08:46:38,046-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Log out error (response code) - 0
Status Code:
Response Body:
19 Dec 2018 08:46:38,046-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the source server!
19 Dec 2018 08:46:38,046-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Rational Quality Manager server.
19 Dec 2018 08:46:38,118-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Log out error (response code) - 0
Status Code:
Response Body:
19 Dec 2018 08:46:38,118-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the destination server!
I did double check the user/password and they are correct.
Comments
The project alias is Project+Area+to+verify+Template, which is already URL-encoded (see https://jazz.net/wiki/bin/view/Main/RqmApi#projectAlias).
Alright, tried again with both source and destination corrected, still getting the SSL error.
I went into the java.security file and attempted commenting MD2 out. I'm still seeing SSL errors:
Attempting to start the command line adapter when TLS 1.2 is used and the -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" argument is not set will result in a connection handshake failure. If using TLS 1.2, ensure the -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" argument is included in order to ensure a successful connection.
Source: RQM Copy Utility readme.