It's all about the answers!

Ask a question

RQM CopyUtility 403 error


Xue Qin Tang (7153) | asked Aug 09 '11, 1:11 a.m.
We are using RQM CopyUtility to copy all artifact from one RQM server (2.0.1) to another RQM server 3.0.1.

Error message:

D:\Work\Build team\RQM\RQM-Extras-RQMCopyUtil-3.0.1>java -jar RQMCopyUtility.jar
-s="https://***.cn.ibm.com:9444/jazz/secure/service/com.ibm.rqm.integratio
n.service.IIntegrationService/resources/Lotus Concord" -us=**** -pw
s=**** -d="https://***.swg.usma.ibm.com:9443/qm/secure/service/com.ibm.r
qm.integration.service.IIntegrationService/resources/Lotus Concord(Testing)" -l=
importlog.txt
2011-8-9 11:35:55 org.apache.commons.httpclient.HttpMethodDirector isRedirectNee
ded
INFO: Redirect requested but followRedirects is disabled
2011-8-9 11:35:57 org.apache.commons.httpclient.HttpMethodDirector isRedirectNee
ded
INFO: Redirect requested but followRedirects is disabled
2011-8-9 11:35:58 com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting processing of artifact type: remotescript
2011-8-9 11:35:58 com.ibm.rqm.ct.util.Logger logInfo
INFO: Reading feed for artifact type: remotescript
2011-8-9 11:35:58 org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getRespon
seBodyAsStream instead is recommended.
2011-8-9 11:35:58 com.ibm.rqm.ct.util.Logger logInfo
INFO: Done reading feed for artifact type: remotescript
2011-8-9 11:35:58 com.ibm.rqm.ct.util.Logger logInfo
INFO: Ending processing of artifact type: remotescript
2011-8-9 11:35:58 com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting processing of artifact type: requirement
2011-8-9 11:35:58 com.ibm.rqm.ct.util.Logger logInfo
INFO: Reading feed for artifact type: requirement
2011-8-9 11:35:58 org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getRespon
seBodyAsStream instead is recommended.
2011-8-9 11:35:58 com.ibm.rqm.ct.util.Logger logInfo
INFO: Done reading feed for artifact type: requirement
2011-8-9 11:35:58 com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: requirement urn:com.ibm.rqm:requirement:2441
2011-8-9 11:36:00 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 403, retry #: 0
2011-8-9 11:36:05 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 403, retry #: 1
2011-8-9 11:36:08 org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getRespon
seBodyAsStream instead is recommended.
2011-8-9 11:36:08 com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: PUT, RC: 403, message: Error 403: SRVE0295E: Er
ror reported: 403


I can access the url in comman directly.

Could you please help to check?

17 answers



permanent link
Xue Qin Tang (7153) | answered Aug 15 '11, 11:55 p.m.
No other test plans copied over when using the -f parameter.

xml:
<DOCTYPE>

<Licensed>

<html>

<head>
<meta>
<meta>
<title>Loading...</title>

<link>


<link></link>

<style>
#net-jazz-ajax-NoScriptMessage {
width: 100%;
color: #D0D0D0;
font-size: 2em;
text-align: center;
position: absolute;
top: 45%;
z-index: 999;
}
</style>

<if>
<style>
body {
width: expression(documentElement.clientWidth < 860 ? "860px": "" );
}
</style>
<endif>

</head>

<body>
<noscript><div>Javascript is either disabled or not available in your Browser</div></noscript>
<div>Loading...</div>
<div></div>

<script>
djConfig = {isDebug: false, usePlainJson: true, baseUrl: "/jazz/web/dojo/"};
net = {jazz: {ajax: {}}};
net.jazz.ajax._contextRoot = "/jazz";
net.jazz.ajax._webuiPrefix = "/web/";
</script>

<script></script>

<script>
dojo.require("net.jazz.ajax.ui.PlatformUI");
</script>

<script>
/* <CDATA> */
</script>



<script>
/* <CDATA> */
</script>
</body>
</html>

JSON:
<DOCTYPE>

<Licensed>

<html>

<head>
<meta>
<meta>
<title>Loading...</title>

<link>


<link></link>

<style>
#net-jazz-ajax-NoScriptMessage {
width: 100%;
color: #D0D0D0;
font-size: 2em;
text-align: center;
position: absolute;
top: 45%;
z-index: 999;
}
</style>

<if>
<style>
body {
width: expression(documentElement.clientWidth < 860 ? "860px": "" );
}
</style>
<endif>

</head>

<body>
<noscript><div>Javascript is either disabled or not available in your Browser</div></noscript>
<div>Loading...</div>
<div></div>

<script>
djConfig = {isDebug: false, usePlainJson: true, baseUrl: "/jazz/web/dojo/"};
net = {jazz: {ajax: {}}};
net.jazz.ajax._contextRoot = "/jazz";
net.jazz.ajax._webuiPrefix = "/web/";
</script>

<script></script>

<script>
dojo.require("net.jazz.ajax.ui.PlatformUI");
</script>

<script>
/* <CDATA> */
</script>



<script>
/* <CDATA> */
</script>
</body>
</html>



It appears that the test plan's test environment is corrupt (null):

INFO: Starting: configuration null

