<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="Courier New">Hi Andrew,</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">(1) - MY MISTAKE</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">I completely understand your reason for disabling the deletion of the password column and the alert note is clearly visible.</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">I tried to replicate the 'password into email column' behaviour on a clean virtual machine and it didn't happen again. This must have been a misconfiguration in my original 3.0.16 database (i.e. password stored in password AND email column - probably an auto-form-fill slip in phpmyadmin). I'll try to verify this later with an archived sql-dump, as I have reset the system to an earlier state in the meantime.&nbsp;</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">My apologies, I really should have double-checked before filing this one.</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">(2) - BUG STILL PRESENT</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">@rev 515:&nbsp;</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">upgrade-database.php terminates without any warnings or errors,&nbsp;</font><span style="font-family:'Courier New';font-size:12pt;">but password is still not hashed -&gt; the value is NULL (see column 8 of &nbsp;upgraded database below)</span></div><div><font face="Courier New"><br></font></div><div><div>mysql&gt; select * from cqpwdebug.user_info;</div><div>+----+----------+----------+----------------+----------------------+-------------+---------+----------+-------------+------------+-------------+----------------------+---------------------+---------------------+---------------+-------------------+------------+-------------------+--------------+---------------------------+----------------+-------------------+----------------+-----------+---------+------------+----------+</div><div>| id | username | password | realname &nbsp; &nbsp; &nbsp; | email &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| affiliation | country | passhash | acct_status | verify_key | expiry_time | password_expiry_time | last_seen_time &nbsp; &nbsp; &nbsp;| acct_create_time &nbsp; &nbsp;| conc_kwicview | conc_corpus_order | cqp_syntax | context_with_tags | use_tooltips | thin_default_reproducible | coll_statistic | coll_freqtogether | coll_freqalone | coll_from | coll_to | max_dbsize | linefeed |</div><div>+----+----------+----------+----------------+----------------------+-------------+---------+----------+-------------+------------+-------------+----------------------+---------------------+---------------------+---------------+-------------------+------------+-------------------+--------------+---------------------------+----------------+-------------------+----------------+-----------+---------+------------+----------+</div><div>| &nbsp;1 | mkiller &nbsp;| debugpass &nbsp; &nbsp; | unknown person | markus.killer@uzh.ch | NULL &nbsp; &nbsp; &nbsp; &nbsp;| 00 &nbsp; &nbsp; &nbsp;| NULL &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 | NULL &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5 | &nbsp; &nbsp; &nbsp; &nbsp;-3 | &nbsp; &nbsp; &nbsp; 3 | &nbsp; &nbsp;1000000 | au &nbsp; &nbsp; &nbsp; |</div><div>+----+----------+----------+----------------+----------------------+-------------+---------+----------+-------------+------------+-------------+----------------------+---------------------+---------------------+---------------+-------------------+------------+-------------------+--------------+---------------------------+----------------+-------------------+----------------+-----------+---------+------------+----------+</div><div>1 row in set (0.00 sec)</div></div><div><br></div><div>When trying to login to the upgraded system, I get this message:</div><div><br></div><div><table class="ecxconcordtable" width="100%" style="font-family:'Times New Roman';"><tbody><tr><th class="ecxconcordtable">Your login was not successful.</th></tr><tr><td class="ecxconcorderror">&nbsp;<br><p class="ecxerrormessage">The credentials you entered are not valid.</p>&nbsp;<br></td></tr><tr><td class="ecxconcorderror">&nbsp;<br><p class="ecxerrormessage">Please go back to the log on page and try again.</p></td></tr></tbody></table></div><div><br></div><div>Best wishes,</div><div>Markus</div><div><br></div><br><div>&gt; From: a.hardie@lancaster.ac.uk<br>&gt; To: cwb@sslmit.unibo.it<br>&gt; Date: Wed, 22 Jan 2014 12:04:36 +0000<br>&gt; Subject: Re: [CWB] CQPweb: upgrade-database.php v3.0.16 &gt; v3.1.0<br>&gt; <br>&gt; Hi Markus,<br>&gt; <br>&gt; I have been puzzling over this at great length and have got nowhere. <br>&gt; <br>&gt; (1) The old password column exists because I disabled its deletion to make rollback easier if needed. (There is an alert note in the printed output telling people to drop the password column manually after the fact).<br>&gt; <br>&gt; But the old password going into the email column is something I just can't figure out. It's not happened on the system I upgraded (albeit that wasn't with 512 but an earlier version) and I can't find anything in the code of upgrade-database that ought to alter the contents of the email column in that way.<br>&gt; <br>&gt; (2) Likewise this puzzles me, there WAS a bug that did this, but I thought I had fixed it in commit 502.<br>&gt; <br>&gt; So, if you can add any further details related to this bug that might help me track it down, that would be very much appreciated....<br>&gt; <br>&gt; best<br>&gt; <br>&gt; Andrew.<br>&gt; <br>&gt; -----Original Message-----<br>&gt; From: cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it] On Behalf Of Markus Killer<br>&gt; Sent: 21 January 2014 13:10<br>&gt; To: Open source development of the Corpus WorkBench<br>&gt; Subject: Re: [CWB] CQPweb: upgrade-database.php v3.0.16 &gt; v3.1.0<br>&gt; <br>&gt; upgrade-database.php rev512 runs smoothly now, but there seem to be two more issues:<br>&gt; <br>&gt; (1) - the old password is mapped into table:user_info column:password and accidentally, I think, into column:email as well<br>&gt; <br>&gt; (2) - the password is not hashed (passhash: NULL) and, consequently, authentication fails.<br>&gt; <br>&gt; --&gt; not possible to login as superuser after running upgrade-database.php (unless you manually add passhash)<br>&gt; <br>&gt; <br>&gt; ----------------------------------------<br>&gt; &gt; From: a.hardie@lancaster.ac.uk<br>&gt; &gt; To: m.killer@outlook.com; cwb@sslmit.unibo.it<br>&gt; &gt; Date: Tue, 21 Jan 2014 12:50:34 +0000<br>&gt; &gt; Subject: Re: [CWB] CQPweb: upgrade-database.php v3.0.16&gt; v3.1.0<br>&gt; &gt;<br>&gt; &gt; Think I've squished that one in 512.<br>&gt; &gt;<br>&gt; &gt; Andrew.<br>&gt; &gt;<br>&gt; &gt; -----Original Message-----<br>&gt; &gt; From: cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it] On Behalf Of Markus Killer<br>&gt; &gt; Sent: 21 January 2014 10:48<br>&gt; &gt; To: Open source development of the Corpus WorkBench<br>&gt; &gt; Subject: [CWB] CQPweb: upgrade-database.php v3.0.16&gt; v3.1.0<br>&gt; &gt;<br>&gt; &gt; upgrade-database on exact copy of working v3.0.16 db:<br>&gt; &gt;<br>&gt; &gt; Revision 510.<br>&gt; &gt; mki@ubuntu:/var/www/cqp-web-beta/bin$ sudo php upgrade-database.php Database version is now at &lt; 3.1.0. Database will now be upgraded to 3.1.0...<br>&gt; &gt; A mySQL query did not run successfully!<br>&gt; &gt;<br>&gt; &gt; Original query:<br>&gt; &gt;<br>&gt; &gt; alter table system_messages alter column fromto set default NULL<br>&gt; &gt;<br>&gt; &gt; Error # 1067: Invalid default value for 'fromto'<br>&gt; &gt;<br>&gt; &gt; **************<br>&gt; &gt; DESCRIBE - BEFORE SCRIPT:<br>&gt; &gt;<br>&gt; &gt; mysql&gt; describe cqpwbeta.system_messages;<br>&gt; &gt; +------------+--------------+------+-----+-------------------+-----------------------------+<br>&gt; &gt; | Field | Type | Null | Key | Default | Extra |<br>&gt; &gt; +------------+--------------+------+-----+-------------------+-----------------------------+<br>&gt; &gt; | message_id | varchar(150) | NO | PRI | NULL | | timestamp | timestamp<br>&gt; &gt; | | NO | | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP | header |<br>&gt; &gt; | varchar(150) | NO | | | | content | text | NO | | NULL | | fromto |<br>&gt; &gt; | varchar(150) | NO | | | |<br>&gt; &gt; +------------+--------------+------+-----+-------------------+-----------------------------+<br>&gt; &gt; 5 rows in set (0.00 sec)<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ----------------------------------------<br>&gt; &gt;&gt; From: a.hardie@lancaster.ac.uk<br>&gt; &gt;&gt; To: cwb@sslmit.unibo.it; m.killer@outlook.com<br>&gt; &gt;&gt; Date: Tue, 21 Jan 2014 10:17:22 +0000<br>&gt; &gt;&gt; Subject: Re: [CWB] CQPweb: v 3.1.0 now usable, I think<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; (For the benfit of the peanut gallery: Markus sent me the "describe.... off list, and it had this line:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; | dbname | varchar(200) | NO | PRI | NULL | |<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; )<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; So again, it's a case of rollback being needed so the script can run again.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; The next bug is a phasing issue, it looks as if some of the DB changes which I put in there for 3.0.16 are not in the right place, they should have been assigned to 3.0.15. Commit 510 has all of those that I can find fixed.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; best<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Andrew.<br>&gt; &gt; _______________________________________________<br>&gt; &gt; CWB mailing list<br>&gt; &gt; CWB@sslmit.unibo.it<br>&gt; &gt; http://devel.sslmit.unibo.it/mailman/listinfo/cwb<br>&gt; &gt; _______________________________________________<br>&gt; &gt; CWB mailing list<br>&gt; &gt; CWB@sslmit.unibo.it<br>&gt; &gt; http://devel.sslmit.unibo.it/mailman/listinfo/cwb                                               <br>&gt; _______________________________________________<br>&gt; CWB mailing list<br>&gt; CWB@sslmit.unibo.it<br>&gt; http://devel.sslmit.unibo.it/mailman/listinfo/cwb<br>&gt; _______________________________________________<br>&gt; CWB mailing list<br>&gt; CWB@sslmit.unibo.it<br>&gt; http://devel.sslmit.unibo.it/mailman/listinfo/cwb<br></div></div>
</div>
                                               </div></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>                                               </div></body>
</html>