Tracker log

An overview of recent activity in the tracker.

Hedley Roos added a new response to »Templates to allow manager to set subscriptions«:

Someone named Paul mailed me but the mail has no valid reply-to address. In the hope that this answers his question re applying the patch...

Typically you would cd to the directory where NotificationTool.py lives, then do "patch -p1 < /path/to/NotificationTool.py.patch". If that does not work you can always hack NotificationTool.py manually. In the patch file lines starting with a "-' must be deleted and lines starting with a "+" added. Other lines are purely for context.

Added 86 day(s) ago.

Lucie Lejard added a new response to »Unsubscribing does not work«:

Note that this issue is a duplicate of http://plone.org/products/cmfnotification/issues/32 and can be closed.

Added 321 day(s) ago.

New issue »Unsubscribing does not work« added by Lucie Lejard

Using a vanilla Plone 3.3.5 instance and Products.CMFNotification 2.2-rc2.

As an admin I created:
 * a member "member1"
 * a page "page1" and published it
 * I quickinstalled the CMF Notifications product and followed the instructions at http://plone.org/[…]/how-to-set-up-cmf-notification-in-2-minutes to set it up.

As the user "member1", I subscribed to "page1".

As an admin, I modified "page1". "member1" received an email.

As the user "member1", I unsubscribed to "page1".

As an admin, I modified "page1" and "member1" received an email.

Added 387 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

> It seems like I need to add * :: * on all the rules for
> users the very first time using CMF Notification. If
> not, the application does not work. Once I have "primed
> the pump", I can then remove it if I don't want to use
> * :: *. Are you getting the same response as well?

Not at all, and it should not be the case. You may want to look at the "troubleshooting" how-to (http://plone.org/[…]/how-to-troubleshoot-your-configuration) to see why e-mails are not sent when you think they should be.


> Also, there is also one more question under issue #32.
> Is there a way for me to look at the list of email
> subscriptions? I don't quite know where to look for
> this list.

As indicated in my first reply, there is currently no user interface that lists e-mail subscriptions, unfortunately. Some code was contributed a while ago (hmmm, 4 years ago) but was never included (see http://plone.org/products/cmfnotification/issues/7). In the meantime, if you are a developer, you may see subscriptions by looking at the "_subscriptions" attribute of the "portal_notification" tool.

Added 392 day(s) ago.

Angela Wong added a new response to »Unable to unsubscribe«:

Thanks Damien. It seems like I need to add * :: * on all the rules for users the very first time using CMF Notification. If not, the application does not work. Once I have "primed the pump", I can then remove it if I don't want to use * :: *. Are you getting the same response as well?

Also, there is also one more question under issue #32. Is there a way for me to look at the list of email subscriptions? I don't quite know where to look for this list.

Thanks,
Angela

Added 392 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

Issue state: ConfirmedResolved.
Added 394 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

When you log in, Plone updates the user's last login time, this is why CMFNotification kicks in if you enabled the "member modification" notification.

However, this feature does not work properly at the moment (as you quite clearly saw). I know that there is a configuration form for it, but it has not been tested for years (literally).

Actually, as the documentation says (wink), only those events are implemented (and tested):

"""
    * when an item is created or copy-pasted;
    * when an item is modified;
    * when a workflow transition occurs.

Other notifications might be implemented but, for now, only the three above can be safely used. (In other words, do not trust the configuration form, which includes for example fields for discussion notification, although it is not implemented.)
"""

Member modification notification would not take too much work but I am not too willing to do it these days and no customer ever asked for it. (If you are really interested, you may contact us by e-mail.)

Cheers,

Damien

Added 394 day(s) ago.

Angela Wong added a new response to »Unable to unsubscribe«:

Hi,

When I check Enable member modification notification, no one except the user admin can log in. If I uncheck Enable member modification, anyone can log in. The error message is as follows:

Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 90, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in _call
  Module Products.CMFFormController.ControllerBase, line 231, in getNext
  Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 140, in __call__
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 196, in _exec
  Module None, line 24, in logged_in
   - <FSControllerPythonScript at /intranet/logged_in>
   - Line 24
  Module Products.CMFPlone.MembershipTool, line 303, in loginUser
  Module Products.CMFPlone.MembershipTool, line 389, in setLoginTimes
  Module <string>, line 6, in _facade
  Module plone.protect.utils, line 43, in _curried
  Module Products.CMFPlone.patches.csrf, line 38, in setProperties
  Module Products.CMFCore.MemberDataTool, line 295, in setProperties
  Module Products.PlonePAS.tools.memberdata, line 149, in setMemberProperties
  Module Products.CMFNotification.patches, line 36, in notifyMemberModified
  Module Products.CMFNotification.NotificationTool, line 385, in onMemberModification
  Module Products.CMFNotification.utils, line 24, in getBasicBindings
  Module Products.CMFCore.utils, line 123, in getToolByName
AttributeError: portal_membership

Now, even when I check Enable member modification notification, the application no longer notifies anyone for any modifications done in the folder. It stopped working for some reason. I have subscribe to a normal folder called Subscription. I got this error:
2011-01-10T14:12:57 WARNING CMFNotification No mail template for label '' for 'wf_transition' notification of 'intranet/subscription'

Thanks,
Angela

Added 395 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

You may want to take a look at this how-to (http://plone.org/documentation/kb/debug-unauthorized) and report the traceback you will see in the site error log.

Added 395 day(s) ago.

Angela Wong added a new response to »Unable to unsubscribe«:

Hi Damien,

Sorry for the late reply. Thanks so much for the latest release. It certainly solved the problem. The news portal does not behave like the other folders and so I tried it out on a normal folder and it worked like a charm. Also, I tried to uninstall your product and it uninstall very easily.

However, I have noticed a new problem. Other users can no longer log in except for the admin user. Even someone with a Manager role can no longer log in. Please advise.

Thanks,
Angela

Added 395 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

I have fixed the aforementioned bug and released a new version 2.2-rc2. Could you try it out and report whether this has fixed your bug? Thanks.

Please note that you do not need to reinstall the product in the Plone portal. Actully, you SHOULD NOT, since this will wipe out the current configuration and subscriptions. I am working on it. ;)

Target release: None2.2.
Added 399 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

1. Check that the user you subscribed with has access to private content (or whatever is the initial state of your workflow). If a user does not have access to an item, no notification is sent.

2. Check that the user you subscribed with has an e-mail address. This is usually the case, unless you are using the "root" administrator of your Zope instance, in which case you will have to specify an e-mail address in your preferences.

3. Check that you have subscribed to a "folderish" item _above_ "news". That would mean subscribing to the whole portal. It looks like subscriptions on special folders "news" and "events" are not propagated. I'll check that more thorougly and fix it.

Added 399 day(s) ago.

Angela Wong added a new response to »Unable to unsubscribe«:

1. I am running Plone 3.3.5

2. Yes. I have enabled extra subscriptions

3. The following errors showed up:
2011-01-04T16:31:51 WARNING CMFNotification No addresses for label '' for 'wf_transition' notification of 'intranet/news/test-1'
------
2011-01-04T16:34:33 WARNING CMFNotification No addresses for label '' for 'wf_transition' notification of 'intranet/news/test-1'
------
2011-01-04T16:35:23 WARNING CMFNotification No addresses for label '' for 'item_creation' notification of 'intranet/news/news-2'
------
2011-01-04T16:36:22 WARNING CMFNotification No addresses for label '' for 'wf_transition' notification of 'intranet/news/news-2'
------
2011-01-05T10:51:04 WARNING CMFNotification No addresses for label '' for 'wf_transition' notification of 'intranet/news/news-2'


Added 400 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

1. I would like to know which version of Plone you are running.

2. Can you confirm that the "Enable extra subscriptions" check box is ticked in the CMFNotification configuration form?

3. You will find some debugging advices here (http://plone.org/[…]/how-to-troubleshoot-your-configuration). Ticking the "Toggle debug mode" check box and looking at the event log (_not_ the error_log) will tell you what is happening and, most of the time, why.

Issue state: RejectedConfirmed.
Added 400 day(s) ago.

Angela Wong added a new response to »Unable to unsubscribe«:

I removed all the "*:*" for:
Enable item creation notification
Enable item modification notification
Enable item removal notification
Enable workflow transition notification

I left the following mail templates in place for each of the above:
* :: string:creation_mail_notification
* :: string:modification_mail_notification
* :: string:removal_mail_notification
* :: string:workflow_mail_notification

Now even when I am subscribed, I do not receive any email notifications for any additions and changes to the News folder.

Any advise would be most appreciated.

Thanks,
Angela

Added 401 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

If you followed the "how to", you probably set the users rule to something like "* :: *", didn't you?

That means that all users will be notified, whether they have manually subscribed or not. If you want to notify only users who have manually subscribed to items, you need to remove the "* :: *" rule(s) and leave the field(s) empty.

Added 401 day(s) ago.

Angela Wong added a new response to »Unable to unsubscribe«:

Hi Damien,

I reisntalled the product on a new Plone site and followed the instructions provided in the "how-to-setup-2-minutes.txt". I went to the News tab and in the Mail Subscription portlet, I clicked on Subscribe. Every time I added a news article or changed the workflow of the item, I received an email notification.

However, when I unsubscribed myself from the News folder, I am still receiving email notifications for news items added and workflow changes of that item. I no longer see the Unsubscribe button anyone which implies that I have already unsubscribed from the mailing list. However, I am still receiving email notification.

Please advise.

Thanks,
Angela

Added 401 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

Hello,

Uninstallation issues have indeed been reported (http://plone.org/products/cmfnotification/issues/31). Not knowing which error you got, I can only guess that you had the same one as mentioned in issue #31. Here is a work around:

For the record, one can work around this bug by going to the portlet management interface (by appending "@@manage-portlets" to the URL of the root of the portal) and removing the "subscription portlet".

Added 407 day(s) ago.

Angela Wong added a new response to »Unable to unsubscribe«:

Hi Damien,

I have tried a few times but was unable to unsubscribe. I then tried to uninstall the product but to no avail. I had to literally wipe out the entire plone installation before I could remove the product. I installed the product on a clean plone installation (3.3.5) without any other products. Since then I have been afraid to install the product as I have done it twice and had to delete my plone installation twice. Can you uninstall the product without any issues?

Thanks,
Angela

Added 407 day(s) ago.

Damien Baty added a new response to »Unable to unsubscribe«:

Sorry for the late answer.

Unfortunately, I cannot reproduce the issue. Could you please confirm that you are still having the problem?

Here is what I do:

1. I visit the home page of the Plone site.

2. I click on the "Subscribe" button in the subscription portlet. I am now subscribed.

3. I click on the "Unsubscribe" button in the subscription portlet. I am no longer subscribed.

If you are following a different scenario, I would need to know more to provide help: what you do, and what makes you think that the user cannot unsubscribe.

As for your question, there is currently no user interface that lists e-mail subscriptions. Some code was contributed a while ago (hmmm, 4 years ago) but was never included (see http://plone.org/products/cmfnotification/issues/7). In the meantime, if you are a developer, you may see subscriptions by looking at the "_subscriptions" attribute of the "portal_notification" tool.

Issue state: UnconfirmedRejected.
Responsible manager: (UNASSIGNED)dbaty.
Added 407 day(s) ago.