Michal Čihař
be3ecbb4cc
Simplify and cleanup transformation plugins
...
Remove PMA_transformation_global_html_replace which makes the code only
more confusing.
Also add escaping to browse transformations.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-17 16:18:13 +02:00
Michal Čihař
4a9da1df40
Adjust tests to new error reporting handling of objects
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-17 11:23:20 +02:00
Michal Čihař
8a142aba73
Adjust tests to new behavior
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-15 11:45:16 +02:00
Michal Čihař
79a34ff94c
Calculate table size as integer
...
It should be big enough on 64-bit systems, so avoid rounding issues
which double calculations can bring.
Fixes #12303
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-14 08:28:26 +02:00
Michal Čihař
763683b4fe
Fix test expectations
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-09 09:40:16 +02:00
Michal Čihař
4fd2709650
Avoid rewriting PHP stack frames
...
Surprisingly PHP stack frames are passed as references to the error
handling code, thus changing value there leads to changing value in the
executed code.
With MySQL issuing warning about incompatible version (different runtime
library than compile time), handling this warning rewrites current stack
frame and the mysql_real_connect later sees parameters as processed by
Error class for display.
We now create copy of the stacktrace to avoid this.
Fixes #12279
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-06 13:52:32 +02:00
Michal Čihař
d78e173b34
Do not use dirname for calculating cookie path
...
It is wrong for this purpose as on Windows this uses \ for both
separating parts and generating result. This fixed calculation of cookie
path on Windows.
Fixes #12249
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-27 11:11:56 +02:00
Michal Čihař
e72c1d4da9
Add more tests for getCookiePath (issue #12249 )
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-26 18:04:23 +02:00
Michal Čihař
adfd5a22b9
Avoid double redirects in signon auth on logout
...
Also adjusts tests to no longer rely on runkit.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-23 13:23:16 +02:00
Michal Čihař
11eb574242
Improve handling of logout
...
- add separate script for handling logout
- no longer require old_usr for all authentication methods
(this avoids potential information leak)
- require valid token for logout
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-23 13:02:21 +02:00
Michal Čihař
381c80dda4
Split test cases to avoid huge test methods
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-23 12:35:13 +02:00
Michal Čihař
21db724c85
Remove need for having define for test
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-23 12:09:36 +02:00
Michal Čihař
1c081f9087
Fix test to not depend on variables set elsewhere
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-23 11:47:40 +02:00
Michal Čihař
ec1c32fd09
Fix tested url
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-17 11:59:04 +02:00
Michal Čihař
574fee04f7
Fix test failures after changing links
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-17 10:44:54 +02:00
Michal Čihař
d248d8d83d
Remove link to no longer maintained blog
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-17 10:35:56 +02:00
Michal Čihař
521b79d0d7
Replace non working pbxt link with link to MariaDB knowledgebase
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-17 10:34:52 +02:00
Michal Čihař
57a1d3a7ca
Adjust tests to template doing no stripping
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-12 15:42:57 +02:00
Michal Čihař
288995ba18
Remove trimming from template renderere
...
This relies on preg_replace correctly handles multibyte chars what is
not true on Windows and it then corrupts the content as it removers
parts of UTF-8 chars. Removal fixes occassional 200 errors on Windows.
Fixes #11705
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-12 15:35:38 +02:00
Michal Čihař
bbe8efaf7c
Use https for documentation links
...
Fixes #12225
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-10 15:04:29 +02:00
Michal Čihař
f329a38639
Add missing variable
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-20 10:13:39 +02:00
Michal Čihař
e0724d2660
Fixed check for ndb version
...
Fixes #12200
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-20 10:07:06 +02:00
Michal Čihař
951f1fed5f
Add method to slice errors from the handler
...
This can be useful to pop n-last errors.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-18 13:32:52 +02:00
Michal Čihař
ea428dc860
Make ErrorHandler test more complete
...
Actually test handling of stored errors.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-18 13:32:52 +02:00
Michal Čihař
73278068a9
Adjust tests to simplified DatabaseStructureController
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-06 11:29:43 +02:00
Michal Čihař
1b43606a48
Fixed possible invalid SQL export
...
We should emit the charset restoration only if we have emitted its
setting in the header. As the condition was slightly different in both
cases it was possible that only one part of these two was emitted in
past.
Fixes #12074
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-03-18 10:34:17 +01:00
Michal Čihař
a29f154f37
Merge branch 'MAINT_4_5_5-security' into QA_4_6-security
2016-02-29 10:35:47 +01:00
Michal Čihař
e42b7e3aed
Bring back SSL certificate validation
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-25 11:08:44 +01:00
Michal Čihař
c90e01f4ce
Merge branch 'QA_4_5' into QA_4_6
2016-02-12 15:44:39 +01:00
Michal Čihař
5fefcdd998
Fix test expectations to match current filename
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-12 14:28:57 +01:00
Michal Čihař
b73855842b
Merge branch 'QA_4_5' into QA_4_6
2016-02-12 14:25:24 +01:00
Michal Čihař
2b3ef7ad99
Improve test coverage for getting relative path
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-12 14:24:49 +01:00
Michal Čihař
de7181653f
Correctly handle paths to exact files when setting cookie
...
We need to set path to folder not a given file.
Fixes #11916
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-08 09:54:57 +01:00
Michal Čihař
a28cc6d2de
Ensure we always restore original instance even on failure
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 20:41:00 +01:00
Michal Čihař
2148e7cad8
Implement test for Cookie auth without runkit
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 20:21:40 +01:00
Michal Čihař
be8b4ccd76
Add mising separator
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 19:57:42 +01:00
Michal Čihař
e3843ab1a9
Test with SID if set
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 19:56:26 +01:00
Michal Čihař
c2b41b829a
Wrap header() and headers_sent() in response
...
This allows us to test the code without using runkit. Currenly only
AuthenticationHttp is migrated to new code, but others will follow.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 19:49:05 +01:00
Michal Čihař
431450a237
Make test run even without runkit
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 19:49:05 +01:00
Michal Čihař
892d09cf74
Add more tests for getting cookie path
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:50:00 +01:00
Michal Čihař
ae1ccf3e6a
Remove PmaAbsoluteUri configuration directive
...
Fixes #11412
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:41:29 +01:00
Michal Čihař
43ca165e9f
Remove unused method checkCookiePath
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:34:32 +01:00
Michal Čihař
a569eeca93
Do not use PmaAbsoluteUri for getCookiePath
...
Issue #11412
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:32:32 +01:00
Michal Čihař
060aaf9c99
Remove detectHttps method
...
The isHttps method does the same and simpler.
Issue #11412
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:25:58 +01:00
Michal Čihař
a913f99817
Add detection based on REQUEST_URI as well
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:25:13 +01:00
Michal Čihař
49eb80d887
Rewrite tests for https detection
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:19:04 +01:00
Michal Čihař
16a30ae87d
Fix documented return values
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 17:15:40 +01:00
Michal Čihař
6da017fcfc
Load vendor_config just once at testsuite startup
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 14:21:57 +01:00
Madhura Jayaratne
4cb0c4cdf0
Avoid additional query for profiling support
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2016-02-01 23:19:49 +11:00
Madhura Jayaratne
3ad437b554
Update tests
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2016-02-01 23:04:01 +11:00