Closed Bug 186257 Opened 22 years ago Closed 22 years ago

Creation of XMLRPC string broken.

Categories

(Core :: XML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ami.ganguli, Assigned: samuel)

Details

(Whiteboard: fixed1.3)

Attachments

(1 file)

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
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch fix stringsSplinter Review
Sorry for the delay. I thought I had fixed all the string breakage.
Attachment #116407 - Flags: superreview?(darin)
Attachment #116407 - Flags: review?(heikki)
Attachment #116407 - Flags: review?(heikki) → review+
Comment on attachment 116407 [details] [diff] [review] fix strings rs=darin
Attachment #116407 - Flags: superreview?(darin) → superreview+
Attachment #116407 - Flags: approval1.3?
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 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+
checked into branch
Whiteboard: fixed1.3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: