New LDAP users not being opted into newsletter

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/17/2009 2:35:58 PM
Gravatar
Total Posts 10

New LDAP users not being opted into newsletter

Joe

It appears that new LDAP members are not being automatically subscribed to newsletters.

In the newsletter settings I have opt in new users by default

However when a new LDAP user is logging into the portal for the first time they are not being subscribed to the newsletter.

Is this a known Issue?

MSSQL Express 2008

2.3.2.9

Win2k3r2

11/17/2009 2:50:08 PM
Gravatar
Total Posts 18439

Re: New LDAP users not being opted into newsletter

Hi,

Thanks for the bug report, you are correct, it was simply oversight on my part, I forgot to add the logic to the ldap user creation logic. I will fix this right now so it will be fixed in the next release.

Best,

Joe

11/17/2009 4:18:27 PM
Gravatar
Total Posts 10

Re: New LDAP users not being opted into newsletter

Thanks again for the speedy response

11/19/2009 9:19:43 AM
Gravatar
Total Posts 75

Re: New LDAP users not being opted into newsletter

Joe

To work around this.

Is there an SQL Query that I could use to update all users so that they are subscribed to the only newsletter that is available?

We have just had a bunch of users (customers) sign up from LDAP

Or am I gonna have to suck it up and just manually subscribe them all?

Thanks

Al

11/19/2009 9:41:01 AM
Gravatar
Total Posts 18439

Re: New LDAP users not being opted into newsletter

Hi,

Something like this should do it:

INSERT INTO [dbo].[mp_LetterSubscribe]

(

 

[SiteGuid],

[LetterInfoGuid],

[UserGuid],

[Email],

[IsVerified],

[VerifyGuid],

[BeginUtc],

[UseHtml],

IpAddress

)

 

SELECT DISTINCT

li.SiteGuid,

li.LetterInfoGuid,

u.UserGuid,

u.Email,

1,

'00000000-0000-0000-0000-000000000000',

GetUtcDate(),

1,

''

 

FROM

mp_LetterInfo li

 

CROSS JOIN

mp_Users u

 

WHERE

u.UserGuid NOT IN (SELECT ls.UserGuid FROM mp_LetterSubscribe ls WHERE ls.LetterInfoGuid = li.LetterInfoGuid)

 

ORDER BY u.Email

Also, if it would help I can put up an interim build on our Novell Forge download page that includes the fix for this. Just let me know.

Best,

Joe

11/19/2009 11:04:03 AM
Gravatar
Total Posts 75

Re: New LDAP users not being opted into newsletter

Joe

I noticed something else that you may want to look at. It looks like that if a user updates their  My account email address then this doesn't update the users subscription email address.

 

The Query worked like a charm.

I will just remember to run this every once in a while until you are able to build this into a release. No need to build on my account Wink

Al

11/22/2009 10:26:36 AM
Gravatar
Total Posts 18439

Re: New LDAP users not being opted into newsletter

Hi,

fyi, I put up an interim build for MS SQL on our Novell Forge Download page mojoportal-build-2009-11-22-mssql.zip which has the fix for both the ldap users not getting the default newsletters and also the fix for if users change their email address so it stays in sync in the newsletters.

Best,

Joe

11/23/2009 9:47:07 AM
Gravatar
Total Posts 75

Re: New LDAP users not being opted into newsletter

Joe

I applied the build and everythingn seems to be functioning as you outlined.

Thanks so much for the speedy update.

Al

You must sign in to post in the forums. This thread is closed to new posts.