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>
15 answers
Can you log into RQM with the same username/password? Does your test case have any requirements?
Note, "INFO: Redirect requested but followRedirects is disabled" is not an error/warning, but an informational message that the HTTP client has disabled followRedirects, which should not be an issue.
Note, "INFO: Redirect requested but followRedirects is disabled" is not an error/warning, but an informational message that the HTTP client has disabled followRedirects, which should not be an issue.
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.
Yes, I can manually log into the UI and then use Poster to GET the feed.
However, if I logout RQM and input the same user and password in Poster's User Auth form, I got exactly the same problem - get HTML code for login page.
I tried to look at the system log in https://ecdclm.ottawa.ibm.com:9445/qm/service/com.ibm.team.repository.common.internal.IFeedService?category=SystemLog, but it is empty. I guess I have to ask the admin to enable the logs for me.
I guess it is just an authentication problem, do you have any idea what might caused it?
However, if I logout RQM and input the same user and password in Poster's User Auth form, I got exactly the same problem - get HTML code for login page.
I tried to look at the system log in https://ecdclm.ottawa.ibm.com:9445/qm/service/com.ibm.team.repository.common.internal.IFeedService?category=SystemLog, but it is empty. I guess I have to ask the admin to enable the logs for me.
I guess it is just an authentication problem, do you have any idea what might caused it?
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.
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.
Thanks Paul, I tried the new version (3.0.1.1) of the RQM Utility, and now it works fine.
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.
I tried this and I get
<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/",
locale: "en-us",
localizationComplete: true
};
/*null*/
net = {jazz: {ajax: {}}};
net.jazz.ajax._contextRoot = "/jazz";
net.jazz.ajax._webuiPrefix = "/web/";
</script>
<script></script>
<script>
/* <CDATA> */
</script>
<script>
/* <CDATA> */
</script>
</body>
Has this been re-introduced or is this Javascript error a problem that is fixed by something else - because I get the same error when I use curl.
<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/",
locale: "en-us",
localizationComplete: true
};
/*null*/
net = {jazz: {ajax: {}}};
net.jazz.ajax._contextRoot = "/jazz";
net.jazz.ajax._webuiPrefix = "/web/";
</script>
<script></script>
<script>
/* <CDATA> */
</script>
<script>
/* <CDATA> */
</script>
</body>
Has this been re-introduced or is this Javascript error a problem that is fixed by something else - because I get the same error when I use curl.
Thanks Paul, I tried the new version (3.0.1.1) of the RQM Utility, and now it works fine.
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.
page 1of 1 pagesof 2 pages