aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rhlib/addAttachmentRow.js15
-rw-r--r--data/rhlib/fixingAttMIME.js5
-rw-r--r--data/tweaks/bug-page-mod.js1
3 files changed, 10 insertions, 11 deletions
diff --git a/data/rhlib/addAttachmentRow.js b/data/rhlib/addAttachmentRow.js
index 9baa373..850d417 100644
--- a/data/rhlib/addAttachmentRow.js
+++ b/data/rhlib/addAttachmentRow.js
@@ -5,7 +5,7 @@
// FIXME resp is JSON, not XML anymore
function addAttachmentCallback(resp) {
var newAttachID = parseInt(
- resp.params.param.value.array.data.value.int, 10);
+ resp.params.param.value.array.ids.value.int, 10);
// FIXME callback.call(param, newAttachID, data.length);
}
@@ -42,14 +42,13 @@ function addAttachment(data, callback, param) {
}
var params = {
- id : getBugNo(),
- description : titleParsedAttachment,
- filename : "parsed-backtrace.txt",
- contenttype : "text/plain",
- data : window.btoa(data),
- nomail : true
+ ids : [getBugNo()],
+ summary : titleParsedAttachment,
+ file_name : "parsed-backtrace.txt",
+ content_type : "text/plain",
+ data : window.btoa(data)
};
- makeJSONRPCCall("bugzilla.addAttachment", params, addAttachmentCallback);
+ makeJSONRPCCall("Bug.add_attachment", params, addAttachmentCallback);
reqCounter++;
}
diff --git a/data/rhlib/fixingAttMIME.js b/data/rhlib/fixingAttMIME.js
index 56e10ba..dceb47d 100644
--- a/data/rhlib/fixingAttMIME.js
+++ b/data/rhlib/fixingAttMIME.js
@@ -63,8 +63,8 @@ function fixAttachById(bugId, id, type, email) {
email = 0;
}
- // https://bugzilla.redhat.com/\
- // docs/en/html/api/extensions/compat_xmlrpc/code/webservice.html
+ // https://bugzilla.redhat.com/docs/en/html/api/extensions/RedHat\
+ // /lib/WebService/Bugzilla.html
// test on https://bugzilla.redhat.com/show_bug.cgi?id=485145
var params = {
'id': bugId,
@@ -73,7 +73,6 @@ function fixAttachById(bugId, id, type, email) {
'nomail' : email
};
- // makeJSONRPCCall("bugzilla.updateAttachMimeType", params, XMLRPCcallback);
makeJSONRPCCall("RedHat.updateAttachMimeType", params, XMLRPCcallback);
reqCounter++;
}
diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js
index d9a1719..59444ea 100644
--- a/data/tweaks/bug-page-mod.js
+++ b/data/tweaks/bug-page-mod.js
@@ -183,6 +183,7 @@ function processHistory(history) {
// preprocessDuplicateMarkers(document, iframe.contentDocument);
/*
+ * FIXME Perhaps not correct in bugzilla 4.4
* This is an example of the history we get: { "version": "1.1", "result": {
* "bugs": [ { "history": [ { "when": "2011-04-04T00:19:04Z", "who":
* "cebbert@redhat.com", "changes": [ { "removed": "", "added":