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)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: dbaron, Assigned: dbaron)
Details
(Keywords: fixed1.8.1, Whiteboard: [patch])
Attachments
(1 file)
|
1.30 KB,
patch
|
doronr
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
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!
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #215424 -
Flags: superreview?(jst)
Attachment #215424 -
Flags: review?(doronr)
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
Whiteboard: [patch]
Target Milestone: --- → mozilla1.9alpha
Comment 2•20 years ago
|
||
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 3•20 years ago
|
||
Comment on attachment 215424 [details] [diff] [review]
patch
sr=jst
Attachment #215424 -
Flags: superreview?(jst) → superreview+
| Assignee | ||
Comment 4•20 years ago
|
||
Fix checked in to trunk and MOZILLA_1_8_BRANCH.
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•