Commit graph

4287 commits

Author SHA1 Message Date
mark_story
f94bc3e4bc Adding Test case for Shell
Adding Comment Model to test_app
Fixing Plugin model loading in Shells, fixes #5566

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7726 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-10 02:14:57 +00:00
mark_story
aa217716b9 Applying patch from 'halogenandtoast' Fixes issues with deleting cookie values before read() is used. Closes #5563
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7725 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-10 01:16:04 +00:00
renan.saddam
67abae6307 Adding remaining tests to I18n (rule 11-14).
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7724 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-10 00:39:01 +00:00
gwoo
88e5d14c3c small fix to the Cache::read() use of Cache::set() when using default configuration
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7723 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 23:24:28 +00:00
gwoo
9a22018e40 removing some unneeded code from scaffold
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7722 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 22:26:33 +00:00
AD7six
488f1f41ee correcting test to use DS rather than / seperator
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7721 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 17:42:10 +00:00
AD7six
ad059df35d changing simpleTest test to use app import
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7720 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 17:23:17 +00:00
renan.saddam
42241b2b27 Removing if block missed from an older refactoring.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7719 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 17:16:39 +00:00
gwoo
62d1f367db adding test cases to show #5553 is invalid, $uses is not merged when == null.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7718 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 17:03:44 +00:00
mark_story
fb4277a852 Updating css.php to use App::import(). Closes #4613
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7717 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 03:43:42 +00:00
mark_story
136f9c4b6d Removing getAco(), getAro(), setAco(), and getAco() from AclComponent. These methods were deprecated and not removed. Refs #5561
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7716 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 03:35:17 +00:00
mark_story
17e2b4c054 Applying patch from 'Pixelation' fixes cross platform issues in cookie test. Closes #5559
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7715 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 02:35:33 +00:00
TommyO
d5dbb7ba32 Fixed problem where already-authorized user was failing.
Added return of respond code found on success, allowing for more fine-grained post-query activity.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7714 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-08 17:53:48 +00:00
mark_story
5c962accc1 Fixing timehelper::fromString when input time is invalid.
Tests added and renamed for better consistentancy with other tests.
Closes #5556

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7713 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-08 17:19:07 +00:00
renan.saddam
e184838451 Adding tests to L10n and refactoring to be more readable.
Removing duplicated entry of es-mx. Fixes #5087.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7712 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-08 14:01:50 +00:00
mark_story
acce4fa54e Adding interval to minute() attributes when timeformat = 24.
Tests added.
Closes #5428, refs #4641

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7711 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-07 16:57:22 +00:00
mark_story
11a29679e4 Fixing issue in CakeTestFixture, where $import'ing models required connection to be specified, default connection should be automatic.
Caused by changes in ClassRegistry::init().
Closes #5519

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7710 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-07 03:58:04 +00:00
phishy
091325bcd1 Fixes #5539 - $config prototype was not being set correctly
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7709 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-07 00:55:51 +00:00
mark_story
06955ad42f Removing stray comment from last commit.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7708 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-06 23:58:35 +00:00
mark_story
5ca239870d Adding tests to disprove #5540. Closes #5540
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7707 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-06 23:57:27 +00:00
the_undefined
38bc438fc7 Applying patch by rnowotniak, fixes #5523
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7706 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-06 10:43:57 +00:00
mark_story
b5473a5f9b Refactoring variable names, more readable variable names.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7705 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-06 02:44:05 +00:00
mark_story
a5feed0284 Updating method names and doc blocks in model.test. Closes #5516
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7704 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-05 22:26:40 +00:00
AD7six
3ddc5e6be2 adding failing testcase for identical <cake:nocache> content confussion.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7703 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-05 18:27:02 +00:00
phpnut
385ebbce1f Closes #5509 Executable flag set on sequencial_nocache.ctp
Closes #3817 Some non-executable files in source tree have executable permissions

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7702 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-05 00:19:25 +00:00
nate
ae8a6b958a Disabling query caching in DboMssql::listSources(), fixes #5514
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7701 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-04 22:06:56 +00:00
nate
34c5f74300 Changing handling of numeric node values in Xml class, fixes #5520
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7700 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-04 19:50:38 +00:00
mark_story
9c734f32a2 Adding test to disprove #5521
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7699 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-04 18:01:48 +00:00
mark_story
08866a90ca Updating tests in cake_test_case test, so they run in group test.
Fixing issue in cakeTestCase when running tests with fixtures. Fixture tables were not being created if $test DB config and $default DB were using the same database. Closes #5519

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7698 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-04 16:35:53 +00:00
nate
b29f805632 Allowing $attributes param of FormHelper::select() to be null, fixes #5518
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7697 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-03 21:55:41 +00:00
mark_story
b2bda3d1bd Changing spelling of neighbours to neighbors. Closes #4948.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7696 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-03 21:23:13 +00:00
mark_story
2a115d0fa3 Updating doc block for Model::find() adding references for missing find types. Closes #4948
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7695 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-03 18:06:15 +00:00
john
f3de3ce9af Adding svg and svgz mime types to the media view, both as 'image/svg+xml'.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7694 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 16:25:35 +00:00
nate
0c64ddfa49 Copying changes from app/webroot/js/vendors.php to cake/console/libs/templates/skel/webroot/js/vendors.php, fixes #5508
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7693 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 14:32:54 +00:00
nate
faa8e8af60 Updating 1.1 and 1.2 verison numbers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7692 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 05:06:48 +00:00
gwoo
443491e7fa reverting changes from 7668
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7689 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 02:16:09 +00:00
nate
300dbc5e91 Correcting how parameters and default values are merged in Controller::paginate(), fixes #5503
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7688 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 00:46:26 +00:00
mark_story
915a1e119d Adding test to Auth.test to cover logged in user being denied on an action when there is no HTTP_REFERER set. Refs #5507.
Fixed tests that break when Routing.admin is not set.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7687 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 00:18:47 +00:00
nate
62184023d5 Allowing custom salt values in Security::hash(), thanks Jippi
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7686 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 00:03:52 +00:00
TommyO
3da0451907 Added basic mb_encode_mimeheader() to Multibyte class.
Modified EmailComponent to take advantage of multibyte support. fixes #5448
Modified EmailComponent to fix newline issues in long subject lines when using mail send method. fixes #5049

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7685 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-01 18:36:38 +00:00
nate
2bfd5a4b3e Refactoring schema test and fixing formatting, refactoring Model::_findCount() to use DboSource::calculate() in all cases, closes #4501
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7684 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-01 15:27:29 +00:00
mark_story
1a0299d257 Adding tests to basics.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7683 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-01 00:09:00 +00:00
nate
8758f36915 Correcting table index formatting for schema generation in DboPostgres, fixes #5471, docblock formatting fixes in ClassRegistry.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7682 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-30 18:59:17 +00:00
mark_story
1ae8cda6c2 Adding documentation to beforeValidate(). Closes #5498
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7681 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-30 00:13:15 +00:00
nate
4b8acf4647 Adding 'type' key to both sets of query calls in Controller::paginate(), fixes #5441
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7680 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 21:19:37 +00:00
AD7six
2cb2ca554c Correcting env('HTTP_BASE') ensuring that when used with no subdomain (http://example.com) it does not return '.com' as the HTTP_BASE
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7679 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 18:01:52 +00:00
nate
badfb42c6a Fixing issue with file upload inputs not being factored into form security hash, closes #5489
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7678 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 16:23:39 +00:00
mark_story
bf3e254987 Removing secure() from FormHelper::submit(). Removes creation of multiple _Token inputs when multiple submit buttons are created. Fixes #5490.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7677 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 01:58:27 +00:00
phpnut
d98137b272 Fixing text in a test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7676 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-28 23:55:40 +00:00
the_undefined
b0cca2c61e Added new problem that needs fixing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7675 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-28 18:02:25 +00:00
the_undefined
aab1e506a1 Fixes #5225
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7674 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-28 17:41:23 +00:00
TommyO
901c64abde Minor refactoring to better respect static method definitions, and to improve on unnecessary singleton instances.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7673 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-27 17:57:48 +00:00
mark_story
e8945ef04f Fixing doc block and method visibility doc tag for Configure::buildPaths(). Closes #5488
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7672 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-27 14:56:32 +00:00
mark_story
b6f9e1e537 Correcting scaffold view file implementation. Was incorrectly using separate add and edit templates. Changes bring scaffold templates more inline with bake templates.
Tests added to cover use with both primary app and plugins. Refs #4862 and closes #5484 

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7671 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-27 03:48:23 +00:00
renan.saddam
0a0ba598e5 Proving that ClassRegistry will not overwrite alias from associations. Closes #5482 as invalid.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7670 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-27 02:38:15 +00:00
john
6ad3cfa0ef Enhancing Set::map() so that it doesn't override manual setting of _name_. Test case enhanced to make sure it does so.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7669 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 21:11:51 +00:00
gwoo
f8f4bcc16c fixes #5482, playing with model that uses alias
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7668 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 15:27:36 +00:00
mark_story
1a0d87ba83 Correcting type and expanding documentation for Model::invalidate(). Closes #5481
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7667 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 15:14:31 +00:00
gwoo
e6b994bcb1 updating handling of required classes, fixes #5480
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7666 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 14:03:16 +00:00
renan.saddam
a628dfa028 Added test to prove #5482 (Trying to get property of non-object).
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7665 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 01:37:17 +00:00
mark_story
370b20dce6 Minor optimizations
Closes #5249 and #5282

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7664 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 00:46:53 +00:00
mark_story
c416b5d241 Removing cruft from form test
Adding test descriptions.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7663 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 00:07:57 +00:00
mark_story
62168bfe0f Updating doc blocks to include access and return PHPDOC tags.
Removing use of e() in Debugger.
Fixing code formatting in CookieComponent
Closes #5477

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7662 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 16:49:56 +00:00
mark_story
bd57349665 Updating help for schema shell. Clarifying use of schema dump.
Reformatting help for other commands.  Closes #5407

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7661 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 03:50:45 +00:00
renan.saddam
8cc72d853d Added test to disprove ticket #3771. Closes #3771 as invalid.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7660 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 00:58:06 +00:00
nate
ee36956000 Minor security class refactoring.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7659 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 23:05:51 +00:00
nate
eb7fb6d7e3 Re-implementing form hashing security to using string-based keying. Fixes #5262, fixes #5300
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7658 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 23:02:14 +00:00
gwoo
7266f86d14 fixing some errors in schema and test shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7657 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 13:49:37 +00:00
renan.saddam
3f8c959ab3 small refactoring for the ClassRegistry
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7656 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 13:37:06 +00:00
DarkAngelBGE
5aade5b581 small return home early refactorings for the set class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7655 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 12:08:24 +00:00
DarkAngelBGE
cc425a5e0a adding a couple whitespace corrections (trailing tabs, newlines, ..)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7654 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 11:52:29 +00:00
renan.saddam
3459fef98f Fixing wrong class_exists check. Fixes #5474.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7653 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 02:12:35 +00:00
renan.saddam
5245b3fa7c Added test to prove #5474. Refs #5474
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7652 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 02:00:57 +00:00
mark_story
3662f8c4d0 Changing how Folder Class is loaded. Fixes infinite loops resulting in segfault under apache 2 when Cache.disable = true and debug = 0. Closes #5458
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7651 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 00:33:54 +00:00
DarkAngelBGE
4ce3f21608 adding missing options array in Model::beforeValidate(0 and Model::beforeSave() as they are called with them out of the model and it is good practice, although they are meant to be overriden; closes #5470
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7650 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 18:50:27 +00:00
DarkAngelBGE
e245d18ed8 fixes #5469
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7648 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 12:04:02 +00:00
DarkAngelBGE
c8ab1ec092 small readability refactorings for Set::filter() and Set::matches()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7647 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 11:33:36 +00:00
mark_story
676459224c Adding patches from andy__ to dbo_odbc
Schema related functions will not work due to the way odbc works.
Closes #5398

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7646 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 02:59:05 +00:00
DarkAngelBGE
caa4e321f2 Fixing unneeded conditions in child queries when conditions are present in the model declaration; fixes #5323
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7645 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 20:08:31 +00:00
nate
24b444ca55 Fixing behavior initialization in model construction, adding Set::flatten() utility method for future refactoring, updating Set test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7644 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 16:32:41 +00:00
gwoo
ea7981023b updating doc block for Cache::set() refs #5460
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7643 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 13:06:26 +00:00
phpnut
8b45eeed8b Fixing MediaView so it will stop reading file when connection is aborted.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7642 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 05:35:36 +00:00
mark_story
fafb01b09d Fixing modelClass when using plugin models.
Added TestPluginPost to test_app/test_plugin
Test case added.
Closes #5459

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7641 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 04:10:49 +00:00
nate
d9b357d05c Making Model::$_findMethods protected, and fixing fatal error when table calls are attempted on a model with a missing table
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7640 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-21 04:09:16 +00:00
nate
80c1950530 Refactoring FormHelper security token generation, fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7639 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-21 04:06:37 +00:00
nate
42911f5bc3 Adding example Ajax layout for Auth test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7638 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-20 21:48:43 +00:00
nate
fc5b128d68 Refactoring Auth test, adding coverage, and enabling custom Ajax layouts (as specified by RequestHandler), fixes #5446
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7637 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-20 20:18:16 +00:00
mark_story
9482105abe Applying patch from renan_saddam. Fixes session checkAgent logic. Closes #5450
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7636 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-20 13:51:49 +00:00
nate
f695170365 Fixing console routing commands and implementing route loading so commands work with lazy route compiling
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7635 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 21:33:59 +00:00
nate
91838d6d5d Fixing bug in RequestHandler::prefers() not respecting accept order for single items, test case updated
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7634 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 19:48:22 +00:00
the_undefined
740bd4e769 Partial fix for #5225
Corrected expected behavior for 2nd issue

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7633 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 18:08:27 +00:00
gwoo
931d996d90 fixes #5438, multiple binding with alias
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7632 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 15:27:43 +00:00
renan.saddam
4f5a51d79d Proving bad condition structure when Session.checkAgent equal to false. Refs #5450
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7631 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 02:57:58 +00:00
renan.saddam
5cedddb9d2 Fixing since tag from file added on last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7630 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 02:40:07 +00:00
renan.saddam
597f7642fa Added tests to disprove strange App::import behavior. Closes #5395
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7629 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 02:37:20 +00:00
renan.saddam
f080163e8a Added test to disprove multiple calls to session start. Closes #5328
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7628 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 00:55:42 +00:00
mark_story
768e25c4fd Updating Controller::paginate(). Custom paginate() and paginateCount() methods now receive $extra params similar to find('all') and find('count') do. Allows the use of things like 'contain' with custom paginate() methods.
Test case added. Closes #5433 refs #5123.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7627 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 00:46:20 +00:00
renan.saddam
8fadcbafea Added test to show parent transversal bug. Merged patch from 'sneeka2'. Refs #5225
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7626 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 00:01:48 +00:00
phpnut
953db61447 Adding ability to cache content rendered with MediaView.
Fixed header()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7625 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 06:37:35 +00:00
mark_story
0f9a4e0470 Optimizing in_array() checks to isset().
No more in_array($a, array_keys($b)) patterns exist.
Closes #5161

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7624 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 03:40:28 +00:00
phpnut
8ae5866a1c Additional optimization refactoring
Removed ability to use deprecated / with plugin, helper, etc combinations. The dot notation is only allowed from this point forward.
Corrected tests for the above changes.
Corrected formating in basics.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7623 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 03:09:19 +00:00
nate
e3788dd6fa Updating XmlHelper test case for consistency with recent quoting fix
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7622 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 02:33:33 +00:00
renan.saddam
3e8261b465 Proving error when try to overwrite association name with bindModel. Refs #5438
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7621 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 01:54:31 +00:00
nate
66240f0c5d Refactoring DboPostgres and adding '.' to sequence name detection, fixes #5424, fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7620 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 00:23:17 +00:00
gwoo
fd73cf738a adding umask back to Folder class, see #27 for some amusement
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7619 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-17 21:54:36 +00:00
mark_story
f65de0b28d Adding test to dispatcher.test.php showing paths with named params. Tested on windows XP with apache 2.x and php 5.x Disproves #5445.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7618 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-17 21:08:50 +00:00
nate
e3d7aee9da Adding option to disable POST data validation in Security component, fixes #5412
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7617 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-17 15:27:41 +00:00
nate
85646b1908 Small refactor of Router
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7616 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-17 15:26:31 +00:00
nate
906dbcccbf Ensuring Dispatcher does not return an empty action, fixes #5434
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7615 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-17 15:17:23 +00:00
mark_story
05a5eda3d1 Adding CSS for skipped test icon to test suite.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7614 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-17 12:35:39 +00:00
mark_story
26a6a0e36f CakeSchema no longer takes tables that are not properly prefixed. Tests added to show prefixed db config and schema read. Closes #5413
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7613 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-17 01:47:19 +00:00
mark_story
616fac0f99 Applied patch from 'grigri' updating Model test to clear possible mis-interpretation of test cases. Closes #5439
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7612 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-16 17:17:24 +00:00
nate
14b17fed39 Changing private methods in Security component to protected
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7611 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-16 01:39:20 +00:00
mark_story
65cbbcf019 Changing '.id' to primaryKey reference. Closes #5437
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7610 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-16 00:42:01 +00:00
the_undefined
3ff9c49f82 Performance improvements by removing array_merge
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7609 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-15 18:05:31 +00:00
the_undefined
0e621885ab Fixed docblock error
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7608 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-15 18:05:26 +00:00
gwoo
06ee84a128 fixes #5429, Xml::toString() quotes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7607 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-15 11:50:51 +00:00
mark_story
44cf61b240 Updating doc blocks for ajax helper. Closes #5426
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7606 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-15 04:03:15 +00:00
mark_story
593871d58f Removing redundant html escaping from ErrorHandler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7605 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 23:24:01 +00:00
phpnut
5658e26e07 Changing comparison operators to === (identical) which is faster than == (equal)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7604 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 17:17:49 +00:00
DarkAngelBGE
35a2b466de performance improvements for code coverage analysis
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7603 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 12:14:39 +00:00
AD7six
93c5b68a93 fixes #5427 missing brackets for connection_aborted call
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7602 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 09:14:59 +00:00
mark_story
2b984bed94 changing array_key_exists to isset. Refs #5161
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7601 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 05:00:05 +00:00
phpnut
869cd1fe36 Small fix for MediaView randomly outputting 1 and corrupting output.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7600 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 03:02:57 +00:00
mark_story
ca584c5f1d Removing error suppression from mysql and mysqli drivers. Refs #3877
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7599 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 02:28:12 +00:00
mark_story
2c5819ed67 Removing object from ClassRegistry fixes broken tests in dbo_source.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7598 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 02:08:29 +00:00
phpnut
2b95df3abf Additional optimization refactoring
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7597 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-13 18:59:30 +00:00
phpnut
cb487bd6e6 More optimization refactoring.
Fix cache but causing  object_map to be created and deleted on each request.
Replacing function and method calls with better performing code.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7596 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 05:11:34 +00:00
nate
c9c18741fb Small security fix for Auth component when invalid Ajax request is triggered with no $ajaxLogin set
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7595 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 02:10:55 +00:00
nate
8b3a0a8782 Adding $options param to DboSource::execute()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7594 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 02:09:38 +00:00
nate
b7b235c2a5 Small test-correcting fix for Dispatcher
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7593 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 02:06:53 +00:00
gwoo
970ef7dc56 fixing issue in schema when model does not use a table. updating cache test to properly test Cache::set()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7592 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-11 13:35:11 +00:00
AD7six
0df14f183f adding cache test with multiple no cache tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7591 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-10 16:48:43 +00:00
the_undefined
4a5c4b3659 Removing random char
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7590 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 22:18:49 +00:00
the_undefined
c7ccc5ae71 Added dropTables option to CakeTestCase
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7589 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 21:49:49 +00:00
phpnut
bfa180e4af Setting missing props on files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7588 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:51:28 +00:00
phpnut
8a30e58504 Fixing class name in doc comment
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7587 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:48:13 +00:00
phpnut
a6f19c8240 Adding fix for Model::afterFind(); not having access to $this->data when using TreeBehavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7586 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:42:18 +00:00
mark_story
8e6a5a7214 Fixing issue with CakeTestCase::testAction not properly being able to simulate query string parameters.
Added tests for various parameter syntaxes.  
Closes #5400

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7585 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 16:48:52 +00:00
phpnut
a14e939ac4 Reverting some of the changes made in [7578]
Removed usage like: $var = $foo = $bar = null;
Replaced with:
$var = null;
$foo = null;
$bar = null;

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7584 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 11:32:18 +00:00
nate
13545bcf79 Removing loose type detection from DboDb2, no longer needed since type information is now explicitly passed. Fixes #4458
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7583 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 06:17:10 +00:00
nate
5d746a938d Removing quotes when saving binary data in DboMssql, fixes #5242
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7582 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 06:00:54 +00:00
DarkAngelBGE
10bb597fd6 rewriting configure values after successful execution of CakeTestCase::testTestAction()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7581 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 05:41:56 +00:00
nate
ee0e81406c Restoring previous patch to DboMssql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7580 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 05:41:51 +00:00
DarkAngelBGE
dbeb3af384 removing unneeded code from cake_test_case.test.php; fixing CakeTestCase test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7579 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 05:36:18 +00:00
DarkAngelBGE
823d9252de minor refactorings for the configure class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7578 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 05:26:09 +00:00
nate
0b227e6c24 Fixing DboMssql::buildColumn() to correct columns being created with incorrect null constraints, fixes #5373, fixes #5381
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7577 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 05:23:11 +00:00
DarkAngelBGE
8e546b23b8 removing commented code from dbo_source
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7576 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 04:47:52 +00:00
DarkAngelBGE
ab167ffb9f removing unneeded code lines in Folder->find(), which will never fire according to Folder->read()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7575 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 04:39:43 +00:00
DarkAngelBGE
8346bba694 fixing Folder->chmod() to take account files in subfolders as well when the recursive option is set; adding tests to prove the fix; fixes #5392
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7574 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 04:34:11 +00:00