Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-Authentication CPAN distribution.

Report information
The Basics
Id: 35030
Status: resolved
Priority: 10/
Queue: CGI-Application-Plugin-Authentication

People
Owner: SILASMONK [...] cpan.org
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.12
  • 0.13
  • 0.14
  • 0.15
  • 0.16
Fixed in: 0.17



Subject: 50_driver_dbi fails
DBD::SQLite 1.13. Windows XP Prof. t\50_driver_dbi...............DBD::SQLite::st execute failed: database schema has changed(1) at dbdimp.c line 421 at C:\cpan\14\CGI-Application-Plugin-Authentication-0.12\blib\lib/CGI/Application/Plugin/Authentication/Driver/DBI.pm line 314. Error executing class callback in prerun stage: database schema has changed(1) at dbdimp.c line 421 at C:\cpan\14\CGI-Application-Plugin-Authentication-0.12\blib\lib/CGI/Application/Plugin/Authentication/Driver/DBI.pm line 314. # Looks like you planned 74 tests but only ran 68. # Looks like your test died just after 68. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 6/74 subtests Also 50_driver_htpasswd.t fails without Crypt::PasswdMD5, because only Apache::Htpasswd 1.8 requires it on Linux. In general look at cpantesters reports at http://cpantesters.perl.org/show/CGI-Application-Plugin-Authentication.html#CGI-Application-Plugin-Authentication-0.12 - there are more errors. -- Alexandr Ciornii, http://chorny.net
I can reproduce this by installing CGI::Application::Plugin::DBH and Apache::HTpasswd on windows and running the tests. The Linux issue can be fixed by making the relevant scripts check for the presence of that module. It probably won't be fixed in the next release as I would like to get the github repository a little more sane.
The *dbi.t issue appears to be because the SQLite database is changed whilst cached SQL statements are in use. I am not sure if cached SQL statements are worth the hassle, but it should be possible to fix this issue in the test script alone by refresshing the DBI handle.
The HTpasswd issue I have traced to within the Apache::Htpassd::htCheckPassword. There are two long strings compared which appear to be identical to the eye, but are not in fact. This seems to be something to do with end of line characters but I am not sure how to get this working.
1.) Upgrading DBD::SQLite to the latest version fixes the 50_driver_dbi.t issues. 2.) I have upgraded the version recomendation on Apache::Htpasswd to 1.8. This simplifies our version management considerably. 3.) The issues with Apache::Htpasswd on windows I have moved into a new low priority ticket #53944. Altogether this ticket should be closed after 0.17.