Not getting friendship and forum events in Activity Logging

rated by 0 users
Answered (Verified) This post has 0 verified answers | 7 Replies | 2 Followers

Edoardo
Top 100 Contributor
220 Posts
Points 3,390
By: Edoardo
Posted: Thu, May 15 2008 9:03 AM

Hi there,

I'm not getting any "new friendships" and "new forum post/reply" events in the Site Activity.

They do not get into the cs_Messages_ActivityMessages table.

What can be causing this?

Thank you 

Bye.
Dodo.

Running CS 2008 (v4.0.30417.1769) on Windows Server 2008 RTM and SQL2005 w/SP2.

 

All Replies

Edoardo
Top 100 Contributor
220 Posts
Points 3,390
By: Edoardo
Posted: Mon, May 19 2008 6:24 AM In reply to

 Folks,

as strange as it may seems I'm really not getting any event of this types (and this applies to these types only).

Any shred of hint?

Thank you.

Bye.
Dodo.

Running CS 2008 (v4.0.30417.1769) on Windows Server 2008 RTM and SQL2005 w/SP2.

 
  • Post Points: 20 |
Jose Lema
Top 25 Contributor
1,878 Posts
Points 37,765
CS Developers
By: Jose Lema
Posted: Mon, May 19 2008 1:37 PM In reply to

Hi Edoardo,

There was a defect with regards to friendship activity messages that has been found, fixed, checked-in and will be part of the first service pack release.

I haven't been able to reproduce any errors with the forums however. Are your forums moderated? Can you provide steps to reproduce?

One is glad to be of service...

Jose Lema

 
  • Post Points: 20 |
Edoardo
Top 100 Contributor
220 Posts
Points 3,390
By: Edoardo
Posted: Mon, May 19 2008 1:58 PM In reply to

Jose Lema:
There was a defect with regards to friendship activity messages that has been found, fixed, checked-in and will be part of the first service pack release.

Smile

Jose Lema:
I haven't been able to reproduce any errors with the forums however.

This thing is driving me crazy... Tongue Tied

I have a test (scratch) installation where forum and media activity messages work fine however, in my production environment there's no way to have it behave.

After a (huge) SQL Trace session, assuming I run it right, I can see a number of calls to cs_Messaging_GetActivityMessagesForSite  but not one call to cs_Messaging_InsertIntoActivityMessages in a few minutes after an generating an event that was supposed to fire it like commenting a file in a galley.

I tried to backtrack the code in the SDK: MessageActivityLogModule calls ActivityMessages that calls Messages that, in turn, refers to a misterious "Provider" object. After digging blind I found out the SQLDataProvider with a LogActivityMessage method that calls an InsertIntoActivityMessagesTable method that is supposed to fire the sproc that regularly exists in the db (and gets fired for new user events). So far nothing really strange jumps into my eyes.

Forums are not moderated but the everyone users has no read right, just the view (althought I tried restoring read with no results...).

Ideas?

Bye.
Dodo.

Running CS 2008 (v4.0.30417.1769) on Windows Server 2008 RTM and SQL2005 w/SP2.

 
  • Post Points: 20 |
Jose Lema
Top 25 Contributor
1,878 Posts
Points 37,765
CS Developers
By: Jose Lema
Posted: Tue, May 20 2008 10:54 AM In reply to

Hi Edoardo,

I had no idea until your last line:

Edoardo:
Forums are not moderated but the everyone users has no read right, just the view (althought I tried restoring read with no results...).

Activity logging will only work for information that is publicly readable. If you are using the SDK version, you can open the ForumActivityLogModule.cs and see that the code checks this explicitly:

if (forum == null || !Permissions.ValidatePermissions(forum, Permission.Read, Users.GetAnonymousUser(true)))
                return;

So, if you change your permissions to allow the "Everyone" user to read, then *future* items will be logged.

Hope that helps...

One is glad to be of service...

Jose Lema

 
  • Post Points: 20 |
Edoardo
Top 100 Contributor
220 Posts
Points 3,390
By: Edoardo
Posted: Tue, May 20 2008 3:45 PM In reply to

I would like to use the activity logging as a kind to "apetizer" to my site content, requiring registration to actually read the content and then interact. So it make sense to me to have the view (but not the read) permission to forums and galleries and still have new events logged publicly.

Jose Lema:
So, if you change your permissions to allow the "Everyone" user to read, then *future* items will be logged.

 I tried that, waited for the security change to overvome the cache and... nothing changed for new events: still no logging. Sad

Jose Lema:
If you are using the SDK version, you can open the ForumActivityLogModule.cs and see that the code checks this explicitly:

Ok, though stuff, I like this, I loaeded the whole sdk in Visual Studio.
In ForumActivityLogModule.cs and MediaGalleryActivityLogModule.cs if found two checks (each module) like the one you highlighted and replaced Permission.Read in Permission.View. I then compiled the CommunityServer.Discussion.dll and CommunityServer.MediaGallery.dll and replaced the production files...

Two surprises:
1) Nothing actually blowed up, site still operational (!) Smile
2) Nothing actually changed in the activities logged, still no entries  Sad

Any more spare ideas?

Thank you.

Bye.
Dodo.

Running CS 2008 (v4.0.30417.1769) on Windows Server 2008 RTM and SQL2005 w/SP2.

 
  • Post Points: 20 |
Jose Lema
Top 25 Contributor
1,878 Posts
Points 37,765
CS Developers
By: Jose Lema
Posted: Wed, May 21 2008 1:17 PM In reply to

Hi Edoardo,

I can't reproduce this locally. How did you change your permissions? Are you using the default permissions for the application or overrides at the forumgroup/forum level? Is there a publicly available site I could review?

Sorry, there's no "more spare ideas" because the above recommendation is the only way I know to change the default behavior.

One is glad to be of service...

Jose Lema

 
  • Post Points: 20 |
Edoardo
Top 100 Contributor
220 Posts
Points 3,390
By: Edoardo
Posted: Thu, May 22 2008 9:37 AM In reply to

Eureka! EUREKA!!! Smile

It was, better, it *is* working! Big Smile The recompiled DLL is working as expected. I was testing it wrong. Let me explain...

After your last post, while I was looking for some nasty security change I wasn't aware of, I confirmed that the only change I have is a reduced to "view-only" everyone group (thus the anonmoueses). Fine.
Point is that I was testing it with comments on MediaGalleries (easier to delete without chance to be picked up by users).
MediaGalleries and Blogs (I now notice) that do not have the differenciated view/read options but just the read option (that I removed along the forums for the anonymouses).

Now forum's social streams are happily working and since there's no view-only option in MediaGallery/Blogs, I will entirely remove the security check from MediaGalleries/Blogs in my next recompile. Smile

Thank you! Yes

As a side note, can you throw in the feature request bucket for next SP/v these two items? Wink

  • Alignment of the security options: I would really like to have the view/read differentiation in both forums and blogs/media.
    This allows me to have the users know there's something they might access if [whatever] while the view-only settings is effective in entirely hiding something from users. Also aligned security options will streamline administrative settings.
  • Ability to ControlPanel configure the Social Stream behavior allowing the admin to choose if streaming only public readable content or public known content.

Ah! CS is great...

Bye.
Dodo.

Running CS 2008 (v4.0.30417.1769) on Windows Server 2008 RTM and SQL2005 w/SP2.

 
  • Post Points: 5 |
Page 1 of 1 (8 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com