Commit graph

2219 commits

Author SHA1 Message Date
phpnut
bdaca1698b Adding fix for #2959, Missing arguments for DboAdodb::fields()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5453 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-24 12:49:58 +00:00
nate
42c5cb3a16 Fixing MySQL port configuration for persistent connections
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5452 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-23 00:46:42 +00:00
nate
8f69b6f551 Moving SecurityComponent constructor code to initialize()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5451 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-22 21:21:08 +00:00
nate
5ab89f495f Refactoring Router and improving route generation efficiency
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5450 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-22 04:07:06 +00:00
gwoo
0d999092d9 updating console paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5449 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-22 03:23:32 +00:00
gwoo
0519196d69 updating console paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5448 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-22 03:22:16 +00:00
the_undefined
b233522b92 Testing commit ability
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5444 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-19 13:38:26 +00:00
gwoo
a215447f83 updating project task, adding option to specify full path to skel directory
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5440 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-18 01:54:47 +00:00
nate
2664ed2ee4 Fixing trailing slash in URL when extension is used (Ticket #2934)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5439 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-17 13:45:20 +00:00
phishy
4d4cf07c84 fixed timestamp issues, added data_length to table descriptions, fixed bugs in value method, added
generateColumnSchema method


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5438 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-14 21:25:04 +00:00
gwoo
87bddd81f0 Auth model authorization will pass user, controller, action as parameters to the model's isAuthorized method
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5437 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-10 16:25:23 +00:00
phpnut
d09a59c5df Adding tests for cake/libs/controller classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5436 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 20:45:29 +00:00
phpnut
c1ef9e5944 Adding test for cake/libs/controller/components/
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5435 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 20:07:38 +00:00
phpnut
4f75a5e89e Adding tests for cake/libs/cache classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5434 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 19:52:31 +00:00
phpnut
771da8ec6f Removing i18n directory
Adding cache directory

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5433 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 19:37:23 +00:00
phpnut
65f5f00067 Adding tests cases for all classes in cake/libs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5432 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 19:26:37 +00:00
nate
467348357e Changing CacheHelper test case class name
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5431 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 19:03:04 +00:00
gwoo
c94a72db5a setting Auth::authorize to false by default
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5430 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 18:56:45 +00:00
nate
8dd6c78754 Modifying HtmlHelper::style() for use in attribute arrays, adding core helper tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5429 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 17:33:03 +00:00
phpnut
1df4249d54 Adding fix for #2882, Sanitize::escape() fails for numbers.
Added test for #2882.
Corrected header files in tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5428 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 17:02:55 +00:00
phpnut
016f5a952b Merging changes into the trunk:
Revision: [5426]
 * Disabling AuthTest until code is wrote to use temporary tables

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5427 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 06:47:28 +00:00
phpnut
9c3dfee2d3 Disabling AuthTest until code is wrote to use temporary tables
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5426 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 06:44:04 +00:00
phpnut
d2b4701a11 Merging changes into the trunk:
Revision: [5424]
 * updating AclComponent to load custom component which should extend AclBase

Revision: [5423]
 * updating Auth component and tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5425 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 05:57:03 +00:00
gwoo
dcbab2da0f updating AclComponent to load custom component which should extend AclBase
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5424 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 05:49:16 +00:00
gwoo
a6782f0b72 updating Auth component and tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5423 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 05:27:04 +00:00
phpnut
59ef6530b7 Merging fixes and enhancements into the trunk:
Revision: [5420]
 * Added doc comment for Set::reverse()

Revision: [5419]
 * updating Auth component

Revision: [5418]
 * Adding fix for #2881, Sanitize::escape() problem with trim()

Revision: [5417]
 * Disabling integer column length for Postgres (Ticket #2814)

Revision: [5416]
 * Fixing quoting of boolean values in DboPostgres (Ticket #2594)

Revision: [5415]
 * Adding fix for #2880, using the acl cli help command would return list of all commands instead of individual commands

Revision: [5414]
 * Adding fix for #2813, dbo_oracle.php's value function adding additional quotes

Revision: [5413]
 * fixing acl shell

Revision: [5412]
 * Adding fix for #2877, adds quit option in bake.php

Revision: [5411]
 * Adding fix for #2876, Missing {} on some string on tree behavior

Revision: [5410]
 * updating auth, acl and tests

Revision: [5409]
 * closes #2754, fix for project task

Revision: [5408]
 * Adding fix for #2836, PaginatorHelper::numbers() outputting extra url params

Revision: [5407]
 * Adding fix from #2872, $ajax->afterRender() has no decoding

Revision: [5405]
 * Adding fix for #2683, $_SERVER['SCRIPT_FILENAME'] not available in some installations of IIS

Revision: [5404]
 * Removing else statement in last commit [5403]

Revision: [5403]
 * Adding fix for #2863, When trying to load not existing helper file, loadHelper() returns true

Revision: [5402]
 * Adding fix for #2757, acl shell view command broken

Revision: [5401]
 * Adding fix for #2752, acl shell creates invalid sql

Revision: [5400]
 * Adding fix for #2776, ACL Shell should not accept / as an alias

Revision: [5399]
 * Adding fix for #2753, db_acl.php doesn't respect Dbo alias property

Revision: [5398]
 * Removing code left from testing

Revision: [5397]
 * Adding fix for #2837, dbo_source looping bug on parsing fields, can't use database function
 * Added test for #2837

Revision: [5396]
 * Skipping EmailTest::testBadSmtpSend() and EmailTest::testSmtpSend() if suite can not connect to smtp

Revision: [5395]
 * updating most tests with fixes to coding standards

Revision: [5394]
 * updating Auth test

Revision: [5393]
 * Adding fix for 2691, Error caching xml files

Revision: [5392]
 * updating Auth test with AuthUser and fixture

Revision: [5391]
 * updating Auth test

Revision: [5390]
 * Adding fix for #2822, FileEngine : Escape special chars before write cache

Revision: [5389]
 * Adding fix for #2105, Email Component template should default to null?
 * Adding fix for #2196, allow creation of user defined headers in email component.
 * Adding fix for #2215, EmailComponent header injection protection and cleaning.
 * Adding fix for #2717, EmailComponent should account for SAFE_MODE restriction on php mail function.
 * Adding fix for #2855, EmailComponent methods and parameters (to, subject, message, from etc.) should be email injection safe
 * Adding fix for #2859, EmailComponent does not send email when adding cc: and bcc:

Revision: [5388]
 * Adding fix for 'after' value not being rendered in FormHelper::input() (Ticket #2860)

Revision: [5387]
 * Incomplete test for Auth component, committing so gwoo can work on it

Revision: [5386]
 * #2871, fixing mode in Folder

Revision: [5385]
 * Adding fix for #2862, fixes view::render() affect the layout of the main view

Revision: [5384]
 * Adding fix for #2869, fixes count function not escaping "count" properly in pgsql

Revision: [5383]
 * Adding fix for #2866, fixes print_r() missing second parameter in object.php

Revision: [5382]
 * Fixed Inflector bug #2061
 * Added tests to InflectorTest

Revision: [5381]
 * Added fix for #2824, fixes Empty elements when DISABLE_CACHE is set to true

Revision: [5380]
 * Adding patch from [2843], fixes Logging only writes to error.log

Revision: [5379]
 * Adding fix for #2823, fixes Element gets different instances of helper than view in PHP4 and PHP5
 * Removed HtmlHelperTest::testRadio(), the HtmlHelper::radio() has been deprecated

Revision: [5378]
 * Adding deprecated notice to HtmlHelper::radio() this has been replaced with FormHelper::radio() since [5338]

Revision: [5377]
 * adding support for passing model name to model task, updated isMobile check in requestHandler

Revision: [5376]
 * fixing scaffold templates altrow css

Revision: [5375]
 * Adding iPhone detection to RequestHandlerComponent::isMobile()

Revision: [5374]
 * Adding fix for failing tests on php 5

Revision: [5373]
 * Refactoring Set::reverse() and Model::set()
 * Set::reverse() will now reverse the object to an array that was created in Set::map();
 * Added testMapReverse() to Set tests.
 * Removed code in Model::set() that was no longer needed

Revision: [5372]
 * Updating Set::reverse()
 * Corrected undefined variable

Revision: [5370]
 * Adding option to group elements in Set::combine and making Model::generateList use Set::combine. Adding tests for Model::generateList and more tests for Set::combine

Revision: [5369]
 * Adding Set::combine to allow mapping of keys and values of an array using paths

Revision: [5368]
 * Refactoring Model::set()
 * Added Set::reverse(0 to convert an object to an array

Revision: [5367]
 * Improving HABTM saving by getting rid of unneeded loop and escaping field names

Revision: [5366]
 * Refactoring the Model::_ _saveMulti() to use one INSERT statement instead of looping over each value and querying INSERT.

Revision: [5365]
 * Adding tests for HABTM saving when parent data comes after HABTM data

Revision: [5364]
 * Adding tests for HABTM saving, including saving HABTM data without any parent data

Revision: [5363]
 * Adding enhancement to allow saving habtm data without needing to update or save a parent record

Revision: [5362]
 * Adding tests for del and deleteAll in Model

Revision: [5361]
 * Adding aliasing fix for DboSource::delete() and Model::deleteAll() (Ticket #2735)

Revision: [5360]
 * fix Paginator::numbers() seperator: #2685

Revision: [5359]
 * fix Paginator::numbers() seperator: #2685

Revision: [5358]
 * adding test for form checkbox: #2785

Revision: [5357]
 * Added explanation to test

Revision: [5356]
 * adding test for paginator numbers to prove fix for #2825

Revision: [5355]
 * adding fix for paginator numbers: #2825

Revision: [5354]
 * Added in test to make sure that an SMTP server is running on port 25 on localhost

Revision: [5353]
 * Refactored SMTP send code, cleaned up tests.  Test requires local SMTP server that is working

Revision: [5352]
 * adding fix for bake form template: #2834

Revision: [5351]
 * Added code to allow Email compoenent to send email via SMTP, along with test for component

Revision: [5350]
 * Adding DboSource::value() to findCount() to wrap the count in dbo specific quoting

Revision: [5349]
 * Typo (ticket #2829)

Revision: [5348]
 * Correcting session errors in EmailTest test case

Revision: [5347]
 * Added in test for smtp functionality for email component, test not complete

Revision: [5346]
 * Added in support for sending code out via SMTP

Revision: [5345]
 * Adding a couple of tests to ensure proper parsing of GROUP BY queries

Revision: [5344]
 * Adding Router::reload() to setUp() in tests

Revision: [5343]
 * Adding fix for Ticket #2821, fixes Controller::postConditions() overrides $data passed in.

Revision: [5342]
 * Adding fix for Ticket #2819, fixes postgrsql schema problems when setting 'schema' => '"some_shcema"'; in database settings

Revision: [5341]
 * Correcting duplicate class defines in the test cases that was causing tests to fail.
 * Added Router::reload(); to ViewTest::setUp()

Revision: [5340]
 * Removed extra slash in test paths.
 * Removed extra lines in files.
 * Corrected header in file

Revision: [5339]
 * Refactoring FileEngine cache class
 * Refactoring Folder class

Revision: [5338]
 * Adding patch from Ticket #2817, Allow type radio in FormHelper::input()

Revision: [5337]
 * Fixing TreeBehavior so tests will work on php 4.
 * Removing _ _METHOD_ _ from files since it is not valid on php 4

Revision: [5336]
 * adding CakeTestModel::cacheSources = false;
 * corrected the class that models defined in tree.test.php extend

Revision: [5335]
 * Adding fix for Ticket #2812

Revision: [5334]
 * Adding fix for Ticket #2561

Revision: [5333]
 * Fixing bug when using Security component and a form has a hidden field, similar to those use by FormHelper::checkbox()

Revision: [5332]
 * Adding fix for duplicated hidden tag for fields token

Revision: [5331]
 * Adding enhancement and tests from #2159

Revision: [5330]
 * Adding patch from #2791

Revision: [5329]
 * Adding fix for Router::url() when static call is made outside of an object instance

Revision: [5328]
 * Adding fix for Ticket #2719, Paginator::numbers() not accepting $options like the prev() and next()

Revision: [5327]
 * Ticket #2805, fixes Blacklisting fields in FormHelper::inputs doesn't work like intended
 * Ticket #2806, adds FormHelper::inputs can work recursively on $fields
 * Merged changes from [5326]

Revision: [5326]
 * Fixing issue with DELETE statement and alias not being properly created

Revision: [5325]
 * Fixing issue #2810, AjaxHelper does not render boolean options properly, and adding tests for it

Revision: [5324]
 * Fixing issue #2713, NumberHelper does not handle some currency formatting very well

Revision: [5323]
 * Fixing issue #2735, deleteAll() does not work correctly with model aliases

Revision: [5322]
 * Fixing console scripts.
 * Correcting errors when using bake shell to create views.
 * Corrected errors when interactively creating controllers and views
 * Corrected issue in ProjectTask::cakeAdmin() with admin route not writing the admin define in core.php
 * Moved ControllerTask::getAdmin() to Shell::getAdmin()
 * Removed define setting CAKE_ADMIN to null which would cause issues with admin methods and views
 * Corrected missing ?>

Revision: [5321]
 * Adding fix for Ticket #2809, fixes Add / Edit scaffolding : Template is always 'edit' instead of $action

Revision: [5320]
 * Ticket #1303, fixes On HABTM save() the associated field 'id' must be first in $this->params
 * Ticket #1819, fixes save() for HABTM to allow array keys in any order.
 * Ticket #2762, fixes Model::save() for HABTM not saving if no data from the parent Model is present

Revision: [5319]
 * Adding fix for Ticket #2750, fixes rendering of links when requestAction() is used.
 * Router::url() replaced $_this with $this which is an instance of the class from which the method is called, in the case of this ticket it was an instance of the HtmlHelper

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5422 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 05:23:06 +00:00
phpnut
1713dcdfb2 Merging changes to Set class into 1.1.x.x
Added doc comment for Set::reverse()
merged changes in DboSource and DboPostgres into 1.1.x.x

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5420 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 04:47:05 +00:00
gwoo
49817ea42d updating Auth component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5419 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 04:38:58 +00:00
phpnut
a1019dfad3 Adding fix for #2881, Sanitize::escape() problem with trim()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5418 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 04:32:04 +00:00
nate
7e499f1f14 Disabling integer column length for Postgres (Ticket #2814)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5417 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 04:31:39 +00:00
nate
629c0a9d63 Fixing quoting of boolean values in DboPostgres (Ticket #2594)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5416 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 04:03:51 +00:00
phpnut
79147c297f Adding fix for #2880, using the acl cli help command would return list of all commands instead of individual commands
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5415 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 03:49:00 +00:00
phpnut
38bf760524 Adding fix for #2813, dbo_oracle.php's value function adding additional quotes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5414 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 02:57:56 +00:00
gwoo
d83a705dc3 fixing acl shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5413 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 01:04:54 +00:00
phpnut
d2ed329e76 Adding fix for #2877, adds quit option in bake.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5412 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 23:48:05 +00:00
phpnut
f792004469 Adding fix for #2876, Missing {} on some string on tree behavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5411 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 23:43:27 +00:00
gwoo
3769fa796d updating auth, acl and tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5410 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 21:01:31 +00:00
gwoo
e746fedf45 closes #2754, fix for project task
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5409 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 19:33:20 +00:00
phpnut
c9eb45232d Adding fix for #2836, PaginatorHelper::numbers() outputting extra url params
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5408 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 18:28:41 +00:00
phpnut
d6bf52dce7 Adding fix from #2872, $ajax->afterRender() has no decoding
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5407 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 18:06:44 +00:00
phpnut
5bc14621ca Adding fix for #2683, $_SERVER['SCRIPT_FILENAME'] not available in some installations of IIS
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5405 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:41:33 +00:00
phpnut
6a750aa176 Removing else statement in last commit [5403]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5404 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:20:45 +00:00
phpnut
75b1e901c0 Adding fix for #2863, When trying to load not existing helper file, loadHelper() returns true
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5403 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 17:17:44 +00:00
phpnut
f7dbc8a256 Adding fix for #2757, acl shell view command broken
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5402 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 04:12:52 +00:00
phpnut
a0a0a4a718 Adding fix for #2752, acl shell creates invalid sql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5401 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 03:38:07 +00:00
phpnut
7e14187bc7 Adding fix for #2776, ACL Shell should not accept / as an alias
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5400 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 03:15:26 +00:00
phpnut
7e3b4dfd84 Adding fix for #2753, db_acl.php doesn't respect Dbo alias property
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5399 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 03:09:06 +00:00
phpnut
1963c3b501 Removing code left from testing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5398 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 02:53:23 +00:00
phpnut
8229587cfe Adding fix for #2837, dbo_source looping bug on parsing fields, can't use database function
Added test for #2837

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5397 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 02:29:37 +00:00
phpnut
b2805cff95 Skipping EmailTest::testBadSmtpSend() and EmailTest::testSmtpSend() if suite can not connect to smtp
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5396 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 02:03:52 +00:00