Experience with the email notification plugin?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Experience with the email notification plugin?

Robin Fernandes
Hi,

Is anyone comfortably running the email notification plugin?

I'm seing quite a lot of strange behaviour.
For example, if I understand correctly, the plugin is supposed to
programatically create a new class, and add an instance of that class
to the user's page when they first create a subscription.

Looking at the database after subscribing to a page, I can see some
new properties but they don't seem to be associated with any objects
(and they have an ID of 0, which I'm guessing isn't healthy):

select * from xwikiproperties order by abs(XWP_ID) desc;

+-------------+-------------------------------+--------------------------------------------+
| XWP_ID      | XWP_NAME                      | XWP_CLASSTYPE        
                    |
+-------------+-------------------------------+--------------------------------------------+

[...]

|     -512550 | groups                        |
com.xpn.xwiki.objects.StringProperty       |
|     -512550 | levelsye                      |
com.xpn.xwiki.objects.StringProperty       |
|     -512550 | allow                         |
com.xpn.xwiki.objects.IntegerProperty      |
|           0 | subscribedDocuments           |
com.xpn.xwiki.objects.DBStringListProperty |
|           0 | subscribedWebs                |
com.xpn.xwiki.objects.DBStringListProperty |
|           0 | schedulerName                 |
com.xpn.xwiki.objects.StringListProperty   |
+-------------+-------------------------------+--------------------------------------------+


select XWO_NAME, XWO_ID from xwikiobjects where XWO_ID='0';
Empty set (0.00 sec)

Would we perhaps expect to see something like this if the call to
doc.addobject() is failing somewhere?


After manually adding an instance of the email notification object to
my user page things
seem to be working, so far.

Regards,
Robin



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Experience with the email notification plugin?

Robin Fernandes
Ok, I tried my hand at updating the plugin:
http://www.xwiki.org/xwiki/bin/view/Dev/EmailNotificationSuggestedFixes
.
Any input appreciated.

Cheers,
Robin.

On 05/02/06, Ludovic Dubost <[hidden email]> wrote:

>
> It's possible the email notification plugin needs a little refreshing
> since it was made
> Probably some properties are not set properly before saving the object
>
> Ludovic
>
> Robin Fernandes a écrit :
> > Hi,
> >
> > Is anyone comfortably running the email notification plugin?
> >
> > I'm seing quite a lot of strange behaviour.
> > For example, if I understand correctly, the plugin is supposed to
> > programatically create a new class, and add an instance of that class
> > to the user's page when they first create a subscription.
> >
> > Looking at the database after subscribing to a page, I can see some
> > new properties but they don't seem to be associated with any objects
> > (and they have an ID of 0, which I'm guessing isn't healthy):
> >
> > select * from xwikiproperties order by abs(XWP_ID) desc;
> >
> > +-------------+-------------------------------+--------------------------------------------+
> > | XWP_ID      | XWP_NAME                      | XWP_CLASSTYPE
> >                     |
> > +-------------+-------------------------------+--------------------------------------------+
> >
> > [...]
> >
> > |     -512550 | groups                        |
> > com.xpn.xwiki.objects.StringProperty       |
> > |     -512550 | levelsye                      |
> > com.xpn.xwiki.objects.StringProperty       |
> > |     -512550 | allow                         |
> > com.xpn.xwiki.objects.IntegerProperty      |
> > |           0 | subscribedDocuments           |
> > com.xpn.xwiki.objects.DBStringListProperty |
> > |           0 | subscribedWebs                |
> > com.xpn.xwiki.objects.DBStringListProperty |
> > |           0 | schedulerName                 |
> > com.xpn.xwiki.objects.StringListProperty   |
> > +-------------+-------------------------------+--------------------------------------------+
> >
> >
> > select XWO_NAME, XWO_ID from xwikiobjects where XWO_ID='0';
> > Empty set (0.00 sec)
> >
> > Would we perhaps expect to see something like this if the call to
> > doc.addobject() is failing somewhere?
> >
> >
> > After manually adding an instance of the email notification object to
> > my user page things
> > seem to be working, so far.
> >
> > Regards,
> > Robin
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > --
> > You receive this message as a subscriber of the [hidden email] mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
>
>
> --
> Ludovic Dubost
> XPertNet: http://www.xpertnet.fr/
> Blog: http://www.ludovic.org/blog/
> XWiki: http://www.xwiki.com
> Skype: ldubost AIM: nvludo Yahoo: ludovic
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Experience with the email notification plugin?

jeremi joslin
On 2/20/06, Robin Fernandes <[hidden email]> wrote:
> Ok, I tried my hand at updating the plugin:
> http://www.xwiki.org/xwiki/bin/view/Dev/EmailNotificationSuggestedFixes
> .
> Any input appreciated.
>
> Cheers,
> Robin.
>
Ok,
Thanks.
I will try it this week end.

Jérémi

--
Blog: http://www.jeremi.info
LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724
Project Manager XWiki: http://www.xwiki.org
skype: jeremi23 -- msn et gtalk : [hidden email]


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws