1206 Commits

Author SHA1 Message Date
35ac718110 Fixes #16006: Handle case when X-Forwarded-Host header have multiple hosts separated with a comma 2018-03-31 16:17:16 +03:00
35c3ff2fbd Fixes #16010: Fixed yii\filters\ContentNegotiator behavior when GET parameters contain an array 2018-03-30 18:16:52 +03:00
13ad20551e Fixes #14660: Fixed yii\caching\DbCache concurrency issue when set values with the same key 2018-03-30 12:26:19 +03:00
839112a919 Issue #14834: skip 'TIMESTAMP' definition test when NO_ZERO_DATE enabled (#15987)
This is a temporary patch to be able to run tests on local configurations without additional MySQL 5.7 tuning.
This will not affect travis builds because travis running with NO_ZERO_DATE disabled.
2018-03-27 19:22:56 +03:00
4e940a2772 Fix travis builds for 'nightly' php (#15992)
1) Fixed unexpected exceptions (PHP nightly): https://travis-ci.org/yiisoft/yii2/jobs/358866164#L789
2) Fixed session issues (PHP hhvm): https://travis-ci.org/yiisoft/yii2/jobs/358866162#L841
3) Excluded unicode characters check from 'nightly' PHP version
4) Also deprecated InvalidParamException replaced with InvalidArgumentException
2018-03-27 19:22:15 +03:00
6adc81da4c Fix master travis builds (#15971) 2018-03-25 19:11:07 +03:00
5aa7bffedd Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2:
  Fixed a small spelling mistake
  Tweaking a few grammatical bugs (#15932) [skip ci]
  CacheableWidgetBehaviorTest enhancements (#15930)
2018-03-21 19:41:35 +01:00
0244abcd5a Merge branch '2.0.15-dev'
* 2.0.15-dev:
  release version 2.0.15.1
  optimize table name
  `yii\db\ActiveRecord::findOne()` now accepts column names prefixed with table name
2018-03-21 19:41:03 +01:00
0af1c05d6a yii\db\ActiveRecord::findOne() now accepts column names prefixed with table name
fixes #15931
2018-03-21 17:44:22 +01:00
8aebdd8c17 CacheableWidgetBehaviorTest enhancements (#15930)
1) Better PhpDoc (removed PhpStorm warnings)
2) Small speed optimization: there is no need 42 iterations for counter increment test. 2 is enough.
2018-03-20 21:11:28 +03:00
52ffaa1b25 Merge branch '2.0.15-dev'
* 2.0.15-dev:
  prepare for next release
  release version 2.0.15
  remove ColumnSchema import from mysql Schema because it conflicts with existing class
  Added russian docs
  Fixed grammar
  improved filtering condition on yii\db\ActiveRecord
  Wording adjustments and doc enhancements [skip ci]
  Fixed possible SQL injection through `ActiveRecord::findOne()`
  Fixes #15878: Fixed migration with a comment containing an apostrophe

Conflicts:
	framework/UPGRADE.md
2018-03-20 13:45:22 +01:00
b37f361ad7 Fixed possible SQL injection through ActiveRecord::findOne() 2018-03-20 11:20:56 +01:00
f33959419a Fixes #15878: Fixed migration with a comment containing an apostrophe 2018-03-20 11:19:10 +01:00
a1a2932131 Added test to check issue #15902
Closes #15902
2018-03-17 13:30:27 +02:00
c31f9ac811 Fixes #15878: Fixed migration with a comment containing an apostrophe 2018-03-15 00:51:32 +03:00
7a38c795b4 Merge pull request #15868 from SilverFire/mysql-json-cast-15839
Fixed JsonExpressionBuilder to cast JSON explicitly
2018-03-13 12:30:09 +02:00
52c80f782d moved SQL specific test to SQL AR 2018-03-12 11:21:05 +01:00
8be4563341 Merge pull request #15859 from FabrizioCaldarelli/15858-broken-basehtml-collecterrors-with-showallerrors-true
15858 broken basehtml collecterrors with showallerrors true
2018-03-10 18:44:10 +02:00
79583a2c7e Reverted casting JsonExpression(null) to SQL NULL 2018-03-10 11:14:08 +02:00
c6ea3fb455 Revert "Fixed JsonExpressionBuilder to generate SQL NULL"
This reverts commit cf4bd39fc1927c3cbe85c08c6fc473d60921d96f.
2018-03-10 11:11:11 +02:00
b3f54d1065 Simplified code, enhanced PHPDocs 2018-03-10 10:19:07 +02:00
0ca003343b Fixed test 2018-03-10 10:09:17 +02:00
cf4bd39fc1 Fixed JsonExpressionBuilder to generate SQL NULL
Fixes #15863
2018-03-10 10:04:41 +02:00
cc29ef8968 Fixed JsonExpressionBuilder to cast JSON explicitly
Fixes #15839;
2018-03-10 09:56:28 +02:00
f435284952 Fixed typo 2018-03-09 08:15:51 +02:00
52263077c0 Bug #15858: Fixed array undefined offset error calling Html::errorSummary with same error messages from different model attributes. (FabrizioCaldarelli) 2018-03-08 23:24:41 +01:00
aed911b5f1 Fixed nesting of JsonExpression, ArrayExpression 2018-03-08 12:45:01 +02:00
c484792084 Fixes #15840: Fixed regression on load fixture data file 2018-03-08 00:44:22 +03:00
45bccb11c1 Added test to verify #15838 2018-03-05 16:27:03 +02:00
fcea028cf1 Disabled UrlTest for HHVM in Travis
Probably, this change will fix random exception during HHVM build
on travis:

ps_files_cleanup_dir: opendir(/var/lib/hhvm/sessions) failed: Permission denied (13)
2018-03-05 16:25:59 +02:00
78aaca7a87 Fixed CommandTest::testBindValuesSupportsDeprecatedPDOCastingFormat() 2018-03-05 15:49:01 +02:00
4e35eb6539 Fixed JSONB support in PostgreSQL 9.4
Closes #15829
2018-03-04 20:25:36 +02:00
f7da602250 PgSQL: Fix table schema load for table name in quotes
This commit fixes the table schema loading for PostgreSQL, when
the table name is specified in quotes, e.g. `"type"`.
2018-03-04 20:19:45 +02:00
66081c6187 Added a unit test to verify #15827
Closes #15827
2018-03-03 22:31:42 +02:00
b642c36019 Merge branch 'antonmarin-patch-1' 2018-03-03 21:17:42 +02:00
8bb31fb9e5 Updated docs, added tests 2018-03-03 21:17:31 +02:00
5fa25b331d Fixed encoding of empty ArrayExpression for PostgreSQL 2018-03-03 20:43:58 +02:00
d5d4b8b0f5 Fixed null values handling for PostgresSQL arrays
Fixes #15804
2018-03-03 18:54:33 +02:00
233eeb52d7 fixed unit tests 2018-03-03 18:12:51 +02:00
9a949525a1 Fixed deprecated type casting format in Command::bindValues()
Fixed #15817
2018-03-03 17:50:18 +02:00
08c87aec4f Fixed Component::off() not to throw an exception
Fixes #15822
2018-03-03 16:37:41 +02:00
695218c312 Fix a unit test hand error. 2018-03-03 18:01:44 +08:00
d704f87219 Fix a unit test hand error. 2018-03-03 17:58:07 +08:00
12afecf9ce Added test to check has-error class on tabular input 2018-03-01 00:04:04 +01:00
ac687aab29 Fixed yii\db\Command::upsert() for Cubrid/MSSQL/Oracle 2018-02-24 19:59:12 +03:00
455b1f3f97 Fixing HHVM@Travis 2018-02-24 13:25:23 +02:00
6e30577abc Added ArrayAccess object in EachValidator
Fixes #15760
2018-02-24 11:59:32 +02:00
0ed15c6496 Added test for FileHelper::findDirectories except option 2018-02-24 02:32:49 +03:00
7473c422ee Fixes #15318: Fixed "session_name(): Cannot change session name when session is active" errors 2018-02-24 01:03:27 +03:00
0ef536d9c0 Merge pull request #15700 from bboure/15693-fix-http-heaer-auth
Fix HttpAuthHeader
2018-02-23 23:40:27 +02:00