Item6011: No notifications sent in a protected web

Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Extension
Component: MailerContrib
Reported By: TWiki:Main.ArthurClemens
Waiting For: Main.WillNorris
Last Change By: KennethLavrsen
For a client with a restricted access twiki I cannot make WebNotify mails to work. In the twiki all webs are protected (cannot be viewed by TWikiGuest). And so no email are sent out.

The MailerContrib topics says: A user identified by an email address will only be sent change notifications if the topic they are asubscribed to is readable by guest users.

Actually this seems to be valid for all users, whether they have written their email address in WebNotify or not.

For a test I have made the Sandbox web readable by TWikiGuest, and then I do see mails sent out.

This is the output from mailnotify:
~/cgi-bin/twiki$ perl ../../twiki/tools/mailnotify
Processing Main
---+ Abonneer je op wijzigingen

Je ontvangt elke dag een overzicht van wijzigingen op deze twiki.

   * ArthurClemens: *


__%MAKETEXT{"Related topics:"}%__ %TWIKIWEB%.WebChangesAlert, %MAINWEB%.%WIKIUSERSTOPIC%, %TWIKIWEB%.TWikiRegistration

        Last notification was at 1970-01-01T00:00:00Z
Processing Sandbox
%MAKETEXT{"This is a subscription service to be automatically notified by e-mail when topics change in this [_1] web. This is a convenient service, so you do not have to come back and check all the time if something has changed. To subscribe, please add a bullet with your [_2] in alphabetical order to this list:" args="*<nop>%WEB%*,%SYSTEMWEB%.WikiName"}%

   * Main.TWikiGuest -
   * ArthurClemens: *


__%MAKETEXT{"Related topics:"}%__ %SYSTEMWEB%.WebChangesAlert, %SYSTEMWEB%.TWikiRegistration
        Last notification was at 2008-09-21T20:35:32Z
Processing TWiki
        TWiki has no subscribers
Processing Trash
        Trash has no subscribers
        0 change notifications from Main
        0 change notifications from Sandbox

It is a real pity this does not work, and my clients sees the value of their TWiki reduced because there is no way to get notified by changes (RSS does not work either in a protected web).

-- TWiki:Main/ArthurClemens - 21 Sep 2008

this seems pretty urgent to me.

-- WillNorris - 03 Jun 2009

This report has been raised in September last year.

MailerContrib has been through many changes since.

Will you elevated this to urgent a few days ago. Have you confirmed that this bug is still present?

I have all webs at Motorola blocked for access for guests. You have to be authenticated to view pages. But out WebNotify works fine when people add their WikiName to WebNotify. And this even worked on TWiki 4.2.

-- KennethLavrsen - 12 Jun 2009

old bug and no feedback

smells like a red herring

probably an old bug resolved a year ago

-- KennethLavrsen - 17 Jul 2009

no action

To reproduce the error / bug you have to open the preferences of any web. Just put anything (a group or user) to ALLOWWEBVIEW.

After that the email adresses enterd in WebNotify of the same web, does not work any longer.

It seems that it is not possible to get change notification of a protected web.

I understand, that RSS-Feed for a proteced web is only working when logged in. But for the cron job it should be OK, not to care about the ALLOWWEBVIEW. Or am I wrong?

-- Mr. Dotter - 29 Sep 2010

There is a solution, I got it in the chat. Here it comes:

[23:44] <@gac410> There was a bug in 1.0.9 where the shell scripts were running under a guest id instead of AdminUser
[23:49] <@gac410> The bug in 1.0.9   is that uses $req->remoteUser( $Foswiki::cfg{SuperAdminGroup} ); to set the admin USER.
[23:50] <@gac410> Obviously SuperAdminGroup is not a userid.   The correct statement is:  +        $req->remoteUser( $Foswiki::cfg{AdminUserWikiName} );
[23:53] <foswiki_irc9> So yust add to bei cronjob: -user AdminUser
[23:54] <@gac410> Yes,  that should fix it I believe.    If not,  you can patch the line in Engine/

So, I fixed the Engine/, and everything got fine. I am so happy smile

-- Mr. Dotter - 30 Sep 2010

i have updated the documentation to include the -user parameter. i have updated 1.0, 1.1, and trunk. MailerContrib needs to be re-released (version on MailerContrib appears to have been released from the 1.0 branch).

also need to follow up with a fix to the documentation for the statistics script and a patch for 1.0's

-- WillNorris - 30 Sep 2010

Next release is 1.1.0.

So this bug item should have been marked Major and 1.1.0. Not patch and n/a. Good that I do not trust you suckers and double check. Otherwise this item would not have been listed in the 1.1.0 release note

-- KennethLavrsen - 03 Oct 2010

I have a short question: Is this bug meant that everybody listed in the WebNotify gets an email even if he has no read access to the topic?

I don't think this is a bug but rather a feature. Otherwise I don't need read permissions because everybody who has write access to WebNotify can read my topics by adding his name to the list. For me this sounds like a serious security issue.

-- HolgerHain - 04 Oct 2010

ItemTemplate edit

Summary No notifications sent in a protected web
ReportedBy TWiki:Main.ArthurClemens
Codebase 1.0.9
SVN Range TWiki-5.0.0, Fri, 12 Sep 2008, build 17509
AppliesTo Extension
Component MailerContrib
Priority Normal
CurrentState Closed
WaitingFor WillNorris
Checkins distro:2ce481429a85 distro:944011d48a5f distro:a61c94da5d2b distro:d0fcdb2cfd40 distro:a81fa5802943
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r17 - 04 Oct 2010, KennethLavrsen - This page was cached on 17 Oct 2018 - 18:12.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy