Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Let me preface this by saying this should absolutely be included with open atrium, either in the official OA release, or a re-roll. It is the vinegar to atrium's chips.
However when creating or commenting on nodes via email, Open Atrium's "recent activity" log shows all posts/comments as being submitted by Anonymous.
Any suggestions on where to start so for the correct user name to show up in recent activity?
The site is not using anonymous commenting, but is a small membership site where all users have accounts.
Comment | File | Size | Author |
---|---|---|---|
Picture 1.png | 28.99 KB | forestmars |
Comments
Comment #1
kyle_mathews CreditAttribution: kyle_mathews commentedYum, chips with vinegar!
I'm not sure why OA would be doing that -- are the nodes / comments actually anonymous in the db?
Comment #2
forestmars CreditAttribution: forestmars commentedThe UID is correct in the node table however node_revisions shows the UID for each of the posts as 0.
Thus, the published nodes have the correct author, but since the UID is 0 in node_revisions for all nodes created by og_mailinglist, the recent activity view in OA lists them all as created by anonymous.
What needs to be done for og_mailinglist to set the UID correctly in node_revisions?
Comment #3
kyle_mathews CreditAttribution: kyle_mathews commentedSo weird... this is a bug. I'd never noticed this problem before. I'll look into it later hopefully. Thanks for pointing it out.
Comment #4
forestmars CreditAttribution: forestmars commentedTook a cursory look for the problem here and didn't see it.
Anything I can do to move this issue forward, or any hints on where in the code the problem is?
Comment #5
clemens.tolboomSubscribe and adding the development list responses
[Stock Response - Relates to issue ]
This relates to [#355421]
[Stock Response - Depends on ]
This issue depends on #398110: node_submit resets $node->uid for it's completion.
Comment #6
clemens.tolboomIn my http://drupal.org/project/node_factory module I set some default values.
See http://drupalcode.org/project/node_factory.git/blob_plain/refs/heads/mas...
Maybe that solves it.
Comment #7
ghostyzx CreditAttribution: ghostyzx commentedI'm having the same problem, does anyone have a fix?
My workaround for now is an ugly patch in the function node_save from modules/node/node.module
Comment #8
mahfiaz CreditAttribution: mahfiaz commentedPhpMyAdmin shows that nothing like this happens with D7.
Comment #9
mahfiaz CreditAttribution: mahfiaz commentedI think keeping this bug open serves no greater cause. Let's face the reality.