156 Commits

Author SHA1 Message Date
581a7b2543 Fix #19735: Fix yii\validators\NumberValidator to use programmable message for the value validation 2023-01-13 10:57:03 +04:00
5358724251 Fix #12636: Fix CompareValidator successful state when compareAttribute has an error 2022-09-04 22:14:11 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
59f69fc9cd Fix #19462: Fix validator client options to encode HTML tags 2022-07-29 13:15:54 +03:00
009961963c Fix #19407: Fix yii\validators\UniqueValidator and yii\validators\ExistValidator to respect skipOnError option for target attributes 2022-07-29 09:47:33 +03:00
06e5472753 Fix #19256: Pass missed $view to user's callback in yii\validators\InlineValidator::clientValidateAttribute() 2022-04-08 01:20:28 +04:00
7b8c29d874 Fix #19243: Handle finfo_open for tar.xz as application/octet-stream on PHP 8.1 2022-02-19 23:45:20 +03:00
13f27e4d92 Fix #18817: Use paragonie/random_compat for random bytes and int generation 2021-08-09 10:25:36 +03:00
be1b98b1df Fix #18756: Fix \yii\validators\ExistValidator::queryValueExists to validate against an array of unique values 2021-08-04 21:00:58 +03:00
f00e44fb6e Fix #18569: Add NumberValidator::$allowArray 2021-04-26 15:43:13 +03:00
3593696b93 Fixing Email Validator to handle edge case where email address is valid but fails ascii conversion. 2021-03-31 11:50:24 -07:00
cfe782b3f5 Fix #18544: Fix yii\validators\NumberValidator to disallow values with whitespaces 2021-03-11 00:40:34 +03:00
b8e31c0d31 Fix #18460: compareValue in CompareValidator can now take a closure returning a value 2021-02-25 13:01:38 +03:00
8dc3131435 Add negative timezone in tests for date-only with non-UTC timezone (#18432) 2020-12-12 19:19:50 +03:00
8784331022 Fix #18385: Add ci-oracle and fix tests
* Add github action for testing oci8 Oracle.
* Fix CommandTest::testQueryCache.
* Fix tests CommandTest::testBindParamsNonWhere.
* Fix test CommandTest::testInsert.
* Fix test CommanTest::testInsertExpression.
* Fix test CommandTest::testInsertSelectAlias.
* Fix test CommandTest::testBindParamValue.
* Fix tests CommandTest::testBatchInsertDataTypesLocale.
* Fix test CommandTest::testNoTablenameReplacement.
* Fix test CommandTest::testCreateTable.
* Fix test CommandTest::testsInsertQueryAsColumnValue.
* Fix tests CommandTest::testAlterTable.
* Fix test CommandTest::testCreateView.
* Fix test CommandTest::testTransaction.
* Fix test ConnectionTest::testTransactionShortcutCorrect.
* Fix test ConnectionTest::testTransactionShortcutCustom.
* Fix test ConnectionTest::testEnableQueryLog.
* Fix test QueryBuilder::testAddDropDefaultValue.
* Fix test QueryTest::testUnion.
* Fix test QueryTest::testExpressionInFrom.
* Fix test SchemaTest::testFindUniqueIndexes.
* Fix test QueryBuilderTest::testGetColumnType.
* Fix test ActiveRecordTest::testFind.
* Fix test ExistValidatorTest::testExpresionInAttributeColumnName.
* Fix test UniqueValidatorTest::testExpressionInAttributeColumnName.
* Fix ActiveRecordTest testCastValues(), testDefaultValues.
* Fix test UniqueValidatorTest::testValidateAttributeDefault.
* Fix test UniqueValidatorTest::testValidateEmptyAttributeInStringField.
* Fix test UniqueValidatorTest::testValidateEmptyAttributeInIntField.
* Fix test ActiveRecordTest::testBit.
* Fix test ActiveRecordTest::testBooleanAttribute.
* Fix test ActiveRecordTest::testJoinWithAlias.
* Fix test SchemaTest::testColumnSchema.
* Fix test CommandTest:: testBatchInsertSQL.
* Skip CommandTest::testColumnCase.
* Fix test ConnectionTest::testQuoteValue.
* Should be fixed tests conditionsProvider in QueryBuilderTest.
* Fix ActiveRecordTest.php
* Fix test UniqueValidatorTest.
* Fix test QueryBuilderTest::testUpsert.
* Skip SchemaTest::testCompositeFK.
2020-11-23 23:12:01 +03:00
840083724e Fix #18351: Added option to change default timezone for parsing formats without time part in yii\validators\DateValidator 2020-10-31 15:59:20 +03:00
f212925242 Fix #18239: Fix support of no-extension files for FileValidator::validateExtension() 2020-08-19 20:32:15 +03:00
d62590807d Fix #18051: Fix using EachValidator with custom validation function 2020-07-06 16:18:03 +03:00
f944e1f039 Fix #18094: Support for composite file extension validation 2020-07-03 19:06:49 +03:00
385fe13d66 Revert #18102 since renaming is technically problematic (#18109) 2020-06-17 13:40:17 +03:00
eb956e9c6b primary/replica in a definitely non-breaking way (#18106) 2020-06-16 11:33:27 +03:00
b642a384fa Fix #18096: Fix InlineValidator with anonymous inline function not working well from EachValidator 2020-06-15 10:14:57 +03:00
472600ee3f Fix #18102: Use “primary”/“replica” terminology instead of “master”/“slave” 2020-06-14 00:12:10 +03:00
2a73a4ae3a Fix #18051: Fix missing support for custom validation method in EachValidator 2020-05-23 17:37:23 +03:00
c32811887a Fix #18011: Added attribute labels support for DynamicModel, fixed EachValidator to pass the attribute label to the underlying DynamicModel 2020-05-02 02:14:03 +03:00
355ca1562d Fix #17810: Fix EachValidator crashing with uninitialized typed properties 2020-04-04 15:03:09 +03:00
31e3698ab9 Fix #17827: Add StringValidator::$strict that can be turned off to allow any scalars
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-03-24 16:51:38 +03:00
b388aec1a2 IpValidator test fix (#17658) 2019-11-07 19:36:39 +02:00
5e38f47275 Fix #16305: Fix FileValidator mime-type validation failure because of case sensitivity 2019-08-27 18:59:26 +03:00
136705c92b MSSQL: fix tests (#17431) 2019-07-13 02:27:47 +03:00
56f639358c Add MSSQL tests (#17410) 2019-07-04 15:51:01 +03:00
9dcf65e304 Fix #17389: Fixed UniqueValidator to work with Active Record having joinWith() in its find() 2019-07-02 20:50:53 +03:00
2d333b2301 Fixes #17382: Added \yii\validators\DateValidator::$strictDateFormat to enable strict validation 2019-06-25 15:24:32 +07:00
e1f6761dfd Fixes #17233: Fixed bug with integer model attribute names in Validator class 2019-05-15 18:03:57 +03:00
92c66758de Added tests for DateValidator when no time is specified for 'format' (#17018)
Related issues:
* #10737
* #14299
* #14795
2019-01-04 18:45:49 -05:00
4584487126 Fixes DateValidatorTest for ICU 55.1 (#17013)
I have installed ICU of version `55.1` and tests fail on it. That's because 'short' datetime format has been changed earlier - starting with version 55.1

See for example Symfony changes for ICU 55: 4f224ef4ab (diff-564fc4b01393077657880495f2be7b17R54)
2019-01-04 05:38:10 -05:00
d7ffda020b Fixes #16903: Fixed 'yii\validators\NumberValidator' method 'isNotNumber' returns false for true/false value 2018-11-23 12:55:07 +03:00
68e5a9b315 Fix typo (#16443) [skip ci] 2018-06-26 19:05:49 +03:00
6adc81da4c Fix master travis builds (#15971) 2018-03-25 19:11:07 +03:00
6e30577abc Added ArrayAccess object in EachValidator
Fixes #15760
2018-02-24 11:59:32 +02:00
23b5fa4391 Fix ExistValidator with targetRelation ignores filter (#15692) 2018-02-20 20:07:55 +05:00
a4b6b853b6 Fixed DateValidator to respect time when format is php:U
Fixes #15628
2018-02-18 09:55:43 +02:00
7bd694dccb Enhanced tests 2018-02-16 00:06:59 +02:00
63ffae028e Fixes #14254: add an option to specify whether validator is forced to always use master DB for yii\validators\UniqueValidator and yii\validators\ExistValidator 2018-02-15 02:12:54 +03:00
a18ee838fd Fixes #8092: ExistValidator for relations 2018-02-13 01:12:05 +03:00
eb57d4191c Fixes #15553: Fixed yii\validators\NumberValidator incorrectly validate resource 2018-01-25 14:28:41 +03:00
248415422f Fixed #15140 DateValidator tests for specific ICU versions (#15518) 2018-01-19 21:35:33 +03:00
07fc770730 Improve email validator test coverage (#15504) 2018-01-16 11:05:06 +03:00
5ce0e06cd7 Refactor email validator tests (#15503) 2018-01-16 11:04:29 +03:00
72b69e359a Fixes #15417: Added yii\validators\FileValidator::$minFiles 2018-01-08 02:12:27 +04:00