Item9898: Trailing space at the end of WebNotify subscriber list causes the subscriber to be missed

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: MailerContrib
Branches:
Reported By: DanDascalescu
Waiting For:
Last Change By: CrawfordCurrie
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

 

ItemTemplate edit

Summary Trailing space at the end of WebNotify subscriber list causes the subscriber to be missed
ReportedBy DanDascalescu
Codebase 1.0.9
SVN Range
AppliesTo Extension
Component MailerContrib
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r3 - 16 Mar 2011, CrawfordCurrie
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