Closed
Bug 186257
Opened 22 years ago
Closed 22 years ago
Creation of XMLRPC string broken.
Categories
(Core :: XML, defect)
Core
XML
Tracking
()
RESOLVED
FIXED
People
(Reporter: ami.ganguli, Assigned: samuel)
Details
(Whiteboard: fixed1.3)
Attachments
(1 file)
836 bytes,
patch
|
hjtoi-bugzilla
:
review+
darin.moz
:
superreview+
asa
:
approval1.3+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20021217
Creating a XMLRPC call with a string parameter fail, throwing an exception here:
obj=obj.QueryInterface(Components.interfaces['nsISupports' + sType]);
sType should be "CString", but in fact it's "String". The value originates from
the _typeOf method.
Reproducible: Always
Steps to Reproduce:
I'm still fumbling around trying to figure out how things work, but this appears
to be the fix:
--- mozilla-20.12.2002/extensions/xml-rpc/src/nsXmlRpcClient.js Wed Dec 4
09:59:57 2002
+++ mozilla/extensions/xml-rpc/src/nsXmlRpcClient.js Fri Dec 20 10:52:40
2002@@ -476,7 +476,7 @@
break;
case 'Char':
- case 'String':
+ case 'CString':
obj=obj.QueryInterface(Components.interfaces['nsISupports' +
sType]);
writer.startElement('string');
@@ -586,7 +586,7 @@
try {
obj.QueryInterface(Components.interfaces.nsISupportsCString);
- return 'String';
+ return 'CString';
} catch(e) {}
try {
Samuel is the owner of XML-RPC, reassigning.
Assignee: heikki → samuel
Assignee | ||
Updated•22 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 2•22 years ago
|
||
Sorry for the delay. I thought I had fixed all the string breakage.
Assignee | ||
Updated•22 years ago
|
Attachment #116407 -
Flags: superreview?(darin)
Attachment #116407 -
Flags: review?(heikki)
Updated•22 years ago
|
Attachment #116407 -
Flags: review?(heikki) → review+
Comment 3•22 years ago
|
||
Comment on attachment 116407 [details] [diff] [review]
fix strings
rs=darin
Attachment #116407 -
Flags: superreview?(darin) → superreview+
Assignee | ||
Updated•22 years ago
|
Attachment #116407 -
Flags: approval1.3?
Assignee | ||
Comment 4•22 years ago
|
||
Checked into the trunk.
If this landed, this can then be marked fixed, so doing that now.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 6•22 years ago
|
||
Comment on attachment 116407 [details] [diff] [review]
fix strings
a=asa (on behalf of drivers) for checkin to 1.3 branch.
Attachment #116407 -
Flags: approval1.3? → approval1.3+
Assignee | ||
Comment 7•22 years ago
|
||
checked into branch
Updated•22 years ago
|
Whiteboard: fixed1.3
You need to log in
before you can comment on or make changes to this bug.
Description
•