Closed Bug 385857 Opened 17 years ago Closed 17 years ago

multipart/form-data submission broken on 0.8

Categories

(Core Graveyard :: XForms, defect)

1.8 Branch
x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronr, Assigned: aaronr)

References

()

Details

(Keywords: fixed1.8.1.5)

Attachments

(2 files)

Attached patch patchSplinter Review
Looks like there is a bug on the 1.8 branch that prevents the patch that fixed multipart/form-data on the trunk from working on the branch.  When we go to set the nsXFormsAtoms::uploadFileProperty on the clone of the instance data node that originally contained it, it is failing to work correctly.  By that point we've already done the ImportNode, but not the AppendChild.  ImportNode should set up the owner document for the cloned node to be the submission document, but that doesn't seem to be the case since the owner document before appendchild and after are different.

So to work around this 1.8 bug we'll just set the property AFTER we've done the call to AppendChild.

Testcase: https://bugzilla.mozilla.org/attachment.cgi?id=247929
Attachment #269786 - Flags: review?(Olli.Pettay)
Attachment #269786 - Flags: review?(doronr)
Attachment #269786 - Flags: review?(Olli.Pettay) → review+
Attachment #269786 - Flags: review?(doronr) → review+
checked into trunk
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: xf-to-branch
Reopening bug.  I didn't move the statement high enough to fix uploads bound to attributes.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch patch2Splinter Review
just asking for one review.  It is a pretty minor change, more of a correction of the first change.  But I don't want to be accused of breaking the rules :-)
Attachment #270088 - Flags: review?(Olli.Pettay)
Blocks: 376307
Attachment #270088 - Flags: review?(Olli.Pettay) → review+
checked patch2 into trunk and patches 1 and 2 into 1.8 branch.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Keywords: fixed1.8.1.5
Resolution: --- → FIXED
Whiteboard: xf-to-branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: