aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-02-16 16:16:33 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-02-16 16:16:33 +0100
commitd448b16f969be780444190d178dad4c8b2347612 (patch)
tree70518229a92bf0e7b5cdc2497bd59356de1d47a3 /data
parent10dcf8de5c6965832452c538451d6170b3bafb66 (diff)
downloadbugzilla-triage-d448b16f969be780444190d178dad4c8b2347612.tar.gz
Fix the password recognition.
* doh! !== instead of === * also skip attachment.cgi page
Diffstat (limited to 'data')
-rw-r--r--data/bzpage.js1
-rw-r--r--data/rhbzpage.js12
2 files changed, 3 insertions, 10 deletions
diff --git a/data/bzpage.js b/data/bzpage.js
index c71ab51..7d59f22 100644
--- a/data/bzpage.js
+++ b/data/bzpage.js
@@ -24,6 +24,7 @@ var submitHandlerInstalled = false; // for setUpLogging
* central handler processing messages from the main script.
*/
onMessage = function onMessage(msg) {
+ console.log("onMessage - incoming : msg.cmd = " + msg.cmd);
switch (msg.cmd) {
case "ReloadThePage":
document.location.reload(true);
diff --git a/data/rhbzpage.js b/data/rhbzpage.js
index f0347d7..3eaed66 100644
--- a/data/rhbzpage.js
+++ b/data/rhbzpage.js
@@ -156,6 +156,8 @@ function addAttachmentCallback(resp) {
function addAttachment(data, callback, param) {
var params = [];
+ console.log("addAttachment : constantData.passwordState.passAvailable = " +
+ constantData.passwordState.passAvailable);
if (!constantData.passwordState.passAvailable) {
console.log("addAttachment : No password, no XML-RPC calls; sorry");
return null;
@@ -343,16 +345,6 @@ function addCheckShowLink(oldAtt, snippet) {
*/
function markBadAttachments(atts) {
var badMIMEArray = [ "application/octet-stream", "text/x-log", "undefined" ];
-/* FIXME
-error: An exception occurred.
-Traceback (most recent call last):
- File "/home/matej/archiv/2011/projekty/bugzilla-triage/data/bzpage.js", line 1005, in
- File "/home/matej/archiv/2011/projekty/bugzilla-triage/data/bzpage.js", line 998, in startup
- File "/home/matej/archiv/2011/projekty/bugzilla-triage/data/rhbzpage.js", line 915, in RHBZinit
- File "/home/matej/archiv/2011/projekty/bugzilla-triage/data/rhbzpage.js", line 344, in markBadAttachments
-TypeError: "use strict";constantData.passwordState is undefined
-*/
- // FIXME this should work
console.log("markBadAttachments : constantData.passwordState.toSource() = " +
constantData.passwordState.toSource());
if (!constantData.passwordState.passAvailable) {