Closed Bug 195443 Opened 22 years ago Closed 18 years ago

xmlrpc broken stream closed pre-maturely

Categories

(Core :: XML, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: tseng_mike, Assigned: samuel)

References

Details

(Keywords: fixed1.8)

Attachments

(1 file)

xmlrpc is broken in the nightlies when using string as one of the parameters. I expect its fall out from CString changes. Changing obj=obj.QueryInterface(Components.interfaces['nsISupports' + sType]); to obj=obj.QueryInterface(Components.interfaces['nsISupportsC' + sType]); fixes the issue. Of course you would need to add copy the code for the char type. http://lxr.mozilla.org/seamonkey/source/extensions/xml-rpc/src/nsXmlRpcClient.js#482 Maybe a more eligant fix would be to return CString at http://lxr.mozilla.org/seamonkey/source/extensions/xml-rpc/src/nsXmlRpcClient.js#590 instead of just the stream, but I didnt test this. Another issue with the xmlrpc is that after calling the method it return an error message: Error! (80470002) Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIScriptableInputStream.available] I suspect the stream is closed pre-maturely. But I havent found time to investigate this futher.
Reassigning to Samuel who owns XML-RPC.
Assignee: heikki → samuel
I believe I am running into this bug in 1.2.1 as well. I will take a look and see if I can come up with a patch.
It isn't just the nightlies .... 1.3b and 1.2.1 exhibit the same problem.
I have confirmed that updating my nsXmlRpcClient.js from Mozilla 1.3b with obj=obj.QueryInterface(Components.interfaces['nsISupportsC' + sType]); DOES fix the problem...
Bug 186257 is the string problem. I'll keep this one open for the stream problem. Mike, can you provide any more details? Do you still see it?
Severity: major → normal
Keywords: regression
Can somone change the summary of this to: "strings within xmlrpc broken due to CString changes" The current summary is way to vague... Can we get a fix for this integrated?
Kevin the bug about CString is now 186257. The fix should land pretty soon. This bug is now about the stream problem I'm having as Samuel wanted. Samuel I havent had time to check it further, I'll do so soon.
Summary: xmlrpc broken → xmlrpc broken stream closed pre-maturely
Actually, I do see this problem now.
Status: NEW → ASSIGNED
Depends on: 197087
nsIScriptableInputStream.available returns NS_BASE_STREAM_CLOSED by some nsIInputStream implementations to indicate EOF. So XMLRPC fails when PushbackInputStream.prototype.available calls the stream's available.
Attachment #196541 - Flags: review+
Attachment #196541 - Flags: approval1.8rc1?
Comment on attachment 196541 [details] [diff] [review] Fixes the problem too late to take non-critical changes into this release.
Attachment #196541 - Flags: approval1.8rc1? → approval1.8rc1-
Attachment #196541 - Flags: approval1.8rc1- → approval1.8rc1?
Requesting approval for the patch because xml-rpc has been broken on trunk for a long time due to work on bug 197087. This small patch which only affects xml-rpc anyways will make it work until bug 197087 gets done.
Oops, I don't mean that bug 197087 caused the breakage, I meant that bug 197087 was going to fix it, but it's been taking a long time to get it done.
Attachment #196541 - Flags: approval1.8rc1? → approval1.8rc1+
Comment on attachment 196541 [details] [diff] [review] Fixes the problem Checked in to 1.8 branch on behalf of ssieb.
Keywords: fixed1.8
(In reply to comment #14) > (From update of attachment 196541 [details] [diff] [review] [edit]) > Checked in to 1.8 branch on behalf of ssieb. > I thought all checkins went to trunk first (to "bake"). Especially true here since this is a trunk bug. ???
It was given approval to land on the branch without any such requirement being made. You'd have to ask drivers/Asa why the trunk "baking" was not required in this case (though I can make a few guesses).
fixed by bug 197087
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: