Closed
Bug 357901
Opened 19 years ago
Closed 19 years ago
submission 'post' to file doesn't work
Categories
(Core Graveyard :: XForms, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aaronr, Assigned: aaronr)
Details
(Keywords: fixed1.8.0.12, fixed1.8.1.4)
Attachments
(2 files, 1 obsolete file)
|
1.99 KB,
application/xhtml+xml
|
Details | |
|
7.62 KB,
patch
|
doronr
:
review+
|
Details | Diff | Splinter Review |
If the form author specifies submission with @method="post" but uses a @action that is a local file, then we'll generate a xforms-submit-error. This is because we assume that if the method type is post that the channel will be a nsIHttpChannel and bow out if it isn't. Since other xforms processors don't generate an error with this scenario, I assume we are behaving incorrectly?
I talked to Jonas about it and he didn't think that there would be a security problem or anything if we treated POST like GET for all other protocols other than HTTP, which seems to be what XSmiles and formsPlayer do.
So should we do that or should we do the submission error like we do now and just put a better error in the Error Console?
started a thread in the WG mailing list (http://lists.w3.org/Archives/Public/www-forms/2007Feb/0086.html). Looks like it is non-normative (per Leigh's reply), so we can basically do what we like. Unless we get some more feedback from the thread, I'd say we adopt formsPlayer's and XSmile's stance for replace="all" at least. But should we continue to throw an error on replace="instance"?
Comment 3•19 years ago
|
||
Might give this one a day or two to see if anybody disagrees with me.
Attachment #255950 -
Flags: review?(Olli.Pettay)
Comment on attachment 255950 [details] [diff] [review]
patch
fixing bug by allowing "post" with file protocol when replace="all" or "none". We'll put a warning in the error console for all other non-http protocols and when file is used with replace="instance". And in the warning cases, a xforms-submit-error event will still be sent as happened before this patch.
Attachment #255950 -
Flags: review?(doronr)
Comment 6•19 years ago
|
||
Comment on attachment 255950 [details] [diff] [review]
patch
>+ if (mFormat & METHOD_POST)
>+ {
if (mFormat & METHOD_POST) {
Attachment #255950 -
Flags: review?(Olli.Pettay) → review+
fixes smaug's comment
Attachment #255955 -
Flags: review?(doronr)
Attachment #255950 -
Attachment is obsolete: true
Attachment #255950 -
Flags: review?(doronr)
Updated•19 years ago
|
Attachment #255955 -
Flags: review?(doronr) → review+
checked into trunk
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: xf-to-branch
checked into 1.8 branch on 2007-04-12
checked into 1.8.0 branch on 2007-04-16
Keywords: fixed1.8.0.12,
fixed1.8.1.4
Whiteboard: xf-to-branch
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•