Menu

#10 Error in first execution

open
nobody
None
5
2001-11-05
2001-11-05
Anonymous
No

Hi,

I having a trouble when I execute Bobomail in first
time. It just show a blank screen with a
user@domain.com that tryed to login.
The next time everything works fine.

Does anybody could help me?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I get the same behaviour. Additionally I'm seeing behaviour
    where instead of a proper page I get nothing more than the
    sid that is in the URL. To be more clear, I get no html,
    the only content is the exact contents of the sid URL field.
    This "seems" to happen randomly and may happen using any
    bobomail function. If I go back and do the same thing
    again, I nearly always get the correct result on the second try.

    Ken Causey
    ken@ineffable.com

     
  • Ken Causey

    Ken Causey - 2002-02-13

    Logged In: YES
    user_id=2193

    As a followup to my own followup...

    I believe I've fixed my own problem where I was getting the
    sid. I had previously set

    Z_DEBUG_MODE = 1

    in bobomail.cgi and

    DEBUG = 1

    in bobomailrc.py. I did this when I was still trying to get
    setup and apparently forgot to change it back. It's not
    clear to me why this resulting in getting results showing
    nothing more than the sid, but in my not completely
    exhaustive testing so far, the problem "seems" to be gone.

    As far as the original issue goes, that remains. To add
    some detail:

    This problem seems to ONLY occur the very first time a user
    logs in (or more specifically could it happen the first time
    a user is added to some internal database or cache?) to
    bobomail. What is output is seems to be

    session.Userid+'@'+bobomailrc.pop3_host

     
  • Ken Causey

    Ken Causey - 2002-02-15

    Logged In: YES
    user_id=2193

    Here's my patch to fix this problem, not sure if this is the
    best way, but it appears to work:

    --- lib/dbm.py.orig Fri Feb 15 12:17:38 2002
    +++ lib/dbm.py Fri Feb 15 12:17:03 2002
    @@ -62,6 +62,9 @@

    def _load(self):
    -
    data = self.db[self.key]
    -
    for key, value in data.items():
    -
    self.__dict__[key] = value
    +
    try:
    +
    data = self.db[self.key]
    +
    for key, value in data.items():
    +
    self.__dict__[key] = value
    +
    except KeyError:
    +
    pass

     

Log in to post a comment.

MongoDB Logo MongoDB