aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libbugzilla.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-02-17 18:15:57 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-02-17 18:15:57 +0100
commit66275e3a326dc771c04cb6fbfdee68f09b66ee6c (patch)
tree656776034af77dbd7e13881a7f746e42908df1fa /lib/libbugzilla.js
parent180be96ea28f4c9e6507f5e018f39e117480667b (diff)
downloadbugzilla-triage-66275e3a326dc771c04cb6fbfdee68f09b66ee6c.tar.gz
Make queryLocal and XML-RPC generally work again.
Diffstat (limited to 'lib/libbugzilla.js')
-rw-r--r--lib/libbugzilla.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js
index 2ec69a6..d30a025 100644
--- a/lib/libbugzilla.js
+++ b/lib/libbugzilla.js
@@ -87,7 +87,7 @@ function getPassword(login, domain) {
// pass === null means no appropriatjslie password in the storage
if (!preferences.get(prefName,false) && (pass === null)) {
- passwordText = prompts.promptPassword(passPrompt);
+ var passwordText = prompts.promptPassword(passPrompt);
if (passwordText && passwordText.length > 0) {
passUtils.setLogin(login, passwordText, domain,
BTSPassRealm);
@@ -262,6 +262,8 @@ exports.makeXMLRPCCall = function makeXMLRPCCall(url, login, method, params, cal
if (!passwObj.password) {
return null; // TODO this should happen, only when user presses Escape in password prompt
}
+ console.log("makeXMLRPCCall :\n\turl = " + url + "\n\tlogin = " + login + "\n\tmethod = " +
+ method + "\n\tparams = " + params.toSource() + "\n\tcallback = " + callback.toSource());
var msg = new xrpc.XMLRPCMessage(method);
params.forEach(function (par) {
@@ -275,7 +277,7 @@ exports.makeXMLRPCCall = function makeXMLRPCCall(url, login, method, params, cal
onComplete: function(response) {
if (response.status == 200) {
var resp = parseXMLfromString(response.text);
- callback(resp);
+ callback(resp.toXMLString());
}
},
content: msg.xml(),