Closed
Bug 247541
Opened 21 years ago
Closed 21 years ago
SOAP decoder sometimes encodes incorrect xsi:type
Categories
(Core Graveyard :: Web Services, defect)
Core Graveyard
Web Services
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8alpha2
People
(Reporter: keeda, Assigned: keeda)
Details
Attachments
(1 file)
|
7.42 KB,
patch
|
doronr
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
This happens when trying to send an array of structs. I have a fix.
| Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Summary: SOAP decoder sometimes encodes incorrec xsi:type → SOAP decoder sometimes encodes incorrect xsi:type
Target Milestone: --- → mozilla1.8alpha2
| Assignee | ||
Comment 1•21 years ago
|
||
If no name is specified for the value being encoded, EncodeSimpleValue attempts
to guess at a suitable name by walking up the type hierarchy till we find
something usable. The loop that does this uses the typeNS variable that
contains the namespace for the type, and clobbers its value. This looks
incorrect since we want to later use the value for encoding the type
information. This caused the encoder to put structs that were part of an array
in the schema namespace instead of the correct targetnamespace.
The fix is to make the loop not use typeNS, but currentURI. Looks like that was
the intention all along, but someone had a brainfart or something.
Also includes unrelated cleanup: GetNativeType() always returns OK, so get rid
of the nsresult return.
| Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 151131 [details] [diff] [review]
Fix
timeless, I'm hoping you might be interested in this. Would you please review?
Attachment #151131 -
Flags: review?(timeless)
Updated•21 years ago
|
Attachment #151131 -
Flags: review?(timeless) → review+
| Assignee | ||
Updated•21 years ago
|
Attachment #151131 -
Flags: superreview?(jst)
Comment 3•21 years ago
|
||
Comment on attachment 151131 [details] [diff] [review]
Fix
sr=jst
Attachment #151131 -
Flags: superreview?(jst) → superreview+
| Assignee | ||
Comment 4•21 years ago
|
||
Thanks for the reviews.
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment on attachment 151131 [details] [diff] [review]
Fix
hierarcy(sp)
:)
| Assignee | ||
Comment 6•21 years ago
|
||
(In reply to comment #5)
> hierarcy(sp)
Duh! I'll fix that the next time I checkin to this file.
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•