d3772fc Revert "prevent requesting a folder (/css) from showing a dir listing"
1bdff8f prevent requesting a folder (/css) from showing a dir listing
d8a614e Added usage of configured error handler instead of hard coded. Moved try/catch block to where its nessecary. Set Configure::write('Error.trace', false) since its useless with internals. Addition to #1707 .
1b14887 Fixing all helpers tests after massing search and replace that broke parameter order on assertTags()
217e9e0 Fixing test in I18n due to case sensitivity problems
ef663f7 Fixing more tests after the massive search and replace
7ef1a29 Fixing failing tests due to massive search and replace
cd13e37 Adding tests for previous commit. Refs #1678
2bc58a5 Added check if Router::getRequest(false) is returning a CakeRequest or null in ExceptionRenderer::_getController(). Fixes 'call to undefined method here()' when having Exceptions raised without valid request set to the Router in testsuite (i.e. undefined database config 'test'). Fixes #1678 .
085c621 Added try/catch block into ErrorHandler::handleException() to gracefully show Exceptions raised during exception handling. Fixes #1707
6289f20 Fixing Router::reverse() serializing all of _Token. Removing CSRF tokens from the parameters SecurityComponent exports. Updating tests for both Router and SecurityComponent. Fixes #1697
8f43adb Making the request method not update things in the models directory. They don't have a request object so those changes will always be wrong. Adding a dry-run mode and some additional output for it. Making both the helpers and request tasks hit all the bootstrapped paths.
1cb0e41 Enhancing App::build() to allow appending paths. Closes #1680
512e570 Adding ability to map arbitrary content types and decoding methods to RequestHandlerComponent. Removing hardcoded XML decoding, but continuing to provide the functionality. Adding default support for JSON decoding. Fixing stdin/input mixup. Fixes #716
75437b4 Fixed error where App::import() failed to load new class types added in 2.0. Also fixed couple of test cases.
0be0b0e Removing $request->params['form'], all POST data is available at $request->data, there is no point for it to be in two places. Updating tests as well.
47176bf Fixing failing tests that waited on stdin indefinetly.
53b4a12 Changing RequestHandler to use CakeRequest::input()
40fab81 Adding ability to pass params to the decoding function.
975f74b Making it so all POST parameters are available on $this->data inside the request. This makes one fewer place POST data is found. $this->params['form'] is still around as well for Backwards compatibility, but is not recommended for use going forward.
60ee04a Adding first kick at the can for reading request body input. Adding testcases.
d9c7f4d Fixing import of MediaView in dispatcher so Media models used in Routing don't interfere with asset delivery. Fixes #1670
84538ac Fixed the tests of MediaView in console/web.
8da7e5f Lazy loading models in controllers, now declaring multiple models in $uses is not a performance hit anymore
bea666b Removed JsBaseEngineHelper::$useNative. Removed json_encode() emulation from JsBaseEngineHelper::object(). Removed unnessecary call to get_object_vars() in JsBaseEngineHelper::object(). Removed unnessecary tests for equalness of emulation and native json_encode(). Added test for correct encoding of objects to JsHelper test case. Fixes #704
1523ff6 Moved the CakeEmail to Network/Email. Now this class have similar structure of HttpSocket.
df57b15 Removed undefined variable in App::core, made test pass on Windows.
1962e40c Added tests to get with queryparams and custom configs. Refs #1674.
3433d12 Removing model id assignment form passedArgs, as it causes unexpected results. Closes #536
9db411d Added HttpSocket::config['request']['uri'] as parameter in HttpSocket::_parseUri() called by HttpSocket::get(). Now creates correct request array for GET if query params are given and the default request should be used. Fixes #1674. No tests modified since behaviour didn't change.
5b223e7 Adjusted the Smtp test to use the new config method.
3a5c042 With class loading these code can be global.
3844966 Changed default value for key 'last' in validator options to true. Also implemented ability to list messages for all failed validations for a field at once, instead of current display of just one message at a time.
9ac79da don't repeat the default value in the message
5280f5a Fixing the CAKE_CORE_INCLUDE_PATH, including the new 'lib' namespace.
c504535 Stating to implement a CakePlugin class to allow the inclusion of bootraping files for plugins
f14a295 Adding a ConenctionManager::drop() method useful for testing and other dynamic tasks
ffdf720 Moved Upgrade console into place for 2.0 Console standards.
c80a51a Splitting View::element() param $params into $data and $options. Removed param $callbacks, use key 'callbacks' in $options array instead. Closes #1646
d83712c Renaming Model::$_findMethods to Model::$findMethods and changing visibility to public. Closes #1328
a7a076d Fixing ExceptionRenderer so it can render exceptions that are subclasses of CakeException that do not have custom templates, like ConfigureException. Removing $lastError as it doesn't work. Added tests.
12c2456 Fixing XmlHelper overwriting its Xml property when creating an open element with elem() Fixes #1642
4395e8a Fixing formatting, and updating test to better reflect what would normally happen.
13c64f1 Fix issue where values are not recursively deleted. ie: $this->Cookie->write('User.email', 'firstname.lastname@example.org'); $this->Cookie->delete('User'); The cookie for User.email would not be removed (despite being removed from the __values array. Fixes #1651
974a153 Moving tests files to follow the naming schema and to mirror the new internal CakePHP structure
50b47c8 Renaming constants and fixing the last error related to folder renaming
7f2734d Starting to migrate internal tests files to the new file schema, and fixing related tests
54a4d24 Fixes issue with fixture records defining fields in wrong order, or adding fields in some records that are not defined in others Fixes #1559
7d15c9d Fixing CakeSocket::write() to better work with fwrite() oddities where fwrite() won't actually write all the content, instead only part of the content would be written. All content should be written now. Fixes #1616
548a64e Fixed test case for Cache class which failed if default cache config in app used engine other than File
32a2075 Removing dead links from the README file and adding tv.cakephp.org as it was missing and is useful.
27952eb Fixing missing array cast that could result in warnings from array_merge if a model or behavior returned false from a beforeValidate callback. Fixes #1629
a0321a7 Updating documentation for ClassRegistry::init() to not imply that it can be used to construct non model objects. Fixes #1633
9102321 removing links to code.cakephp.org/tickets
95d298b Fixing test method names. Adding a test for updateAll with empty values.
893ced5 Removing reference operators from function signatures. Fixes #1223
d0e574c added extra tests for changed view file extension
6cc1688 Fixing issue where DboMysql would perform joins on delete queries even if the conditions did not require joins. Added a more intelligent join detector, that removes joins if all the conditions are simple. This will only be able to optimize array conditions. Test cases added. Fixes #1571
532555b Fixing order condition quoting to allow fields with - in them. Fixes #1599
0bab8f8 Removing deprecated parameter from Inflector::slug(), use Inflector::rules() instead.
e0be310 renamed missing_conenction.php to missing_connection.php
9f223f9 fixed failing testcase for Auth component, closes #1607
20299c9 Removing duplicate package string. Updating FileEngine tests to use file_test config instead of inheriting 'default' as default could be an APC config now. Removing tests that were testing clearCache(), as that is not part of FileEngine's features.
70d334f Moving core cache configuration out of Configure and into core.php. This makes the cache configurations cake uses internally more transparent, and easier for the end developer to configure. Fixes #1586
d0dfd7f Removing more calls to strtolower(). Instead type the method names with the correct casing.
6f232c4 Fixing the loading of the HtmlCodeCoverageReport class
ecc6a22 Adding tests for loading classes from the libs folder
fd84b14 Documenting remaining methods in App class
02955fb Removing unused code in App class, improving backwards compatibility in App::import()
e6b253e Starting to write a new App::import() that keeps where possible the backwards compatibility
7f18f05 Moving appending of prefix to action into the Router. This makes Router::parse() always return what you get in the controller. Updating Dispatcher to not hold a reference to the current request, as its not used. Updating private action detection so its simpler. Fixes issues with prefix actions not getting the correct default view. Fixes #1580
b292f4f Fixing tests that were failing due to missing methods, and changes in CakeRoute. Making ExceptionRenderer pass in the current request to the controller constructor. This fixes fatal errors on PrivateActionExceptions.
ab4ce97 Fixin CakeErrorController's constructor, so it matches the parent class. Removing duplicated code.
472257c Removing unused variables and properly testing more methods in App class
0cc55d8 Removing calls to Dispatcher::_stop(). Updating tests. Fixes #1578
0cb08a0 Fixing class loading for authentication clasess in HttpSocket, also allowing the use of plugin authentication classes
b314149 Checkin that PluginAppModel is not in the list of modles to be used for CakeSchema
6426b7e Fixing issues with / routes, as PATH_INFO doesn't exist. Changing foreach loop for if elseif blocks, and removing use of env(). The values we want will never be anywhere else by _SERVER, so don't incur extra overhead looking places it won't be. Added tests.
d1821b3 Removing $request->query[url]. This simulated value is also available at $request->url, and having it in the query array confuses things, as GET[url] no longer exists. Fixing failing tests elsewhere in the framework.
2190596 Fixing htaccess file to not use GET params anymore.
23bacfc Adding new checks, so missing favicons don't flood the error logs.
8991095 Removing references to GET['url'] & favicon, as there is no more GET[url].
24935af Removing remaining references to $_GET['url'].
897e50b Updating htaccess file to use PATH_INFO instead of GET parameters for handling cake request strings. This fixes issues where cake's usage of url could conflict with other uses. Using PATH_INFO makes for a more consistent and simple implementation as well. Fixes #1483
24369cf Removing GET param, and making CakeRequest use PATH_INFO and SCRIPT_NAME to determine base paths and request urls. Updated tests. Removed test for base path injection, as PHP_SELF is no longer used to compute the base path, and users cannot influence SCRIPT_NAME.
db00915 Removing complicated logic that does a reasonable amount of unnecessary work. Favouring $_SERVER['PATH_INFO'] over more complicated, logic. This may cause issues with IIS 5.x, but its a very old release now. Updating tests to match values that come out of IIS7.
63f07d3 Making Authorize and Authenticate objects have constructors like other components. Adding ComponentCollection as a argument for the constructor, this unifies the two types of objects and makes them consistent with other components. It also allows authenticate/authorize objects to access other components, thanks to hiromichan for the idea. Tests updated.
0cb5394 Adding static variable to allow changing which get param cake uses. Refs #1483
5c4854b Adding omitted return that would prevent users from reaching the login page after being redirected to it. Tests added. Fixes #1542
0e7f2ef Fixing notice errors caused by accessing headers in po files that don't exist. Fixes #1515
ca3e606 Fixing failing tests caused by me forgetting to run tests in [703272965106532764817b661ef08791d29464ac]
a95d4ac Removing unused code, and adding a realpath() to document_root, so symlinks work a bit better.
0a28223 Removing a bunch of code not needed any more.
f586ed0 Initial ugly re-factor of where fixtures are done.
5a631a6 Renaming the runner. Making the runner extend PHPUnit_TextUi_TestRunner so we can customize the TestSuite classes it uses. Adding CakeTestSuiteCommand so we can customize the TextUI_Command output.
60590de Starting to banish TestManager, and replace it with a more normal PHPUnit test loader.
63caf56 Adding some tests around invalidFields() and fieldList options. Closes #1534
681b999 Renamed Controller::view to Controller::viewClass and Controller::view, View::view can now be used to change the view rendered by default. Parameters of Controller::render() and View::render() changed to eliminate redundancy. Closes #1520
e16d21e Add displayField and primaryKey to controller bake. Fixes #1192
d0c2b9c Fixing failing test caused by boolean type changes.
08509cc Fixing issue where static variable would be shared inconsistently across multiple instances. Fixes #1504
26c5f78 Fixing notice error caused when looking for info on tables that don't exist.
e042093 Fixing notice error that could occur if csrfTokens ended up being null/not an array.
42c2f30 Applying fix from 'Mark Mitchell' to expose PeriodicalExecuter in the callback. Fixes #1529
71f7608 Fixing issue where creating cookies in the beforeFilter would result in cookies with the wrong expiry time. Thanks 'RabidFire' for the patch. Fixes #1523
3339007 Removing HTTP authentication from SecurityComponent. There are new Authentication objects to fill this hole now.
a5fb2cf Fixing issue where fixtures without field definitions would drop tables, even though they had no way to re-create them. Fixes #1519
9a94070 Removing unsupported options from PrototypeEngine. Fixes #1516
5841165 Fixing range option for prototype engine. Fixes #1509
fbd798d Reordering parameters to make it easier to remember the order.
ee804c6 Removing properties from AuthComponent that have been moved to authentication and authorization objects. Adding the '*' key to allow code to stay DRY, also adding a constant for ALL, so there aren't as many magic strings around. Updating tests.
fd8fb12 Removing automatic password hashing from AuthComponent. Its a frustrating feature that often befuddles new users, and can be plain annoying sometimes. Moving hashing into FormAuthenticate. Updating tests.
ed122c7 Removing custom request reversal code, and using Router::reverse() Removing dead tests that are covered by Router tests. Removing check for TestsController, it hasn't existed in forever.
f2bba3d Adding tests for AuthComponent::redirect() previously there weren't any.
6eb31df Removing test cases that were doing integration testing with router, and plugin models. Plugin model tests are in FormAuthenticate. And there is no more automatic login.
dc8c993 Starting to remove magical login process. Updating tests to actually test the methods they are named after.
d8f2cf9 Starting to remove magic around userModel, and deprecating/removing userModel from AuthComponent.
b59d0e8 Replacing Authcomponent::$flashElement with Authcomponent::$flash, which gives access to all the flash parameters. Also adding a wrapper method for more terse code and ability to extend functionality.
ff889c2 Renaming method names, no need to include Objects, its implied.
1696df7 Removing the last of actionMap from AuthComponent. Its been moved into the authorization objects. Updating and adding tests for crud_authorize.
e11917a Removing public properties that aren't used anymore.
0c7f914 Refactoring authorization objects to also use settings, it makes them consistent with authenticate objects. Making actionPath automatically pass into authentication objects. Adding tests.
e34fdde Adding a test for logging users in using request data.
7ea9149 Changing AuthComponent::login() so you can provide an array of user data to manually login a user. Leaving $user blank will attempt to identify the user using the request.
f21970c Making AuthComponent::mapActions() delegate to the authorize objects. Adding tests.
e96b20b Removing skipped tests that cover features in other classes and tests.
3f9c83c Authentication and Authorization objects are integrated with AuthComponent. Minimal App changes are needed as legacy settings are forwarded.
ced832b Fixing issues with FormAuthenticate and plugin models.
6860f7c Starting to integrate Authorization objects into AuthComponent. Tests updated and duplicate tests skipped, they will eventually be removed when duplication is confirmed.
1ada281 Extracting CakeLogInterface to its own file, this fixes the FileLog test case
e81ff38 Fixing BehaviorCollection test regarding how classes are loaded. with the introduction of App::uses() it is not possible to determine if a file is missing or just the class in the file, so removing the throwing of MissingBehaviorFileException seems the only choice
0bde6d3 Fixing Acl classes loading for the AclBehavior tests
61e7caf Fixing HelperCollection tests after merging 2.0 branch in
e99f090 Fixed issue where ClassRegistry alias was incorrectly set
bbf6aed Fixed wrong viewVars store when have objects in view caching. Fixes #1486.
5464ed8 Fixing blackholes caused by using custom name attributes with inputs. Fixes #1489
38e286e Fixing order of paths so core paths are last in the search array. Fixes #1488
71d8e74 Fixing case-sensitivity of AS in fields. Tests added. Fixes #1474
d192ed3 Adding a socket key to DboMysqli::$baseConfig. Fixes notice errors when socket is undefined. Fixes #1482
161d3ea Removed from comments references to DBOs which are no longer available. Closes #1479
95713fb Separated the tests for HtmlHelper::loadConfig() with exception in different methods.
32f0b20 Removing wonky and most likely incorrect manipulation of socket and port setting mangling in DboMysqli. Fixes #1478
d933d6b Assigning the helper object in view class, avoiding to use __get magic for each call.
be98491 Ini/Php readers now read files with/without extension.
7032729 Fixing how webroot is calculated for installs not using url rewriting. Also fixes using the top level index.php file. Test cases added for using both index.php files. Cleaned up existing tests for environment detection. Fixes #1261, Fixes #1432
5b8f680 Throwing exception instead notice in loadConfig.
55c557d Support to read ini files without section in IniReader.
175e008 Reading configuration using reader classes. You can pass the key configFile in Html settings to load in constructor.
1a90bf7 Support to read ini files without section in IniReader.
68799c9 Removed unnecessary imports and ensured model import. Fixes #1453
3747e39 Fixing notice errors caused by garbage urls being fed into Dispatcher. Added a test. Fixes #1463
e58e3f3 Fix to resolve 'assign by reference' errors when using a '__get' magic method. Fixes #1476
ed7f8d1 Fixing issue where DboPostgres used the wrong type for boolean columns with a default of false or true. Added a test case. Changing Model::create() so it doesn't wipe out default values === false. Fixes #1460
646bb93 Checking test to avoid fatal error when the test case dont have test actions.
1debcb9 Replacing deprecated startTest/endTest by setUp/tearDown in bake templates.
1c3e1df Fixing Router::reverse() not correctly working with Request objects that contained query string parameters.
e64e299 Implemented the beforeRedirect callback in controller.
c712763 Added support for plugin classes in ControllerTestCase::generate(). Fixes #1453
f73c4f3 Fixing the postLink url when the application is not in root path.
23dce83 Fixing test cases and code from merge with 1.3 Making MemcacheEngine::__Memcache protected, so mocking is possible.
a0a87ad Adding non-zero exit codes to ErrorHandler in the console. Fixes #1468
b94edef Removing the last vestiges of the enable parameter. Fixing issue where isset() stupidly plods along when doing a string index of a string. Updating DbAcl to use proper settings array. Fixes #1467
ab337e2 Adding tests for TextHelper::autolinkurl(). Closes #1466
6071788 Updated documentation for Router::connect. Fixed a few spelling issues as well.
d4e4957 Adding test case for FormHelper::input() for generation multiple checkboxes with space in option values. Refs #1465
932533c Fixing incorrect content type headers from being set, when an action contains a requestAction to an action with a different Content-Type. Also populating RequestHandler->params as it was always empty. Fixes #1445
cfce0e4 Fixing issue where empty session id's would cause duplicate key errors. Empty session id sessions are no longer saved. Fixes #1450
b0d4951 Fixing TextHelper::autoLinkEmails() not linking email addresses that contain '. Test added. Fixes #1457
ca299a0 Fixing issue where get forms created with model = false would create inputs with name = ''. Tests added. Fixes #1455
b878058 Fixing issue where FormHelper::checkbox() would ignore an explicit checked = false, and use the post data instead. Test case added. Fixes #1437
1f0c57c Fixed aliasing so it works with plugins in the 'className' key
17b5351 Moving parent constructor call until after $helpers has been modified. Fixes #1443
7548379 Small refactor for how HTTP_BASE is generated. Removing non-obvious regular expression. Fixes #1436
2b59685 Reversed alias and actual class to be more consistent with how Model aliases load and to make migration easier
5f612b7 Making memcache cache adapter, set the expiry time of any value greater than 30 days to never expire. This works around the 30 day limitation of the PHP extension. Test case added. Fixes #1451
0f4c905 Fixing issue where elements did not get .ctp as a fallback extension unlike view and layout files. Adding a protected method to get extensions, as it would be in 3 places now. Added tests. Fixes #1438
d15ed32 Changed the trigger_error by exceptions in ConnectionManager.
be83288 Fixing App::objects() so it will accept again the plugin syntax fro retreiving plugin objects
465330a Fixing some package locations and a parse error
e024b6b only check the default template path is correct
8754d11 Adding EmailComponent::_getSocket() so EmailComponent + smtp is easier to test. Fixing issue where hosts with portnames could cause smtp emails to fail. Added tests, fixed an existing test to not depend on a local mailserver. Fixes #1433
54ecd2e Some changes to ConnectionManager, it is now an static class. the connection objects enumeration will return the stored connections config instead of a cryptic array where only the ekys where useful
2b9c6b8 optimizing sqlite driver to look for the "From" keyword in reverse order on the sql string
814142e Making the request method not update things in the models directory. They don't have a request object so those changes will always be wrong. Adding a dry-run mode and some additional output for it. Making both the helpers and request tasks hit all the bootstrapped paths.
fe18e31 Changes to make sqlite recognize boolean columns declared as "boolean", so they can be casted to native php type
1d530db Changing a bit how postgres driver treats booleans so it correcty casts them
da152e0 Changes to make mysql cast boolean vaules to the native php boolean datatype
04c602e Fixing issues with isThisWeek() when the year ends midweek.
1f6fba9 Fixing failing test caused by missing space.
5768bfe Fixing failing test caused by missing space.
a706151 Applying patch from 'rynop'. Fixing FixtureTask so it includes the datasource if its not the default one. Updating tests. Fixes #1419
2e0f2c7 Fixing issue where ClassRegistry would not be loaded when using Models in shells. Fixes #1417
7dd1eea Updating documentation for paginator helper, and component.
ab552c2 Adding a usage sample to Paginator->numbers()
eb38b8b Fixing more boundary issues with first() and last(). When you entered a first/last range a wonky page link would be generated. Tests added.
85baa18 Adding usage and expanding doc blocks for PaginatorHelper.
af608f6 Updating test cases for the addition of rel attributes to links generated by PaginatorHelper. Also removed rel attributes for disabled elements, as they are probably not link tags. Fixes #370
6539460 Give PaginatorHelper's next/prev links the correct 'rel' attribute
b82ad15 Fixing issue in console when baking a new project, from outside the installation directory you would get an error because database.php could not be found. Fixes #1406
3d966be Fixing fatal error caused by Debugger not being loaded when viewing the default home page.
5ce66d3 Changing how PaginatorComponent::paginate()'s $whitelist param works. It now serves as the whitelist for fields ordering can be done on. It previously allowed you to whitelist things you passed into paginate(), which was kind of useless. Updated tests. Fixes #430
f62a067 Making it possible for behaviors to define paginate and paginateCount. Updated test to ensure the component calls the correct methods. Fixes #1373
ad5a1ca Making __methods and __mappedMethods protected instead of private.
0c4b665 Adding ability for BehaviorCollection::hasMethod() to return the callback. Re-factored BehaviorCollection::dispatchMethod to be simpler and faster. Changing now BehaviorCollection stores callbacks so they look like normal php callback arrays.
e5588f7 Reversing changes that required a : sigil for named parameters. Also removing ?foo style parameters for querystring args. Having two ways to create querystring args was not sitting well with me. Tests updated.
d3fc29c Adding more documentation to connectNamed(). Changing argSeparator -> separator, as it is less typing and easier to remember.
025ba23 Removing whitespace and adding some more documentation.
4c3736a Making more tests pass with the named parameter changes.
51e2b16 Removing pagination test from Containable test case, it doesn't make sense there.
5df2678 Fixing named params that were missing the : and fixing Router::reverse() so it adds in the :
c83a470 Implementing ability to change pagination params to use querystring variables. Tests added.
da46ad4 Deleting duplicate tests. Moving a test out into a separate method.
cc2d8e2 Moving limit from the options to the normal paging params. This fixes a few notice errors.
176d552 Making paging params match those that would be generated by PaginatorComponent.
8c3ceff Making paging.options only contain options that are not in the defaults. This replaces the many diffs that were calculated on each url generation between paging.options and paging.defaults.
833bdbc Reformatting paging params. Removing defaults from the paging params as they are no longer being used.
ef84d86 Reformatting code, and removing merging of defaults key in the helper. It no longer exists.
f54479e Adding some docblock info about pagination.
e9d3fcf Moving limit checking into a separate method, and adding tests. Removing $scope from being passed down to the options, it previously only allowed additional conditions to be set. Updated tests.
1e741de Removing show alias, it was undocumented and untested.
108a661 Moving validation of sorting to a separate method. This makes it easier to test, extends and read. Tests added.
7b11eeb Updating tests to not use the deprecated Controller::$passedArgs. Removing messy and hard to understand defaults + whitelisting from paginate() now that it has a separate method.
6b3db0a Pulling out parameter merging logic into a method, this allows specific typing of parameter merging (named, querystring, route). Also simplifies whitelisting of request parameters. Tests added for merging and whitelisting.