• Possible bug with bbs.post_msg()

    From Nightfox@VERT/DIGDIST to Digital Man on Fri Oct 7 23:44:09 2011
    Hi DM -ããI think I may have found a bug with the bbs object's post_msg() method. If youãpass in a reply header whose "from" property is a blank string, sbbsctrl willãcrash. I found this in a script I have that lists messages in a sub-board andãallows the user to select one to read and optionally reply to it. I'm usingãthe daily build from September 20.ããThere's a message that was posted in the Synchronet Discussion sub on Dove-Netãtoday (October 7) that has a blank "from" name. My script gets a messageãheader from MsgBase.get_msg_header(), and in this case, it's "from" name wasãblank; if I select to reply to the message, my script then passes that messageãheader object to bbs.post_msg() (as the 3rd parameter), and at that point, myãsbbsctrl would crash. I tried it several times to verify the crash and wasãable to reproduce it each time.ããMy workaround was to make sure the "from" name in the header is set toãsomething if it's blank - I set it to "All" in that case. Then, when I passãthe header object to bbs.post_msg(), "All" becomes the default "To" name forãmy reply, and sbbsctrl doesn't crash.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digdist.bbsindex.comã
  • From Corey@VERT/TSGC to Nightfox on Sat Oct 8 02:33:24 2011
    Re: Possible bug with bbs.post_msg()ã By: Nightfox to Digital Man on Fri Oct 07 2011 11:44 pmãã > Subject: Possible bug with bbs.post_msg()ã > @VIA: DIGDISTã > @MSGID: <4E8FF139.1151.sync_js@digitaldistortionbbs.com>ã > @TZ: c1e0ã > Hi DM -ã > ã > I think I may have found a bug with the bbs object's post_msg() method. If ã > pass in a reply header whose "from" property is a blank string, sbbsctrl wilã > crash. I found this in a script I have that lists messages in a sub-board aã > allows the user to select one to read and optionally reply to it. I'm usingã > the daily build from September 20.ã > ã > There's a message that was posted in the Synchronet Discussion sub on Dove-Nã > today (October 7) that has a blank "from" name. My script gets a messageã > header from MsgBase.get_msg_header(), and in this case, it's "from" name wasã > blank; if I select to reply to the message, my script then passes that messaã > header object to bbs.post_msg() (as the 3rd parameter), and at that point, mã > sbbsctrl would crash. I tried it several times to verify the crash and wasã > able to reproduce it each time.ã > ã > My workaround was to make sure the "from" name in the header is set toã > something if it's blank - I set it to "All" in that case. Then, when I passã > the header object to bbs.post_msg(), "All" becomes the default "To" name forã > my reply, and sbbsctrl doesn't crash.ã > ã > Nightfoxã > ããeven I work with java. err and pizza.ãã"Practise safe Lunch, Use a Condiment"ããã---ã þ Synchronet þ Three Stooges Gentlemens Club - Las Vegas, Nvã
  • From Digital Man@VERT to Nightfox on Tue Oct 11 18:09:15 2011
    Re: Possible bug with bbs.post_msg()ã By: Nightfox to Digital Man on Fri Oct 07 2011 11:44 pmãã > Hi DM -ã >ã > I think I may have found a bug with the bbs object's post_msg() method. Ifã > you pass in a reply header whose "from" property is a blank string,ã > sbbsctrl will crash. I found this in a script I have that lists messagesã > in a sub-board and allows the user to select one to read and optionallyã > reply to it. I'm using the daily build from September 20.ã >ã > There's a message that was posted in the Synchronet Discussion sub onã > Dove-Net today (October 7) that has a blank "from" name. My script gets aã > message header from MsgBase.get_msg_header(), and in this case, it's "from"ã > name was blank; if I select to reply to the message, my script then passesã > that message header object to bbs.post_msg() (as the 3rd parameter), and atã > that point, my sbbsctrl would crash. I tried it several times to verifyã > the crash and was able to reproduce it each time.ã >ã > My workaround was to make sure the "from" name in the header is set toã > something if it's blank - I set it to "All" in that case. Then, when Iã > pass the header object to bbs.post_msg(), "All" becomes the default "To"ã > name for my reply, and sbbsctrl doesn't crash.ããOkay, I've added this bug report to the to-do list.ãã digital manããSynchronet "Real Fact" #32:ãThe Synchronet web user interface was contributed by Robert Couture, Runemaster.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã