Closed Bug 402056 Opened 17 years ago Closed 16 years ago

Anonymous article feedback should have titles defaulted to the name of the page

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jason.barnabe, Assigned: ecooper)

Details

(Whiteboard: tiki_feature, tiki_upstreamed)

Attachments

(3 files, 1 obsolete file)

Default the title for anonymous feedback to the title of the article instead of "Was this article helpful?" That would make this page more useful:

http://support.mozilla.com/tiki-list_comments.php
Assignee: nobody → smirkingsisyphus
Target Milestone: --- → 0.8
Anonymous users will have their feedback titles defaulted to the article title. Registered users will be still using the "Untitled 00-00-00 00:00:00" format. Safe to assume that should be changed as well?
Attachment #341987 - Flags: review?(nelson)
(In reply to comment #1)
> Anonymous users will have their feedback titles defaulted to the article title.
> Registered users will be still using the "Untitled 00-00-00 00:00:00" format.
> Safe to assume that should be changed as well?

Yes, please change that as well. :)
Registered users now get article titles as titles.
Attachment #341987 - Attachment is obsolete: true
Attachment #342121 - Flags: review?(nelson)
Attachment #341987 - Flags: review?(nelson)
Attachment #342121 - Flags: review?(nelson) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: 0.8 → 0.7.1
In trying to test this, I've made anonymous comment to http://support-stage.mozilla.org/en-US/kb/Other+Firefox+support, but they haven't yet showed up on http://support-stage.mozilla.org/tiki-list_comments.php?login; anybody know why?
Didn't work for me either.
Nelson, can you take a look?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Noticed this was an issue when testing for the reported comments bug. It was a total "Duh" moment.
Attachment #342529 - Flags: review?(nelson)
Comment on attachment 342529 [details] [diff] [review]
Assigns default comment title in case page title isn't available (like on forums) 

Other than the extra spaces, I have committed this patch as is into r19031/r19032.
Attachment #342529 - Flags: review?(nelson) → review+
I can't reproduce this on my development server. Eric, can you reproduce it?

The behavior on support-stage is strange. Important to note that this problem exists in production as well.

Even if you key in the wrong code, you get no error message...

You are supposed to get an error message saying that you keyed in the wrong code if you key in the wrong code...



(In reply to comment #5)
> In trying to test this, I've made anonymous comment to
> http://support-stage.mozilla.org/en-US/kb/Other+Firefox+support, but they
> haven't yet showed up on
> http://support-stage.mozilla.org/tiki-list_comments.php?login; anybody know
> why?
Nope. I tested this on my development box numerous times and everything is acting as it should. 

Are we sure support-stage is running the same code?

(In reply to comment #10)
> I can't reproduce this on my development server. Eric, can you reproduce it?
> 
> The behavior on support-stage is strange. Important to note that this problem
> exists in production as well.
> 
> Even if you key in the wrong code, you get no error message...
> 
> You are supposed to get an error message saying that you keyed in the wrong
> code if you key in the wrong code...
> 
> 
> 
> (In reply to comment #5)
> > In trying to test this, I've made anonymous comment to
> > http://support-stage.mozilla.org/en-US/kb/Other+Firefox+support, but they
> > haven't yet showed up on
> > http://support-stage.mozilla.org/tiki-list_comments.php?login; anybody know
> > why?
It is hard to fix this when we can't reproduce it. Could it be due to session or something? Maybe something to do with the <form enctype="multipart/form-data" ? Or some caching/netscalar thing? I'm randomly tossing ideas here... Comment submission works when you are logged in fwiw (but it's not exactly the same thing).

Mark, any ideas (just wondering coz you may have seen this kind of behavior before...)? Is there a way to see exactly the POST request received by the server?
Target Milestone: 0.7.1 → 0.7.2
If someone with access to support-stage could attach the source of the feedback form, that might give us some hints. There are a few hidden inputs that could be getting funky data.

As anon, click the submit additional feedback link. Fully highlight the form (from "Your feedback[...]" past the captcha), right-click and choose view selection source. Seeing that might help...or it might not.I'm not quite sure what the problem is.
http://support-stage.mozilla.org is open; "support/stage" is the username/password, respectively (set up this way to block Google from indexing the articles on staging).
The patch only changed the template, and it seems to be performing as it should be (all the hidden values match my dev server). Strange. 

Am I correct in assuming that tiki-list_comments.php still isn't displaying anon comments?
Target Milestone: 0.7.2 → 0.7.3
Well, some good news on this front...sort of. I just checked this again, and anon comments no longer work in my dev instance. Registered comments do, still. 

It's sort of great because it means a change external to the patch is causing this problem. I'm looking over the comments library now. Hopefully this should finally be wrapped up.
It looks like this is happening because the comments code isn't being loaded for anonymous users. Nelson, off the top of your head, do you know why this isn't happening?

All kb pages are processed through tiki-index.php, right?
Turns out the problem was unrelated to the patch, and was introduced with the full-page buffering.

Anon comments weren't being processed because the cached page was being served before they could be processed.
Attachment #350101 - Flags: review?(nelson)
Comment on attachment 350101 [details] [diff] [review]
Processes comments even if page is cached

in r20265/r20266
Attachment #350101 - Flags: review?(nelson) → review+
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Verified FIXED; comment 5 is now working just fine for me.
Status: RESOLVED → VERIFIED
Whiteboard: tiki_triage nelson
For the sake of not putting in too many strange conditions, would simply hiding the title box for everyone do the trick?
Whiteboard: tiki_triage nelson → tiki_triage nelson tiki_discuss
Whiteboard: tiki_triage nelson tiki_discuss → tiki_feature tiki_discuss
Whiteboard: tiki_feature tiki_discuss → tiki_feature
wiki_comments_notitle preference added.
Whiteboard: tiki_feature → tiki_feature, tiki_upstreamed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: