Marc Delisle
6f8a253daf
Merge pull request #1407 from madhuracj/tokenMismatch
...
Workaround for token mismatch error on server session timeout for config and http authentication types
2014-11-26 07:42:46 -05:00
Madhura Jayaratne
783cacbd1e
Workaround for token mismatch error on server session timeout for config and http authentication types
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-11-20 17:37:39 +05:30
Michal Čihař
c11efb678d
This is binary string, can not use mb_strlen
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-11-20 10:28:53 +01:00
Robert Scheck
491c426623
Patch by Robert Scheck <robert@fedoraproject.org> for phpMyAdmin 4.2.6
...
which enhances cookie encryption/decryption by the optional usage of
PHP OpenSSL. Unfortunately PHP Mcrypt is not shipped by all Linux
distributions however PHP OpenSSL is often enabled by default.
PHP < 5.3.4 does not support passing an IV, thus this has been added as
a requirement. I could have used 'BF-CBC' rather 'AES-128-CBC' but Blowfish
(even it is fast) is seen by experts as weaker algorithm than
AES. If this should be a show-stopper for upstream merging just replace
'AES-128-CBC' by 'BF-CBC', please.
Patch adapted for 4.3.x and tests modified by Marc Delisle
Signed-off-by: Marc Delisle <marc@infomarc.info>
2014-11-19 07:38:32 -05:00
Hugues Peccatte
42e0bdd47a
Fix typos.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-11-02 18:32:42 +01:00
Hugues Peccatte
74f0beda8f
Fix syntax error.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-20 20:56:12 +02:00
Madhura Jayaratne
aaa2116b01
Fix some of the failing tests
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-10-18 21:59:33 +05:30
Hugues Peccatte
0ee7063220
Replace PMA_String calls by mb_* calls in tests.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-29 18:52:54 +02:00
Hugues Peccatte
9b77d746ab
Mass modifications to use PMA_String.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-06 10:44:03 +02:00
Hugues Peccatte
4960f208e2
Add PHPDoc.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-08-30 21:14:30 +02:00
Hugues Peccatte
8558047094
Coding style modifications.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-08-09 23:21:13 +02:00
Michal Čihař
6be21dcb47
Merge pull request #1251 from WhaleWatching/console
...
PMA console, history and bookmarks.
2014-06-25 15:37:29 +02:00
Edward Cheng
fb14e92d62
PMA console, history and bookmarks.
...
Modified: resizer of navigation bar: whole-time-bind events removed.
Signed-off-by: Edward Cheng <c4150221@gmail.com>
2014-06-25 21:22:33 +08:00
Michal Čihař
dca981481d
Remove plugin manager and observer classes
...
We don't really need the observer pattern, so let's simplify the code.
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-06-25 09:25:59 +02:00
Michal Čihař
51d4d514f9
Adjust tests to new encryption
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-06-12 14:43:10 +02:00
Michal Čihař
a7bcbbc35f
Wrap long line
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-06-12 10:51:29 +02:00
Michal Čihař
20640592f0
Always use phpseclib for cookie encryption
...
- it provides fallback in case mcrypt is not found
- we now use AES in both mcrypt and PHP code case
- cleanup the code by removing mcrypt conditials
- rename some methods and cookies so that they don't refer to
implementation details
- switching encryption implementations no longer invalidates the
credentials
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-06-12 10:39:52 +02:00
Michal Čihař
0652ca9ccd
Merge remote-tracking branch 'origin/QA_4_2'
2014-06-12 10:19:00 +02:00
Michal Čihař
bc60315023
Adjust tests to new IV logic
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-06-12 10:18:45 +02:00
Michal Čihař
3e4da830ee
Correctly set static properties in testsuite
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-06-06 13:01:14 +02:00
Marc Delisle
84f135d048
Fix coding style
...
Signed-off-by: Marc Delisle <marc@infomarc.info>
2014-06-03 12:40:21 -04:00
Michal Čihař
3eccb9eb26
Improve signon-script example
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-05-09 18:07:39 +02:00
Michal Čihař
8bc5e560e8
Uset errno before testing
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-05-09 16:19:59 +02:00
Michal Čihař
2a66d750a4
Use correct mock value
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-05-09 16:11:30 +02:00
Michal Čihař
0f39a811ce
The DBI->getError is no longer called twice
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-05-09 16:03:00 +02:00
Michal Čihař
d559fa6a21
Remove trailing whitespace from the code
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-03-20 09:36:48 +01:00
Jeff Chan
3e65f88dee
Fix AuthenticationCookieTest::testAuth to have proper includes
...
Also change testAuthSetUserWithHeaders to have more flexible assertion
Signed-off-by: Jeff Chan <jefftchan@gmail.com>
2014-03-14 19:28:17 +00:00
Jeff Chan
0216a5a4a1
Move slow tests in HHVM to group medium
...
These tests were failing on HHVM because of the default 3 second timeout.
Yes, HHVM is supposed to be faster, but there's a "warmup" time for scripts
in JIT mode (which is on by default). I suspect that's why they're failing.
Signed-off-by: Jeff Chan <jefftchan@gmail.com>
2014-03-13 05:20:31 +00:00
Jeff Chan
3f0f634c38
Import config to make unit tests friendlier to running independently
...
The HHVM test runner runs the unit tests in parallel. Currently some tests
fail because not all the dependencies are properly included.
This is similar to 607cb3b0b3
Signed-off-by: Jeff Chan <jefftchan@gmail.com>
2014-03-12 03:30:36 +00:00
Jeff Chan
607cb3b0b3
Import dependencies to make unit tests friendlier to running independently
...
The HHVM test runner runs the unit tests in parallel. Currently some tests
fail because not all the dependencies are properly included.
This is similar to 659efe1a88
Signed-off-by: Jeff Chan <jefftchan@gmail.com>
2014-03-10 03:26:24 +00:00
Jeff Chan
659efe1a88
Import dependencies to make unit tests friendlier to running independently
...
The HHVM test runner runs the unit tests in parallel. Currently some tests
fail because not all the dependencies are properly included.
This is similar to 840f7b1215
Signed-off-by: Jeff Chan <jefftchan@gmail.com>
2014-03-09 08:16:24 +00:00
Michal Čihař
3f9c963abe
Merge remote-tracking branch 'origin/QA_4_1'
2014-03-03 09:28:55 +01:00
Dhananjay Nakrani
76c57710f0
Display session expiry msg after auto-redirect.
...
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
2014-03-03 11:49:17 +05:30
minhaz
f1529325ff
coding style fix
...
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-03-01 02:49:56 +05:30
Chirayu Chiripal
dec30ffd6d
Feature Request #1460 Redirect to login page after session has expired
...
Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
2014-02-27 17:45:46 +05:30
Michal Čihař
c189d3a410
Merge commit '501d25fe622a83826b0d57541eb4f2551c49f5af'
2014-02-27 10:54:40 +01:00
minhaz
501d25fe62
fixing build test and adding test cases
...
Test case added for testBlowfishDecrypt() and modified for testBlowfishEncrypt()
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-02-27 14:46:57 +05:30
minhaz
495eda9df3
testBlowFishDecrypt() testcase added
...
Signed-off-by: A V Minhaz <minhazav@gmail.com>
2014-02-27 04:23:43 +05:30
Dhananjay
0a18d86059
Fix for bug#4237.
...
Signed-off-by: Dhananjay <dhananjaynakrani@gmail.com>
2014-02-07 11:56:46 +05:30
Michal Čihař
396991a194
Merge remote-tracking branch 'origin/QA_4_1'
2014-02-03 09:01:55 +01:00
Michal Čihař
87bbb24496
Fix tescase for new parameter passed to recaptcha
...
Signed-off-by: Michal Čihař <mcihar@suse.cz>
2014-02-03 09:00:31 +01:00
Michal Čihař
0e5be0dff1
Fix test case expectations
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-02 12:27:32 +01:00
ptarjan
840f7b1215
Make unit tests friendlier to running independently
2013-11-20 14:43:55 -08:00
Madhura Jayaratne
f311c9c502
Remove trailing white spaces
2013-11-03 19:13:23 +05:30
Madhura Jayaratne
184316d891
Coding style fixes
2013-11-03 19:00:41 +05:30
Piotr Przybylski
a67e41a646
Refactored ConfigFile class so that it is no longer a singleton
...
Fixes bug #4123 Double config including
2013-11-03 12:54:20 +01:00
Michal Čihař
6b9dd0e096
Whitespace cleanup
2013-08-21 14:06:44 +02:00
Michal Čihař
f2b6a3d8b2
Properly mark test as incomplete
2013-08-21 14:06:44 +02:00
Michal Čihař
eebdc0ce06
This test takes sometimes longer
2013-07-30 13:42:31 +02:00
ayushchd
6f2a532bf0
Tests for AuthenticationHttp and AuthenticationSignon
2013-07-17 17:33:09 +05:45