forked from apache/commons-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from apache/master
update to current
- Loading branch information
Showing
136 changed files
with
3,024 additions
and
1,875 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "maven" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Java CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
matrix: | ||
java: [ 8, 11, 15 ] | ||
experimental: [false] | ||
include: | ||
- java: 16-ea | ||
experimental: true | ||
- java: 17-ea | ||
experimental: true | ||
|
||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1.4.3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Build with Maven | ||
run: mvn -V --batch-mode -Ddoclint=all --file pom.xml --no-transfer-progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/target/ | ||
/.settings/ | ||
/.classpath | ||
/.project | ||
/site-content/ | ||
/.vscode/ | ||
/commons-validator.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
language: java | ||
sudo: false | ||
|
||
jdk: | ||
- openjdk7 | ||
- oraclejdk8 | ||
|
||
after_success: | ||
- mvn clean cobertura:cobertura coveralls:report | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
language: java | ||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
matrix: | ||
include: | ||
- jdk: openjdk8 | ||
- jdk: openjdk11 | ||
- jdk: openjdk15 | ||
script: | ||
- mvn -V --no-transfer-progress clean test | ||
after_success: | ||
- mvn -V --no-transfer-progress clean cobertura:cobertura coveralls:report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Apache Commons Validator | ||
Copyright 2001-2017 The Apache Software Foundation | ||
Copyright 2001-2020 The Apache Software Foundation | ||
|
||
This product includes software developed at | ||
The Apache Software Foundation (http://www.apache.org/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,88 @@ | ||
Apache Commons Validator 1.6 | ||
Apache Commons Validator 1.7 | ||
RELEASE NOTES | ||
|
||
The Apache Commons Validator team is pleased to announce the release of Apache Commons Validator 1.6 | ||
The Apache Commons Validator team is pleased to announce the release of Apache Commons Validator 1.7 | ||
|
||
Apache Commons Validator provides the building blocks for both client side validation and server side data validation. | ||
It may be used standalone or with a framework like Struts. | ||
|
||
|
||
This is primarily a maintenance release. | ||
All projects are encouraged to update to this release of Apache Commons Validator. | ||
|
||
Commons Validator requires Java 1.6 or later. | ||
Commons Validator requires Java 7 or later. | ||
|
||
Main enhancements | ||
================= | ||
|
||
* Modulus Ten Check Digit Implementation | ||
* Generic CreditCard validation (syntax and checkdigit only; does not check IIN) | ||
* CreditCard validation specification by numeric range | ||
* DomainValidator instances can be created with instance overrides | ||
* DomainValidator supports overrides of LOCAL TLDs | ||
|
||
IMPORTANT NOTES | ||
=============== | ||
|
||
BREAKING CHANGES: | ||
|
||
* NONE. | ||
* Now requires Java 7 | ||
* N.B. Java 9 changed the way Locales are handled. This affects the output from some Date-related methods, and may cause some tests to break. | ||
|
||
DEPENDENCIES | ||
============ | ||
The dependencies for Validator have not changed since the 1.4 release. | ||
|
||
* Updates Apache Commons BeanUtils dependency from 1.9.2 to 1.9.4. | ||
This picks up BEANUTILS-482: Update commons-collections from 3.2.1 to 3.2.2 (CVE-2015-4852). | ||
|
||
For the current list of dependencies, please see http://commons.apache.org/validator/dependencies.html | ||
|
||
For complete information on Apache Commons Validator, including instructions on how to submit bug reports, | ||
patches, or suggestions for improvement, see the Apache Apache Commons Validator website: | ||
|
||
http://commons.apache.org/proper/commons-validator/ | ||
|
||
Download page: http://commons.apache.org/proper/commons-validator/download_validator.cgi | ||
|
||
Changes in this version include: | ||
=============================== | ||
|
||
New features: | ||
o VALIDATOR-415: Simplify building new CreditCard validators | ||
o VALIDATOR-413: Generic CreditCard validation | ||
o VALIDATOR-394: General Modulus Ten Check Digit Implementation Thanks to Niall Pemberton. | ||
o VALIDATOR-474: DomainValidator should allow local overrides | ||
o VALIDATOR-473: Allow Email- and UrlValidator to use specified DomainValidator | ||
o VALIDATOR-471: Allow DomainValidator overrides at run-time | ||
o VALIDATOR-423: Add ISINValidator | ||
o VALIDATOR-455: Add IBAN validator for VA – Vatican City State Thanks to Eugen Hanussek. | ||
o VALIDATOR-446: ISSN Validator extract ISSN from EAN-13 Thanks to Alex. | ||
|
||
Fixed Bugs: | ||
o VALIDATOR-420: Query params validator shouldn't accept whitespaces Thanks to Marcin Gasior. | ||
o VALIDATOR-419: Invalid IPv6 addresses that are IPv4-mapped pass InetAddressValidator validation Thanks to Denis Iskhakov. | ||
o VALIDATOR-418: UrlValidatorTest: testIsValid() does not run all tests Thanks to Robert McGuigan. | ||
o VALIDATOR-379: CodeValidator unconditionally trim()s the input string - document the behaviour | ||
o VALIDATOR-387: Userinfo without colon should be valid in UrlValidator Thanks to Shumpei Akai. | ||
o VALIDATOR-411: UrlValidator accepts ports above max limit of 16-bit unsigned integer | ||
o VALIDATOR-407: Generic .shop top level domain is considered invalid | ||
o VALIDATOR-405: IBANValidator - Costa Rica entry has been updated in SWIFT docs | ||
o VALIDATOR-401: IBANValidator fails for Seychelles and Ukraine | ||
o VALIDATOR-391: UrlValidator.isValid throws exception for FILEURLs | ||
Fixed code so it handles URLs with no authority field Thanks to Mark E. Scott, Jr. & Jason Loomis. | ||
o VALIDATOR-403: Accept Discover cards of 17 digits long that start with 6011 Thanks to Tanya. | ||
o VALIDATOR-408: DISCOVER Card Validation Patterns Thanks to Raj Vaida. | ||
o VALIDATOR-472: UrlValidator should not be more lax than java.net.URI | ||
o VALIDATOR-283: URLValidator should check for illegal Hex characters Thanks to RC Johnson. | ||
o VALIDATOR-445: Inet6Address may also contain a scope id Thanks to devson. | ||
o VALIDATOR-452: Validation of URL containing IPv4-mapped IPv6 address Thanks to devson. | ||
o VALIDATOR-438: IBANValidator fails for El Salvador | ||
Add definition Thanks to Simon Marti. | ||
o VALIDATOR-434: Field does not synchronize iteration on synchronized list Thanks to emopers. | ||
o VALIDATOR-437: Update Apache Commons BeanUtils dependency from 1.9.2 to 1.9.3. | ||
This picks up BEANUTILS-482: Update commons-collections from 3.2.1 to 3.2.2 (CVE-2015-4852). | ||
o VALIDATOR-460: Update Apache Commons BeanUtils dependency from 1.9.3 to 1.9.4 | ||
This picks up BEANUTILS-520: Mitigate CVE-2014-0114. Thanks to Jeff Schram. | ||
o VALIDATOR-461: Generic .gmbh top level domain is considered invalid Thanks to Nils Reischmann. | ||
o VALIDATOR-444: LongValidator: numbers bigger than the maxvalue are Valid Thanks to Martin Scholz. | ||
o VALIDATOR-416: CreditCardValidator default ctor disagrees with Javadoc | ||
o VALIDATOR-467: URL validator fails if path starts with double slash and has underscores Thanks to Ivan Larionov. | ||
o VALIDATOR-464: UrlValidator says "file://bad ^ domain.com/label/test" is valid Thanks to Sebastian Choina. | ||
o VALIDATOR-449: Leading and trailing spaces in EmailValidator should not be valid Thanks to Frederic Boutin. | ||
o VALIDATOR-302: EMailValidator: Addresses with leading spaces must not be accepted Thanks to Guido Zockoll. | ||
o VALIDATOR-468: DomainValidator.getTLDArray does not synch mutable arrays | ||
|
||
Changes: | ||
o IANA TLD lists: Updated to Version 2017020400, Last Updated Sat Feb 4 07:07:01 2017 UTC | ||
o Update to version 73 of SWIFT IBAN list: added BY (Belarus) and IQ (Iraq); fixed Santa Lucia format | ||
o Drop Clirr and Cobertura in favour of JApiCmp and JaCoCo | ||
o IANA TLD lists: Updated to Version 2020073100, Last Updated Fri Jul 31 07:07:01 2020 UTC | ||
o VALIDATOR-428: Update commons digester to 2.1 Thanks to Matthew Zavislak. | ||
|
||
|
||
Historical list of changes: http://commons.apache.org/proper/commons-validator/changes-report.html | ||
|
||
For complete information on Apache Commons Validator, including instructions on how to submit bug reports, | ||
patches, or suggestions for improvement, see the Apache Apache Commons Validator website: | ||
|
||
http://commons.apache.org/proper/commons-validator/ | ||
Enjoy! | ||
-Apache Commons Validator team |
Oops, something went wrong.