I have just installed the latest Dev version on an almost new site, and I find that I get this problem which has already been reported for D5.
When I put in a user to set as creator of the topic, then that appears ok, but when I try my first tests (as admin user) then it doesn't work and the topic creator is set as "Anonymous".
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Anonymous.png | 42.04 KB | weka |
Comments
Comment #1
AlexisWilke commentedI guess some people don't care... The previous version of D6 was working because it would not use the full mechanism to generate a page. Now that I do that, it "breaks" since the Core detects the "wrong" user and reset the id to 0 (anonymous).
Thank you for reporting the problem though. 8-)
Alexis Wilke
Comment #2
AlexisWilke commentedOkay, I finally got a fix for this one. It is available in the -dev for now.
Thank you.
Alexis
Comment #4
weka commentedHi Alexis,
Has this fix been applied to Discuss This! 6.x-1.2 ?
I just installed that version and this problem is still there.
Let me know if you need more info or would like me to run some tests.
Cheers
Comment #5
AlexisWilke commentedDid it fail when you were an admin or an anonymous user?
Thank you.
Alexis Wilke
Comment #6
weka commentedHere is how I was able to replicate:
1. Create a Story as an Admin User
2. Log in as Authenticated User with initiate discuss this topics permissions
3. Click on Discuss this link and post comment.
Comment shows correctly as posted by Authenticated User
Topic generated by Discuss This shows as posted by Anonymous.
Installed on D 6.15
Comment #7
AlexisWilke commentedHmmm... I tested and it works on my site...
The user you assigned to the Post, does he have permission to create a forum post? That would be the one thing I could think of at this time...
Thank you.
Alexis
Comment #8
weka commentedYes, the user has the following permissions:
access discuss this links
initiate discuss this topics
create forum topics
delete own forum topics
edit own forum topics
access comments
post comments
post comments without approval
I have setup a new drupal install just to test this to avoid conflicts with other modules.
EDIT:
There are no errors showing in the report.
Drupal 6.15, Administration menu 6.x-1.5, Backup and Migrate 6.x-1.2, Contrib Toggle 6.x-1.3, Discuss This! 6.x-1.2, Token 6.x-1.12
No other modules installed.
Comment #9
weka commentedThank you Alexis,
Not ideal, but an easy workaround for this issue is to enter a user name into the Author of newly created Forum discussions: field in the Discuss This configuration.
Comment #10
AlexisWilke commentedWeka,
Ah! Yes! 8-)
I thought you had done that...
What non-workaround would you see fit?
It has been this way since the beginning of this module! So I did not think you did not change that field. Are you thinking we should have an option to make the Post author the same as the author of the page being discussed?
Thank you.
Alexis
Comment #11
weka commented8-)
I think it is fine the way it is, although making it default to the user who is starting the discussion may be better. I tried to use the [user-name] token, but that did not work.
The reason I did not change the field was because I thought that when left blank it will use the currently logged in user and that is how I interpreted the instructions below that field:
"Leave blank if you want the person who clicks the link to be the author of the new topic...."
Comment #12
AlexisWilke commentedI tested the [user-name] and [user-id] and they both worked for me... Hmmm...
I'm also looking into the blank entry.
The blank already meant the person who's logged-in.
I also added support to include the same author, the one who created the node (i.e. use * as the name.)
Thank you.
Alexis
Comment #13
weka commentedAre you referring to the latest dev version or the 6.x-1.2. So far I only tested the 6.x-1.2. Just want to make sure.
Comment #14
AlexisWilke commentedI tested with the -dev... I'm not too sure whether it already was in 1.2, it is likely that the supposed blank support was.
This being said, there are issues with selecting an author for the post that is different from the author of the node being discussed. I noticed today that I did not implement the format support I meant to do a while back. I added that and noticed that forcing the format or using the default are okay ideas, but the result can be giving someone a better format than he/she normally has access to... The node Save actually fails at this time.
Anyway, there will be three possibilities:
In other words, this module would have a security issues if I were to publish my current changes!
I think that what I need to do is apply all the filters at the time the module generates the forum post, then force the new format to the default format as I have been doing so far.
I guess, I'm talking to myself here since this is not directly linked with what you are asking for...
Anyway, yes, if you would please test with the -dev and report here whether you still have the problem, it would be great!
Thank you.
Alexis
Comment #15
AlexisWilke commentedOkay, I checked in some more code. But I would think that it is the same in regard to the user. Still, you may want to test the latest -dev version (which should be available within 12h) to make sure you are not reporting a problem that has now been fixed.
Thank you.
Alexis
Comment #16
AlexisWilke commentedOkay, that should be in 1.3.
Feel free to reopen the issue if you still have problems.
Thank you.
Alexis
Comment #18
bramface commentedIn case anyone finds this: In my site, the Jammer module (which cleans up forms) hid the "author information" field and (at least for Forum Topics) caused the nodes to be authored by user 0 and shown as anonymous.
FormFilter module did not cause this error.
-Bram