Closed
Bug 607217
Opened 15 years ago
Closed 15 years ago
Submitting a comment on tor.com is impossible
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tech Evangelism Graveyard
English US
Tracking
(blocking2.0 betaN+)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | betaN+ |
People
(Reporter: jdm, Assigned: mounir)
References
()
Details
Attachments
(2 files)
STR:
1. Go to a post on tor.com
2. Log in to an existing account
3. Leave a comment
4. Confirm comment posting
Expected:
Comment is posted. These steps work fine in the latest dev Chrome build.
Actual:
"500 - View not found [name, type, prefix]: frontpage,html,commentView" error page displayed.
| Reporter | ||
Comment 1•15 years ago
|
||
I'll attempt to get an HTTP log for this behaviour, and find a regression range. I've checked the latest nightly and beta 6, and they both display the error page.
blocking2.0: --- → ?
| Reporter | ||
Comment 2•15 years ago
|
||
| Reporter | ||
Comment 3•15 years ago
|
||
3.6.9 saves the comment correctly.
| Reporter | ||
Comment 4•15 years ago
|
||
| Reporter | ||
Updated•15 years ago
|
Attachment #485977 -
Attachment mime type: text/plain → application/x-gzip
| Reporter | ||
Comment 5•15 years ago
|
||
Comparing the logs, the nightly seems to go straight from the final POST to receiving a 500 error, while 3.6.9 receives a 303 See Other. I haven't found any smoking bullets, unfortunately.
| Reporter | ||
Comment 6•15 years ago
|
||
Moving this to Core for the foreseeable future.
Component: General → Networking: HTTP
Product: Firefox → Core
QA Contact: general → networking.http
| Reporter | ||
Comment 7•15 years ago
|
||
4.0b1 is also broken.
| Reporter | ||
Updated•15 years ago
|
Keywords: regression
| Reporter | ||
Comment 8•15 years ago
|
||
3.6.11 works.
| Reporter | ||
Comment 9•15 years ago
|
||
As does 3.7a2.
| Reporter | ||
Comment 10•15 years ago
|
||
By which I mean that I tested the wrong build. The most definitive regression range to date is that it worked in 3.7a1 and broke in 3.7a2.
| Reporter | ||
Comment 11•15 years ago
|
||
Bisecting is narrowing down the cause to sicking's pushes in bugs bug 544698 and bug 546528.
Component: Networking: HTTP → HTML: Form Submission
QA Contact: networking.http → form-submission
Updated•15 years ago
|
| Reporter | ||
Comment 12•15 years ago
|
||
I was overzealous; apparently this is the fault of bug 547165 instead. I'm working on a reduced testcase now.
| Reporter | ||
Comment 13•15 years ago
|
||
So it turns out that this is due to the change where <input type="image" name="foo" value="bar"> no longer submits foo=bar. Tor.com is using that value (in this case, task=post/cancel/preview) server-side to determine what action to take, and throws a 500 on no value submitted (actually they get task="" because there's also a hidden element named task for some reason).
I threw together a testcase which is composed of the tor.com comment form which submits to a PHP script that prints out $_POST. FWIW, Chrome submits task=post.
| Reporter | ||
Comment 14•15 years ago
|
||
Testcase at http://www.joshmatthews.net/bug607217/ in case it's required.
Comment 15•15 years ago
|
||
IE doesn't submit that, does it? And the HTML spec requires not submitting it...
Does IE work on the tor page in question?
Comment 16•15 years ago
|
||
Mounir, could you have a look here?
Assignee: nobody → mounir.lamouri
blocking2.0: ? → betaN+
| Assignee | ||
Updated•15 years ago
|
| Assignee | ||
Comment 17•15 years ago
|
||
IE and Opera have task="" and both work perfectly. I tried to make Opera identify itself like Firefox and it was still working so I'm not sure if there is UA sniffing or something else.
| Reporter | ||
Comment 18•15 years ago
|
||
That's interesting. Do they still actually submit task="", or is it not present at all like FF?
| Assignee | ||
Comment 19•15 years ago
|
||
(In reply to comment #18)
> That's interesting. Do they still actually submit task="", or is it not
> present at all like FF?
Task has no value, like Firefox.
Comment 20•15 years ago
|
||
Er... Opera submits a "task=" on Josh's minimal testcase, no? So presumably submits task=whatever on the tor site?
What does IE do on Josh's minimal testcase? Does it end up with |[task] =>| in the output?
Comment 21•15 years ago
|
||
Oh, nevermind. Opera and we both send |[task] =>|...
What do the various browsers send on the actual tor site? Do we have any contacts with the tor folks?
Comment 22•15 years ago
|
||
I'd just mail the tor folks, but it's hard to do that without having some idea of what their actual stuff looks like when they reply. jdm, are you willing to do that and ask them about the behavior difference between Fx4 and Opera here?
| Reporter | ||
Comment 23•15 years ago
|
||
Since the task value comes from the button that's used to submit, whatever you
see on the testcase should be identical to the tor.com form.
And yeah, I'll try and get in contact with them.
| Assignee | ||
Comment 24•15 years ago
|
||
Ok, I've found what's happening and it explains why we have this <input type='hidden' name="task" value=""/>
In the preview page, for IE and Opera, we have this:
<script type="text/javascript">
document.write('<input type="image" src="/templates/tor/images/buttons/button-preview-comment.gif" value="preview" class="tor_subm" onclick="this.form.task.value=\'preview\';" />' +
'<input type="image" src="/templates/tor/images/buttons/button-post.gif" value="post" class="tor_subm" onclick="this.form.task.value=\'post\';" />' +
'<input type="image" src="/templates/tor/images/buttons/button-cancel.gif" value="cancel" class="tor_subm" onclick="this.form.task.value=\'cancel\';" />');
</script>
<noscript>
<input type="submit" name="task" value="preview" class="tor_subm" />
<input type="submit" name="task" value="post" class="tor_subm" />
<input type="submit" name="task" value="cancel" class="tor_subm" />
</noscript>
instead of this (Webkit and Gecko):
<input type="image" src="/templates/tor/images/buttons/button-preview-comment.gif" name="task" value="preview" class="tor_subm" />
<input type="image" src="/templates/tor/images/buttons/button-post.gif" name="task" value="post" class="tor_subm" />
<input type="image" src="/templates/tor/images/buttons/button-cancel.gif" name="task" value="cancel" class="tor_subm" />
| Assignee | ||
Comment 25•15 years ago
|
||
So maybe this bug should be assigned to Evangelism and shouldn't be a blocker anymore?
Comment 26•15 years ago
|
||
Yeah, indeed. This just looks like browser-sniffing brokenness, since the "IE and Opera" codepath would work just fine for Webkit/Gecko.
Someone still needs to let tor know that their code is broken.
Assignee: mounir.lamouri → english-us
Component: HTML: Form Submission → English US
Product: Core → Tech Evangelism
QA Contact: form-submission → english-us
Version: Trunk → unspecified
| Assignee | ||
Comment 27•15 years ago
|
||
(I guess "regression" and "testcase" do not really make sense here)
Josh, I can send an email now if you didn't do it.
Keywords: regression,
testcase
| Reporter | ||
Comment 28•15 years ago
|
||
I have not started the process, so feel free.
| Assignee | ||
Comment 29•15 years ago
|
||
Just sent an email to webmaster@tor.com
| Assignee | ||
Comment 30•15 years ago
|
||
They did react very quickly. This seems fixed now.
Assignee: english-us → mounir.lamouri
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Yay! Thanks Mounir
Updated•10 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•