Subj : Errors tryign to reply to a poll message
To   : Nightfox
From : Digital Man
Date : Wed Nov 01 2017 03:40 pm

 Re: Errors tryign to reply to a poll message
 By: Digital Man to Nightfox on Wed Nov 01 2017 03:24 pm

>   Re: Errors tryign to reply to a poll message
>   By: Nightfox to Digital Man on Wed Nov 01 2017 01:01 pm
>
>  > Hi DM,
>
>  > With my JavaScript message reader, I've noticed I'm getting a weird error
>  > when I try to reply to a poll message.  My reader allows voting, but I
>  > wanted to also reply to the poster of a poll message with some comments.
>  > My script calls bbs.post_msg() to post the reply, and I pass it the
>  > sub-board code, reply mode, and message header.  On that line, I get the
>  > following error:
>
>  > Error: can't convert 2147483648 to an integer
>
>  > Just before that line, I tried having my script output the sub-board
>  > code, reply mode, and message header properties.  The number that it was
>  > outputting appears to be the auxattr property of the message header.  But
>  > when my script outputs that information, it generates a different error
>  > when it calls bbs.post_msg():
>  > Error: line 865 js_ParseMsgHeaderObject js_msgbase.c JS_GetPrivate failed
>
>  > So it seems something odd is going on if it gets a different error just
>  > by outputting some information before calling that function.  The
>  > sub-board code looks right, and the reply mode value it's using is 64.
>  > I'm not sure what might be wrong.  My reader doesn't have a problem
>  > replying to normal messages; this is only happening when replying to a
>  > poll message.
>
> Have you tried it with a different poll?
>
> I suspect the problem is with a poll whose results are "closed" (not visible
> until the poll has been closed), as that sets bit 31 of the auxattr header
> field and there's an issue converting that in JS.

I just committed what I hope is a fix. Please try it and let me know. I suspect
this problem only occurs with polls whose results-visibility are set to
"closed".

                                           digital man

Synchronet/BBS Terminology Definition #44:
SEXPOTS = Synchronet External Plain Old Telephone System (POTS) service
Norco, CA WX: 69.7�F, 53.0% humidity, 6 mph NE wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net