Menu

#386 Database Error when logging in as non-wikiword

Database
closed
5
2014-05-05
2004-10-11
No

Running cvs 10/7/2004 version, crao theme, mysql backend. When
I log in using a non-wikiword (i.e. "foo"), the following error is
displayed:

lib/WikiDB/backend/PearDB.php:846: Fatal[256]:
wikidb_backend_peardb_mysql: fatal database error

DB Error: unknown error

( [nativecode=1065 ** Query was empty])

lib/WikiUserNew.php:1672: Notice[8]: Object to string conversion

lib/WikiUserNew.php:1672: Warning[512]: Object

lib/WikiUserNew.php:1682: Notice[8]: Object to string conversion

Fatal PhpWiki Error

lib/WikiDB/backend/PearDB.php:846: Fatal[256]:
wikidb_backend_peardb_mysql: fatal database error

DB Error: unknown error

( [nativecode=1065 ** Query was empty])

Notice: Undefined property: _user in /home/phil/public_html/html/
lib/main.php on line 596

It appears that parsing the non wiki-word username causes the
problem. Wikiwords work fine.

Login logic should catch this and either disallow non wiki-words, or
accept them and work right.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    This is similar to
    http://sourceforge.net/tracker/index.php?
    func=detail&aid=1004089&group_id=6121&atid=106121

     
  • Nobody/Anonymous

    Logged In: NO

    This is similar to
    http://sourceforge.net/tracker/index.php?
    func=detail&aid=1004089&group_id=6121&atid=106121

     
  • Reini Urban

    Reini Urban - 2005-01-25

    Logged In: YES
    user_id=13755

    Cannot reproduce anymore: (current CVS)

    define('THEME', 'Crao');
    $USER_AUTH_ORDER = array("Db","PersonalPage");
    define('DATABASE_TYPE','SQL');

    Is it fixed your you also?

     

Log in to post a comment.