[57north-discuss] Bug Finding
Robert McWilliam
rmcw at allmail.net
Fri Jun 6 00:34:13 UTC 2014
On Fri, Jun 6, 2014, at 12:05 AM, Iain R. Learmonth wrote:
> On Thu, Jun 05, 2014 at 11:15:33PM +0100, Calum Enterobsidian wrote:
> > Spotted an issue with the door opening system, I paid my membership on
> > tuesday and Carl updated it, but it says I'm unable to open it because I
> > haven't paid. As far as I know, I've never had it say that I've paid, even
> > though my membership is always up to date.
>
> According to the database, you are marked as paid.
>
> According to Rob, this should give you the correct criteria for opening
> the
> door.
>
> According to you, it doesn't work.
>
> One of these things is broken.
>
Hmm, I've done some poking and hackhub is definitely supposed to be
checking the right thing [1].
What it's checking currently returns True for Enterobsidian. That check
returning False is the only reason you should get the message that you
have to pay. Only possibilities I can think of for how you would manage
to get that message today would be if it was being cached somewhere (I'm
pretty sure it's not being cached by hackhub - things between there and
your device are unfortunately outside my control[2]) or you're (or
rather whatever device you were using is) logged in as someone else.
I guess grab me next time you're at the space (or anybody is at the
space, so it's OK to be unlocking the door) and I can try adding some
debug output to see what's going wrong.
If anybody else is seeing this message when they think they shouldn't
please speak up: more data points might point to what's going wrong.
If anybody else wants to have a look at the code they should speak up
too[3]. All bugs are shallow with enough eyes etc.
Robert
[1] For certain values of right: it checks if the user has a recorded
payment for either of the last two months. This isn't the correct
definition of member according to our articles of assocition, but surely
nobody believes anything written in the articles...
[2] Come the revolution...
[3] This is my umpteenth reminder that I should really get this code
published...
--
Robert McWilliam rmcw at allmail.net www.ormiret.com
Disclaimer: Opinions cited by me are not necessarily my opinions.
Facts cited by me are not necessarily facts.
More information about the 57north-discuss
mailing list