Closed Bug 114920 Opened 23 years ago Closed 23 years ago

XMLExtras SOAPDecoder handling of xsi:type when type is already known.

Categories

(Core :: XML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.9

People

(Reporter: rayw, Assigned: rayw)

Details

This is one of what are likely to become a large number of necessary adjustments to the SOAP implementation. Currently, in the SOAP (default) decoder implementation, if a schema type is known on a particular node (passed in from an outer-mode scope due to validation information available there), then xsi:type is ignored, because it is believed that the type is already known. The proper action would be to attempt to retrieve the specified type. If it is found, then check to see whether it is compatible (usually as a subtype) with the type that the schema calls for, and raise an exception if it is not.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Target Milestone: Future → mozilla0.9.9
I put back the fix for this, no review because SOAP is not part of default build. My fix checks both for xsi:type and/or the declared schema type of the element.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
I also realized I failed to put the bug number into the comment of the check-in. It was fixed in version 1.42 of nsDefaultSOAPEncoder.cpp.
QA Contact: petersen → rakeshmishra
You need to log in before you can comment on or make changes to this bug.