• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6595: Notifications fail when ALLOWWEBVIEW is used and users follow the example to subscribe

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension MailerContrib Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Notification does not work when ALLOWWEBVIEW is set and email addresses are given

Symptom: We found that on webs where I have ALLOWWEBVIEW set to something (i.e. non-null) users were never notified of any changes. Investigation found that mailnotify properly figures out what the changes are, but failed to send any emails. checkAccessPermission in Access.pm returns 0 (so no mail is sent) because "access not allowed on web" for any user, even if the user was allowed to access the web.

We found that the following was the problem:

The users followed the example from the TWiki documentation for the WebNotify topic):

   * Main.TWikiGuest - guest@example.com
   * Main.RayMikkelson - Ray.Mikkelson@example.com

It turns out that if you do this, the code looks for the email address as a user, and obviously, it cannot find that user in the access list (It ignores the part of the line that actually gave the user wiki name and uses the email instead.)

The following, however works: On the WebNotify page, you must put the entries like so:

   * Main.TWikiGuest 
   * Main.RayMikkelson

It is not clear whether this is a bug or a problem with the documentation. But either the code or the documentation has to change, as a beginning user following precisely the documentation will be disappointed not receiving any notifications.

In fact, at the bottom of the WebChangesAlert (not the WebNotify topic) topic, there is a warning message:

Warning: Because an email address is not linked to a user name, there is no way for TWiki to check access controls for subscribers identified by email addresses. A subscriber identified by an email address alone will only be sent change notifications if the topic they are subscribed to is readable by guest users.

In any case, the suggestion is:

  • Add an example to the documentation without the email address which works in any case.
  • Then either
    • fix the notification code so that it checks for access permissions using the wiki name indicated and uses the email indicated for mailing, or
    • state in the documentation that if the email address is given, this only works for topics that TWikiGuest has read access to.
-- TWiki:Main/RayMikkelson - 2010-10-12

Thanks Ray. Originally posted at TWiki:Support.SID-00994.

-- TWiki:Main.PeterThoeny - 2010-10-12

Simplified the original bug report to be clearer understandable.

-- ThomasWeigert - 2010-12-29

ItemTemplate
Summary Notifications fail when ALLOWWEBVIEW is used and users follow the example to subscribe
ReportedBy TWiki:Main.RayMikkelson
Codebase 4.3.1
SVN Range

AppliesTo Extension
Component MailerContrib
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010-12-29 - ThomasWeigert
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback