Closed Bug 330855 Opened 20 years ago Closed 20 years ago

SOAPParameters with element set cause SOAPCall::encode to throw

Categories

(Core Graveyard :: Web Services, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: dbaron, Assigned: dbaron)

Details

(Keywords: fixed1.8.1, Whiteboard: [patch])

Attachments

(1 file)

My testcase is a mess, but the fix is pretty obvious. Setting the element property on a SOAPParameter to control its element content rather than have it generated causes SOAPCall::encode (i.e., nsSOAPMessage::Encode) to throw, since there's a little nsCOMPtr mess that causes importNode to be passed a null pointer. I don't think there's any security risk to fixing this since the code that allows the caller to construct the entire document (setting message on nsSOAPCall) works just fine. This code has been around for years and nobody noticed!
Attached patch patch — — Splinter Review
Attachment #215424 - Flags: superreview?(jst)
Attachment #215424 - Flags: review?(doronr)
Status: NEW → ASSIGNED
Priority: -- → P3
Whiteboard: [patch]
Target Milestone: --- → mozilla1.9alpha
Comment on attachment 215424 [details] [diff] [review] patch r=me Since it seems I 'own' the module, feel free to check this into the 1.8 branch.
Attachment #215424 - Flags: review?(doronr) → review+
Comment on attachment 215424 [details] [diff] [review] patch sr=jst
Attachment #215424 - Flags: superreview?(jst) → superreview+
Fix checked in to trunk and MOZILLA_1_8_BRANCH.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: