authentication problem when using RQMUrlUtility
I tried to use RQMUrlUtility to GET a list of test cases, but seems it couldn't pass authentication. I provided my user name and password correctly in command line argument, but all I got was the HTML code from user login page. Could anyone help me to solve this problem?
I downloaded RQMUrlUtility 3.0.1 and RQM version is also 3.0.1
The command I issued is:
java -jar RQMUrlUtility.jar -command GET -user bobwang@ca.ibm.com -password xxxxxxxx -context qm -filepath d:\\listc.xml -url https://ecdclm.ottawa.ibm.com:9445/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WebSphere+Commerce+(Quality+Management)/testcase
the standard output is:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<<<<<RQMUrlUtility>>>>>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RQMUrlUtility: Connected to https://ecdclm.ottawa.ibm.com:9445 using project "We
bSphere+Commerce+(Quality+Management)"
Oct 7, 2011 11:22:01 AM org.apache.commons.httpclient.HttpMethodDirector isRedir
ectNeeded
INFO: Redirect requested but followRedirects is disabled
RQMUrlUtility: Calling method to retrieve XML from a specified URL
RQMUrlUtility: Server Response code: 200
Oct 7, 2011 11:22:01 AM org.apache.commons.httpclient.HttpMethodBase getResponse
Body
WARNING: Going to buffer response body of large or unknown size. Using getRespon
seBodyAsStream instead is recommended.
RQMUrlUtility: XML string retrieved from URL : "https://ecdclm.ottawa
.ibm.com:9445/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationServ
ice/resources/WebSphere+Commerce+(Quality+Management)/testcase " is written to f
ile located at -: " d:\\listc.xml "
looks like everything is fine except "INFO: Redirect requested but followRedirects is disabled", not sure if this is an issue.
And when I opened file d:\listc.xml, I found all I get was the HTML file from the user login page.
<!DOCTYPE html>
<!--
Licensed Materials - Property of IBM
(c) Copyright IBM Corporation 2005-2010. All Rights Reserved.
Note to U.S. Government Users Restricted Rights:
Use, duplication or disclosure restricted by GSA ADP Schedule
Contract with IBM Corp.
-->
<html >
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8">
<title></title>
<link type="text/css" rel="stylesheet" href="/qm/web/_style/?include=A~&etag=suwYll5R_en_US&_proxyURL=%2Fqm">
<link rel="shortcut icon" href="/qm/web/net.jazz.ajax/jazz.ico">
<style type="text/css">
#net-jazz-ajax-NoScriptMessage {
width: 100%;
color: #D0D0D0;
font-size: 2em;
text-align: center;
position: absolute;
top: 1%;
z-index: 999;
}
</style>
</head>
<body class="tundra">
<noscript><div id="net-jazz-ajax-NoScriptMessage">Javascript is either disabled or not available in your Browser</div></noscript>
<div id="net-jazz-ajax-InitialLoadMessage">Loading...</div>
<div id="net-jazz-ajax-WorkbenchRoot"></div>
<script type="text/javascript">
djConfig = {
isDebug: false,
usePlainJson: true,
baseUrl: "/qm/web/dojo/",
locale: "en-us",
localizationComplete: true
};
/*null*/
net = {jazz: {ajax: {}}};
net.jazz.ajax._contextRoot = "/qm";
net.jazz.ajax._webuiPrefix = "/web/";
</script>
<script type="text/javascript" src="/qm/web/_js/?include=A~&etag=suwYll5R_en_US"></script>
<script type="text/javascript">
/* <!;
net.jazz.ajax._rootServices = 'https://ecdclm.ottawa.ibm.com:9445/qm/rootservices';
net.jazz.ajax._storageService = 'https://ecdclm.ottawa.ibm.com:9445/qm/storage';
net.jazz.ajax._queryService = 'https://ecdclm.ottawa.ibm.com:9445/qm/query';
net.jazz.ajax._infoCenterRoot = 'https://ecdclm.ottawa.ibm.com:9445/qm/../clmhelp';
net.jazz.ajax._oauthRealmName = 'Jazz';
net.jazz.ajax._viewletServiceRoot = 'https://ecdclm.ottawa.ibm.com:9445/qm';
net.jazz.ajax._viewletWebUIRoot = 'https://ecdclm.ottawa.ibm.com:9445/qm';
net.jazz.ajax._hasLocalRepository = true;
net.jazz.ajax._proxyLegacyMode = false;
net.jazz.ajax._oauthDomains = ;
net.jazz.ajax._friendDomains = ;
/* ]]> */
</script>
<script type="text/javascript">
/* <!]> */
</script>
</body>
</html>
I downloaded RQMUrlUtility 3.0.1 and RQM version is also 3.0.1
The command I issued is:
the standard output is:
<<<<<RQMUrlUtility>>>>>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RQMUrlUtility: Connected to https://ecdclm.ottawa.ibm.com:9445 using project "We
bSphere+Commerce+(Quality+Management)"
Oct 7, 2011 11:22:01 AM org.apache.commons.httpclient.HttpMethodDirector isRedir
ectNeeded
INFO: Redirect requested but followRedirects is disabled
RQMUrlUtility: Calling method to retrieve XML from a specified URL
RQMUrlUtility: Server Response code: 200
Oct 7, 2011 11:22:01 AM org.apache.commons.httpclient.HttpMethodBase getResponse
Body
WARNING: Going to buffer response body of large or unknown size. Using getRespon
seBodyAsStream instead is recommended.
RQMUrlUtility: XML string retrieved from URL : "https://ecdclm.ottawa
.ibm.com:9445/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationServ
ice/resources/WebSphere+Commerce+(Quality+Management)/testcase " is written to f
ile located at -: " d:\\listc.xml "
looks like everything is fine except "INFO: Redirect requested but followRedirects is disabled", not sure if this is an issue.
And when I opened file d:\listc.xml, I found all I get was the HTML file from the user login page.
<!--
Licensed Materials - Property of IBM
(c) Copyright IBM Corporation 2005-2010. All Rights Reserved.
Note to U.S. Government Users Restricted Rights:
Use, duplication or disclosure restricted by GSA ADP Schedule
Contract with IBM Corp.
-->
<html >
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8">
<title></title>
<link type="text/css" rel="stylesheet" href="/qm/web/_style/?include=A~&etag=suwYll5R_en_US&_proxyURL=%2Fqm">
<link rel="shortcut icon" href="/qm/web/net.jazz.ajax/jazz.ico">
<style type="text/css">
#net-jazz-ajax-NoScriptMessage {
width: 100%;
color: #D0D0D0;
font-size: 2em;
text-align: center;
position: absolute;
top: 1%;
z-index: 999;
}
</style>
</head>
<body class="tundra">
<noscript><div id="net-jazz-ajax-NoScriptMessage">Javascript is either disabled or not available in your Browser</div></noscript>
<div id="net-jazz-ajax-InitialLoadMessage">Loading...</div>
<div id="net-jazz-ajax-WorkbenchRoot"></div>
<script type="text/javascript">
djConfig = {
isDebug: false,
usePlainJson: true,
baseUrl: "/qm/web/dojo/",
locale: "en-us",
localizationComplete: true
};
/*null*/
net = {jazz: {ajax: {}}};
net.jazz.ajax._contextRoot = "/qm";
net.jazz.ajax._webuiPrefix = "/web/";
</script>
<script type="text/javascript" src="/qm/web/_js/?include=A~&etag=suwYll5R_en_US"></script>
<script type="text/javascript">
/* <!;
net.jazz.ajax._rootServices = 'https://ecdclm.ottawa.ibm.com:9445/qm/rootservices';
net.jazz.ajax._storageService = 'https://ecdclm.ottawa.ibm.com:9445/qm/storage';
net.jazz.ajax._queryService = 'https://ecdclm.ottawa.ibm.com:9445/qm/query';
net.jazz.ajax._infoCenterRoot = 'https://ecdclm.ottawa.ibm.com:9445/qm/../clmhelp';
net.jazz.ajax._oauthRealmName = 'Jazz';
net.jazz.ajax._viewletServiceRoot = 'https://ecdclm.ottawa.ibm.com:9445/qm';
net.jazz.ajax._viewletWebUIRoot = 'https://ecdclm.ottawa.ibm.com:9445/qm';
net.jazz.ajax._hasLocalRepository = true;
net.jazz.ajax._proxyLegacyMode = false;
net.jazz.ajax._oauthDomains = ;
net.jazz.ajax._friendDomains = ;
/* ]]> */
</script>
<script type="text/javascript">
/* <!]> */
</script>
</body>
</html>
3 answers
Can you log into the UI and use https://jazz.net/wiki/bin/view/Main/RQMUsingPoster to GET the following URL:
https://ecdclm.ottawa.ibm.com:9445/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WebSphere+Commerce+(Quality+Management)/testcase?abbreviate=false&calmlinks=true
See https://jazz.net/wiki/bin/view/Main/RqmApi#Read for more details (including headers/etc.).
Also, check the server logs for any errors (https://jazz.net/wiki/bin/view/Main/RqmApi#Troubleshooting).
If you want to add me (paules@ca.ibm.com) as a user, I can try myself.
https://ecdclm.ottawa.ibm.com:9445/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WebSphere+Commerce+(Quality+Management)/testcase?abbreviate=false&calmlinks=true
See https://jazz.net/wiki/bin/view/Main/RqmApi#Read for more details (including headers/etc.).
Also, check the server logs for any errors (https://jazz.net/wiki/bin/view/Main/RqmApi#Troubleshooting).
If you want to add me (paules@ca.ibm.com) as a user, I can try myself.
Comments
Bob, this appears to be a defect with the URL Utility. Note, authentication using Poster does not always work as expected with RQM.
Before opening a defect (https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.newWorkItem - include an custom configuration to the RQM install), can you try the RQM 3.0.1.1 version of the RQM Utility (contains several fixes):
https://jazz.net/downloads/rational-quality-manager/releases/3.0.1.1?p=allDownloads
As a work-around, please use Poster.
I would be interested in getting access to the machine to debug further.
Before opening a defect (https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.newWorkItem - include an custom configuration to the RQM install), can you try the RQM 3.0.1.1 version of the RQM Utility (contains several fixes):
https://jazz.net/downloads/rational-quality-manager/releases/3.0.1.1?p=allDownloads
As a work-around, please use Poster.
I would be interested in getting access to the machine to debug further.
Comments
This correct URL is:
https://jazz.net/wiki/bin/view/Main/RQMURLUtility
The comma was appended to the URL.
Please follow the usage examples:
https://jazz.net/wiki/bin/view/Main/RQMURLUtility#Sample_command_line_arguments
https://jazz.net/wiki/bin/view/Main/RQMURLUtility
The comma was appended to the URL.
Please follow the usage examples:
https://jazz.net/wiki/bin/view/Main/RQMURLUtility#Sample_command_line_arguments
Comments
Bob Wang
Jan 11 '16, 8:18 p.m.Athanasios Karapantelakis
Jan 11 '16, 8:20 p.m.Paul Slauenwhite
FORUM MODERATOR / JAZZ DEVELOPER Jan 11 '16, 8:21 p.m.Paul Slauenwhite
FORUM MODERATOR / JAZZ DEVELOPER Jan 11 '16, 8:21 p.m.Bob Wang
Jan 11 '16, 8:21 p.m.Paul Slauenwhite
FORUM MODERATOR / JAZZ DEVELOPER Jan 11 '16, 8:14 p.m.James McLaughlin
Jan 11 '16, 8:13 p.m.