Can you GET test plan https://**.cn.ibm.com:9444/jazz/secure/service/com.ibm.rqm.integratio
n.service.IIntegrationService/resources/Lotus Concord/testplan/urn:com.ibm.rqm:testplan:241?abbreviate=false&calmlinks=true using the RQM Reportable REST API (see https://jazz.net/wiki/bin/view/Main/RqmApi#Common_Usage_Scenarios) and post the JSON/XML?

Do any other test plans copy over when using the -f parameter?

permanent link
Paul Slauenwhite (8.4k12) | answered Aug 16 '11, 7:04 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Looks like there is an issue with the -f parameter, unless all the test plans suffer from the same symptom.

The XML/JSON is not correct. Please log into RQM FIRST (via the browser) and use Poster (see https://jazz.net/wiki/bin/view/Main/RQMUsingPoster) to GET the test plan:

URL: https://**.cn.ibm.com:9444/jazz/secure/service/com.ibm.rqm.integratio
n.service.IIntegrationService/resources/Lotus Concord/testplan/urn:com.ibm.rqm:testplan:241?abbreviate=false&calmlinks=true

Header:
Name: Accept
Value: application/json

permanent link
Xue Qin Tang (7153) | answered Aug 16 '11, 10:35 p.m.
{

"testplan" : {

"testcase" : ,
"state" : "com.ibm.rqm.planning.common.new",
"category" : ,
"owner" : "unassigned",
"configuration" : ,
"creator" : "jiangyg@cn.ibm.com",
"alias" : "urn:com.ibm.rqm:testplan:241",
"updated" : "2011-02-14T03:11:39.369Z",
"identifier" : "https:\/\/**.cn.ibm.com:9444\/jazz\/secure\/service\/com.ibm.rqm.integration.service.IIntegrationService\/resources\/Lotus+Concord\/testplan\/urn:com.ibm.rqm:testplan:241",
"platformcoverage" : {

"catalogType" : ,
"name" : "Browsers",
"template" : "SoftwareInstall",
"partname" : "Browsers",
"path" : ,
"id" : "Browsers"
}
,
{

"values" : ,
"name" : "OperatingSystem",
"template" : "OperatingSystem",
"partname" : "OperatingSystem",
"path" : ,
"id" : "OperatingSystem"
}
,
{

"values" : ,
"name" : "Edit Mode",
"template" : "Edit Mode",
"partname" : "Edit Mode",
"path" : ,
"id" : "Edit Mode"
}

]
}
,
"title" : "test plan_TP3",
"template" : {
"href" : "https:\/\/**.cn.ibm.com:9444\/jazz\/secure\/service\/com.ibm.rqm.integration.service.IIntegrationService\/resources\/Lotus+Concord\/template\/testplan\/com.ibm.rqm.planning.templates.testplan.template_1295924376729"
}
,
"webId" : "241",
"description" : true }
}


Looks like there is an issue with the -f parameter, unless all the test plans suffer from the same symptom.

The XML/JSON is not correct. Please log into RQM FIRST (via the browser) and use Poster (see https://jazz.net/wiki/bin/view/Main/RQMUsingPoster) to GET the test plan:

URL: https://**.cn.ibm.com:9444/jazz/secure/service/com.ibm.rqm.integratio
n.service.IIntegrationService/resources/Lotus Concord/testplan/urn:com.ibm.rqm:testplan:241?abbreviate=false&calmlinks=true

Header:
Name: Accept
Value: application/json

permanent link
Paul Slauenwhite (8.4k12) | answered Aug 17 '11, 7:41 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Looks like the ID (https://jazz.net/wiki/bin/view/Main/RqmApi#id) of the test plan's test environment (called configuration - see https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op) is null:

https:\/\/**.cn.ibm.com:9444\/jazz\/secure\/service\/com.ibm.rqm.integration.service.IIntegrationService\/resources\/Lotus+Concord\/configuration\/null

How were these test environments added to the test plan? Do they appear correct in the RQM 2.0.1 UI?

You will have to remove these test environments from the test plan(s) before using the RQM Copy Utility.

permanent link
Xue Qin Tang (7153) | answered Aug 18 '11, 2:35 a.m.
The test environments was using Generate New Test Env button => seletct OS, Browser, Edit Mode => then they will be generated automatically.

From RQM UI, they look good.

Looks like the ID (https://jazz.net/wiki/bin/view/Main/RqmApi#id) of the test plan's test environment (called configuration - see https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op) is null:

https:\/\/**.cn.ibm.com:9444\/jazz\/secure\/service\/com.ibm.rqm.integration.service.IIntegrationService\/resources\/Lotus+Concord\/configuration\/null

How were these test environments added to the test plan? Do they appear correct in the RQM 2.0.1 UI?

You will have to remove these test environments from the test plan(s) before using the RQM Copy Utility.

permanent link
Paul Slauenwhite (8.4k12) | answered Aug 18 '11, 7:37 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
I cannot reproduce this behavior in RQM 2.0.1.1 iFix3 (latest RQM 2.x fixpack). Since the Generate Test Environments wizards has been changed in RQM 2.0.1.1 iFix3, I would suspect the problem has since been fixed.

To work-around the issue, you will have to remove these test environments from the test plan(s) before using the RQM Copy Utility.

permanent link
Xue Qin Tang (7153) | answered Aug 19 '11, 1:29 a.m.
Thanks for the help very much~~

I cannot reproduce this behavior in RQM 2.0.1.1 iFix3 (latest RQM 2.x fixpack). Since the Generate Test Environments wizards has been changed in RQM 2.0.1.1 iFix3, I would suspect the problem has since been fixed.

To work-around the issue, you will have to remove these test environments from the test plan(s) before using the RQM Copy Utility.

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.