Commit graph

9118 commits

Author SHA1 Message Date
Juan Basso
97fe32f87c Request return a pointer to body. It will reduce the memory usage in big responses. 2010-12-05 23:36:28 -02:00
Juan Basso
c4743a2438 Changing the test with get to use version instead auth. 2010-12-04 01:41:45 -02:00
Juan Basso
123b2256c5 Formatting 2010-12-04 01:31:28 -02:00
Juan Basso
3f910dc6c1 Formatting 2010-12-04 00:58:49 -02:00
Juan Basso
874a1172a1 Cleaning auth and proxy configuration in full reset. 2010-12-03 23:13:49 -02:00
Juan Basso
075bdebebe Moved the proxy configuration from request to class attribute. 2010-12-03 23:10:07 -02:00
Juan Basso
f004bef74f DigestAuthentication adapted to new auth in HttpSocket. 2010-12-03 21:57:15 -02:00
Juan Basso
4325e67163 Fixing setAuthConfig to accept false as param to remove auth config. Tests added. 2010-12-03 01:30:03 -02:00
Juan Basso
cd24aca39d Removing auth key from request and putting this as attribute. 2010-12-03 00:46:11 -02:00
Juan Basso
e1e8026392 Support to proxy authentication in basic authentication. 2010-12-01 14:00:10 -02:00
Juan Basso
64dcca61ef Throw exception when authentication class dont support authentication/proxyAuthentication method. 2010-12-01 13:49:03 -02:00
Juan Basso
b9010b05f2 Support to proxy in HttpSocket. 2010-12-01 13:46:13 -02:00
Juan Basso
634d686288 Merge branch '2.0' into 2.0-http 2010-12-01 11:49:26 -02:00
Juan Basso
ffaec10a7c Fixing the result of App::import() when name of class have slash. 2010-11-29 22:37:08 -02:00
Mark Story
40585a34e8 Adding support for userPath in IniAcl.
Test case added.
Fixes #1291
2010-11-28 21:22:10 -05:00
Mark Story
2495b3cd4c Trimming whitespace and adding a file header. 2010-11-28 21:11:18 -05:00
Mark Story
3ddff879b1 Converting IniAcl to use IniFile, this removes one of the classes responsibilities. 2010-11-28 21:06:22 -05:00
Mark Story
35611d50c3 Fleshing out IniFile a bit more. 2010-11-28 21:05:32 -05:00
Mark Story
071cd9b477 Adding very naive implementation of an ini file parser. 2010-11-28 21:05:32 -05:00
mark_story
9d3b3a72ce Starting to extract Ini file parsing out of IniAcl as it breaks single responsibility, and ini file parsing should be generic enough to be reused.
Adding a test case.
2010-11-28 21:05:32 -05:00
mark_story
cc18c15e61 Fixing coding standards. 2010-11-28 21:05:32 -05:00
Mark Story
43c184b2d2 Fixing issues with CLI test runner where the error handler would continue to be cakephp's instead of PHPUnit's. 2010-11-28 21:05:12 -05:00
Mark Story
1f72e504d5 Fixing incorrect imports that caused test case to fail in CLI when run by itself. 2010-11-28 20:49:42 -05:00
Mark Story
91b5a5265e Making ConsoleErrorHandler be invoked with the correct error reporting level. 2010-11-28 20:44:28 -05:00
mark_story
284a8db3f4 Moving error handling classes into a separate directory.
Moving error handling test cases into a directory that matches the one in libs.
Updating imports.
2010-11-28 12:27:51 -05:00
mark_story
e40ee2576b Minor optimization in h()
Minor optimizations in FormHelper, as calls to ArrayAccess methods are avoided now.
2010-11-28 00:33:01 -05:00
mark_story
7bfdbff377 Adding more documentation to core.php. 2010-11-27 19:39:55 -05:00
mark_story
da98791e14 Adding some more documentation about precedence of configuration. 2010-11-27 19:37:25 -05:00
mark_story
f08fa52a60 Syncing skel/config/core.php 2010-11-27 14:36:34 -05:00
mark_story
345779772d Fixing issue where an AppController::appError would cause errors as $method was not a real method. 2010-11-27 14:35:36 -05:00
mark_story
d3f0d25c03 Removing error masking in ErrorHandler, instead correctly calling set_error_handler() works better. 2010-11-27 14:32:43 -05:00
Juan Basso
547f48fb03 Changing to be compatible with PHP 5.2+ 2010-11-26 23:00:26 -02:00
mark_story
c717ff2e72 Adding logging of errors when debug = 0 for console applications. Fixes #1311 2010-11-25 23:16:27 -05:00
mark_story
0d5ed014d1 Removing constants and configuration settings that don't are repeated or deprecated/not used. 2010-11-25 23:16:03 -05:00
mark_story
9b4f7a1a15 More documentation. 2010-11-25 22:51:31 -05:00
mark_story
f3feb1575c Removing support for AppError. It doesn't make sense to have hardcoded class references when there is better configuration available.
Updating doc blocks for exceptions.
Updating core.php file.
2010-11-25 22:51:30 -05:00
mark_story
1cffea379f More documentation. 2010-11-25 22:51:30 -05:00
mark_story
04d3feb6c0 Unknown errors cannot be mapped as they generate another error. Having a default case doesn't make much sense here.
Adding additional coverage to ErrorHandler.
2010-11-25 22:51:30 -05:00
mark_story
845edf38e1 Removing core classes using App::import() with an array(). This usage incurs an additional call to App::import().
Removing Set from core class imports, as Set is required as part of the framework bootstrapping.
2010-11-25 22:51:30 -05:00
mark_story
e88cdc8a01 Adding more documentation. 2010-11-25 22:51:30 -05:00
mark_story
55623ace92 Adding deprecated error level to the map switch. 2010-11-25 22:51:30 -05:00
mark_story
f2f3f13c75 Adding exception logging configuration setting. Allows uncaught exceptions to be logged.
Implementing logging, and adding a test case.
2010-11-25 22:51:30 -05:00
mark_story
af4447d55d Removing Configure::write('log'). This feature is now part of Error configuration.
Removing log check from Debugger::showError().  This method only show's errors, it shouldn't be logging them as well.
2010-11-25 22:51:30 -05:00
mark_story
14a6368b39 Adding missed isset() check
Making ConsoleErrorHandler handle both errors, and exceptions in CLI.
2010-11-25 22:51:30 -05:00
mark_story
74bf455c49 Updating ConsoleErrorHandler to match ErrorHandler.
Updating test cases for ConsoleErrorHandler.
2010-11-25 22:51:30 -05:00
mark_story
3bc708ba19 Adding the new group to AllTests.
Removing ErrorHandler test from AllLibs.
2010-11-25 22:51:30 -05:00
mark_story
fac222e2cd Removing classes that were not used in the ErrorHandler test case. Adding a new test suite for error classes. 2010-11-25 22:51:29 -05:00
mark_story
e2c8e20afa Pulling exception page rendering out into a separate class, ErrorHandler felt very large and confusing, as it had a few too many jobs. 2010-11-25 22:51:29 -05:00
mark_story
8a35b76cc2 Fixing error caused by removed method. 2010-11-25 22:51:29 -05:00
mark_story
722b1a02ba Adding Debugger output to ErrorHandler::handleError, and adding tracing for log writes.
Renaming Debugger::_output() -> Debugger::outputError() and making it public instead of protected.
2010-11-25 22:51:29 -05:00