Update of /cvsroot/popfile/engine/Proxy
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11349/Proxy
Modified Files:
POP3.pm Proxy.pm
Log Message:
More v0.23.0 work; mostly around the test suite and the ability to
change passwords.
*** NOTE: Had to run 'dos2unix' because a number of files had CRLF line
endings. POPFile standard is Unix-style LF only line endings on
files.
*** tests/TestBayes.tst and Classifier/Bayes.pm:
Add tests for APIs that had no tests (and fix the bugs that the tests
showed up!). All APIs now have tests; the new tests cover:
add_account
create_user
get_accounts
get_bucket_id
get_bucket_name
get_user_id
get_user_list
get_user_parameter
get_user_parameter_from_id
get_user_parameter_list
remove_account
remove_user
set_user_parameter_from_id
*** Classifier/Bayes.pm, tests/TestBayes.tst, UI/HTML.pm
create_user now also creates a random password for the user and the
password is displayed when the user is created in the UI.
*** Classifier/Bayes.pm, tests/TestBayes.tst, UI/HTML.pm,
skins/default/configuration-bar.thtml
Added the ability to change password for a user. This is done in the
configuration bar and added new APIs and tests (validate_password and
set_password) for a user.
*** POPFile/API.pm:
Add external access to the following new APIs:
add_account
create_user
get_user_id
get_user_id_from_session
get_user_parameter
get_user_parameter_from_id
get_user_parameter_list
remove_account
remove_user
set_user_parameter_from_id
*** tests/TestHTTP.tst:
Remove redirection tests since this is no longer handled by the HTTP
module.
*** Current state of the test suite:
TestBayesScript fail
TestBayes PASS
TestConfiguration fail
TestHistory fail
TestHTML fail (horribly)
TestHTTP PASS
TestIMAP PASS
TestInsertScript fail
TestLogger PASS
TestMailParse fail
TestModule PASS
TestMQ PASS
TestMutex PASS
TestPipeScript PASS
TestPOP3 fail
TestProxy PASS
TestWordMangle PASS
TestXMLRPC fail
*** TODO
tests/TestModule.tst needs updating for the user_*_config_ APIs that
have been added.
Look into why we get bogus complaints about the primary key not being
unique when we do a database upgrade. I think some of these are
caused by the fact that popfile.sql contains some INSERT statements
and we are getting double inserts. Perhaps the upgrade should be
using UPDATE instead.
Index: POP3.pm
===================================================================
RCS file: /cvsroot/popfile/engine/Proxy/POP3.pm,v
retrieving revision 1.110
retrieving revision 1.111
diff -C2 -d -r1.110 -r1.111
*** POP3.pm 7 Apr 2005 19:54:46 -0000 1.110
--- POP3.pm 21 Aug 2005 22:17:48 -0000 1.111
***************
*** 189,193 ****
# version number
! $self->tee_( $client, "+OK " . $self->config_( 'welcome_string' ) . "$eol" );
# Compile some configurable regexp's once
--- 189,194 ----
# version number
! $self->tee_( $client, "+OK " . $self->config_( 'welcome_string' ) .
! "$eol" );
# Compile some configurable regexp's once
Index: Proxy.pm
===================================================================
RCS file: /cvsroot/popfile/engine/Proxy/Proxy.pm,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** Proxy.pm 23 May 2005 10:42:50 -0000 1.61
--- Proxy.pm 21 Aug 2005 22:17:48 -0000 1.62
***************
*** 478,482 ****
my ( $self, $token ) = @_;
! return $self->classifier_()->get_session_key_from_token( $self->{api_session__}, $self->name(), $token );
}
--- 478,485 ----
my ( $self, $token ) = @_;
! return $self->classifier_()->get_session_key_from_token(
! $self->{api_session__},
! $self->name(),
! $token );
}
|