Bugzilla – Attachment 23536 Details for
Bug 11124
The staff benchmark script does not work with sql administrator account
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11124: The staff benchmark script does not work with sql administrator account
Bug-11124-The-staff-benchmark-script-does-not-work.patch (text/plain), 2.00 KB, created by
Kyle M Hall (khall)
on 2013-12-13 18:52:49 UTC
(
hide
)
Description:
Bug 11124: The staff benchmark script does not work with sql administrator account
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-12-13 18:52:49 UTC
Size:
2.00 KB
patch
obsolete
>From 8a85b9ceb7d7cb397dd6ae715f3e935db2726cf7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 23 Oct 2013 16:48:14 +0200 >Subject: [PATCH] Bug 11124: The staff benchmark script does not work with sql administrator account > >On step 6 (at least), the circulation and return page redirect to the >select branch page and nothing is done. > >The script should die if the user used is the sql administrator account. > >Test plan: >Suppose that the sql admin account is root/root and koha/koha a superlibrarian account. > >1/ >perl misc/load_testing/benchmark_staff.pl --steps=6 >--url=http://admin.koha.local/cgi-bin/koha/ >--password="koha" --user="koha" >should produce: > ... > Step 6 > ... > >2/ >perl misc/load_testing/benchmark_staff.pl --steps=1 >--url=http://admin.koha.local/cgi-bin/koha/ >--password="root" --user="root" >should produce: >Authentication successful >You cannot use the database administrator account to launch this script > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > misc/load_testing/benchmark_staff.pl | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/misc/load_testing/benchmark_staff.pl b/misc/load_testing/benchmark_staff.pl >index 786b04a..6ccaa49 100644 >--- a/misc/load_testing/benchmark_staff.pl >+++ b/misc/load_testing/benchmark_staff.pl >@@ -18,6 +18,7 @@ use Data::Dumper; > use HTTP::Cookies; > use C4::Context; > use C4::Debug; >+use C4::Members qw ( GetMember ); > use URI::Escape; > > my ($help, $steps, $baseurl, $max_tries, $user, $password,$short_print); >@@ -89,6 +90,9 @@ if( $resp->is_success and $resp->content =~ m|<status>ok</status>| ) { > die "Authentication failure: \n\t" . $resp->status_line; > } > >+die "You cannot use the database administrator account to launch this script" >+ unless defined C4::Members::GetMember(userid => $user); >+ > # remove some unnecessary garbage from the cookie > $cookie =~ s/ path_spec; discard; version=0//; > $cookie =~ s/Set-Cookie3: //; >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11124
:
22316
|
23333
|
23334
|
23335
| 23536 |
23537
|
23538