Item9898: Trailing space at the end of WebNotify subscriber list causes the subscriber to be missed
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
In
WebNotify, I had a list item with a trailing space:
* Main.UseraCompany: <space>
* Main.UserbCompany: SomeTopic
While running a type of mailnotify script, the following code showed that
UseraCompany was not being read:
my $wn = Foswiki::Contrib::MailerContrib::WebNotify->new($foswiki, $web, $Foswiki::cfg{NotifyTopicName});
print $wn->stringify(1)
The output was:
* %USERSWEB%.UserbCompany: SomeTopic
After removing the trailing space, the output was, correctly,
* %USERSWEB%.UseraCompany: *
* %USERSWEB%.UserbCompany: SomeTopic
--
DanDascalescu - 26 Oct 2010
I'd say that's more than low. Raising to Normal. Need to confirm on Foswiki 1.1
--
PaulHarvey - 27 Oct 2010
Hmmm, something is wrong there, but not what you might think. By leaving empty space after the : you are asking for notification of changes to an empty list of topics i.e. no topics. The error - if there is one - comes about when you "remove the trailing space" as that should
not notify
*
, it should still notify for the empty list i.e. no topics.
Either way I can't reproduce this on the latest code.
--
CrawfordCurrie - 16 Mar 2011