CHANGELOG
4.7.x
v4.7.0 - Behavior changes
- v4.7.2 - Breaking change : Java 21 or above is required to run
validator-cli.jar(compiled for Java 21 instead of Java 17,UnsupportedClassVersionErrorwith Java 17), as gpu-site. CI tests Java 21 and 25 - v4.7.2 - Constraint
enumSeparator(ex :",") allowing several values of theenumlist in a String attribute (ex :PROPANE,BUTANE), each value is checked as is (no trim :PROPANE, BUTANEis rejected),ATTRIBUTE_UNEXPECTED_VALUEreports the invalid value only - v4.7.0 - Breaking change : Java 17 or above is required to run
validator-cli.jar(compiled for Java 17 instead of Java 11,UnsupportedClassVersionErrorwith Java 11). Docker image and CI already use Java 25. - v4.7.1 -
--cnig-document-emprisewith a GeoJSON file of several features (ex : municipalities of gpu-site) : the holes of the union smaller than 1e-5 square degrees (about 8 ha, gaps between the borders of adjacent features, 2 280 holes for the 95 municipalities of an EPCI) are removed, so that a geometry inside such a gap is no longer reported byCNIG_GEOMETRY_OUTSIDE_DOCUMENT_EMPRISE_ERROR. A WKT or a GeoJSON of a single feature is unchanged - v4.7.2 - Type
Integer: a value outside the int range (ex :130010408211),NaNorInfinityis reported as an invalid format and normalized to null, instead of being silently converted to2147483647/-2147483648(or0forNaN) in the validation and in the normalized data
v4.7.0 - Dependencies and build
- v4.7.2 - CI : PostGIS 17 for the DGPR tests
- v4.7.1 - CNIG : no more empty
DATA/tmpdirectory in the normalized data (temporary directory of theTITRES_PIECES_ECRITESand SUP post-processes removed) - v4.7.1 - JSON schemas
schema/Document.jsonandschema/Table.jsonaligned with the code :constraints(folderName,metadataSpecification) instead ofregexp,codes,tablesof themulti_tablefiles,xsdSchema, table constraints (conditions,foreignKeys),presenceRequired, typeUrl(notURL), naming rules of the tables and columns (checked against the CNIG / PCRS / DGPR / validator-config-gpu configurations) - v4.7.1 -
--help:OGR2OGR_TIMEOUT,GMLAS_CONFIGandDB_*environment variables listed, order of the error thresholds of--cnig-complexity-tolerancefixed (point, part, ring) and expected format - v4.7.1 - CNIG : a metadata thesaurus without keyword (ex :
Types de documents d’urbanisme) is reported asCNIG_METADATA_KEYWORD_NOT_FOUNDinstead of stopping the validation (NullPointerException) - v4.7.1 - Build : the code formatter configuration is moved from
eclipse/formatter-config.xmlto.mvn/formatter-config.xml - v4.7.1 - XML validation : the XML parser can’t access external schemas itself (
ACCESS_EXTERNAL_SCHEMA), the imported and included schemas are only read by the validator (http(s) with timeouts, local files, other protocols rejected) [SECURITY] - v4.7.1 - CNIG :
--cnig-document-emprisecheck (CNIG_GEOMETRY_OUTSIDE_DOCUMENT_EMPRISE_ERROR) with the emprise prepared once (PreparedGeometry, indexed segments) instead of a fullcontainsper feature : same result, ~1000 times faster with a detailed municipality boundary (128 s to 0.12 s for 20 000 zones and a 100 000 vertices emprise) - v4.7.1 - Memory : the foreign key mismatches (
TABLE_FOREIGN_KEY_NOT_FOUND) are reported while reading the query results instead of being all kept in a list (millions of objects for a massively invalid table), same report - v4.7.1 - HTTPS : TLSv1.3 allowed for the downloads (models, static tables, XSD),
https.protocols=TLSv1,TLSv1.1,TLSv1.2was forcing TLSv1.2 as TLSv1 and TLSv1.1 are disabled by the JDK - v4.7.1 - Memory : charset detection reads the files by blocks (a file without line breaks was loaded as a single line), only the first 64 KB of ogr2ogr stderr are read to report a conversion failure
- v4.7.1 - Temporary files : the CSV conversions next to the data (
*.vrows,*.vtabs) are removed at the end of the validation (also on failure) instead of the next run, ogr2ogr work directories (.validator-ogr2ogr-*) left by a killed process are removed,--cnig-document-empriseuses a unique temporary file instead ofcnig_document_emprise_wkt.csvnext to the GeoJSON (shared by concurrent validations) - v4.7.1 - XML validation : the XSD schemas (and their imports) are downloaded with timeouts (the JDK defaults are infinite : a validation could hang on a remote schema) and compiled once per URL instead of once per XML file, XML file closed after the validation
- v4.7.1 - PostgreSQL : maximum duration of a query with
DB_STATEMENT_TIMEOUT(seconds, default 3600,0for no limit) : a query kept running on the server when validator-cli was killed (ex : timeout of validator-api) - v4.7.1 - PostgreSQL :
DB_SCHEMAmust be a valid identifier and can’t be a system schema (DB_SCHEMA=PUBLICwas accepted : unquoted names are case insensitive and the schema is dropped withCASCADEon restart), warning whenDB_SCHEMAis not defined (shared schemavalidation) - v4.7.1 - Logs :
DB_URLis no longer written invalidator-debug.log(returned to the users by validator-api) [SECURITY] - v4.7.1 - ogr2ogr : the input driver is forced according to the extension (
-if, GDAL >= 3.2) and the OGR VRT driver is disabled (GDAL_SKIP=OGR_VRT) : a “.gml”, “.dbf” or “.gpkg” file containing an OGR VRT could read the files of the server or internal URLs (exposed inDATA/*.csvand the report). A file whose content doesn’t match its extension (ex : CSV named “.dbf”) is now rejected [SECURITY] - v4.7.1 - GeoPackage multi-table files : table names are checked before the conversion (a table named
../../xwas written by ogr2ogr outside the conversion directory) [SECURITY] - v4.7.1 - GML : no download of the WFS schema referenced by the user file (
GML_DOWNLOAD_WFS_SCHEMA=NO, SSRF), the validation database credentials (DB_*,PG*) are not given to ogr2ogr [SECURITY] - v4.7.1 - Metadata : linear check of the contact email (the regex took minutes on a long
gmd:electronicMailAddress,NullPointerExceptionwhen missing) [SECURITY] - v4.7.1 - ogr2ogr is killed when validator-cli is stopped (ex : timeout of validator-api) instead of running up to
OGR2OGR_TIMEOUT - v4.7.1 - PostgreSQL : query results are fetched by batches of 1000 rows (
setFetchSize) instead of being loaded in memory, SQL result iterators closed on errors (try-with-resources) - v4.7.1 - Report : relative path instead of the absolute one in
TABLE_INVALID_ROW - v4.7.1 - Database : the column names of the FeatureTypes created from the data (
autotable models, ex : PCRS) are no longer concatenated as is inCREATE TABLE(SQL injection with a crafted column name, ex : PostgreSQL validation database of validator-api) : invalid names are ignored with a warning,Database.createTable/createIndexreject them [SECURITY] - v4.7.1 - Model : the names of the tables, attributes and static tables must be valid identifiers (letters, digits and
_, used in SQL queries and in paths such asDATA/{TABLE}.csv), a remote model can only reference http(s) types and static tables (nofile:URL) [SECURITY] - v4.7.1 - No regex built from the attribute names (
FeatureType.indexOf) nor polynomial regex on the SUP table names (CodeQL alerts), CI workflow with read onlypermissions - v4.7.1 - Build : bump
maven-dependency-pluginto 3.11.0, GitHub actions (actions/checkoutv7,actions/setup-javav6,docker/*actions : Node 24), Renovate configuration migrated toconfig:recommended(commons-cli2.0 pre-releases ignored) - v4.7.1 - Build :
log4j-bomandjackson-bomimported independencyManagement(one version property per library), the dependencies are declared invalidator-coreinstead of being inherited by all the modules,pom.xmlreorganized - v4.7.1 - CI :
.ci/osv-check.shand theOSVworkflow (every monday and when apom.xmlchanges) check the dependencies against the OSV database and fail on a known vulnerability [SECURITY] - v4.7.1 - Docker :
JAVA_TOOL_OPTIONS=-XX:MaxRAMPercentage=75in the image (a JVM in a container only used 25 % of the available memory : 2 GB on a machine of 8 GB), an explicit-Xmxstill takes precedence - v4.7.1 - Logs : the absolute paths of the server are reduced to
.../filenameinvalidator-debug.log(messages and exceptions, returned to the users by validator-api), the SQL queries are kept [SECURITY] - v4.7.1 - CNIG : document emprise built from a GeoJSON of several features with a single
UnaryUnionOpinstead of one union per feature (quadratic : 2.5 s to 0.3 s for the 95 municipalities of an EPCI), same result up to floating point noise - v4.7.1 - Performance : the file names of a document are listed once per validation (
Context.getFilenamesInCurrentDirectory()) instead of a walk of the directory for each validated file name (FilenameExistsValidator) - v4.7.1 - Performance : the charset checks (
CharsetDetector) are cached per file (path, last modification date and size), each reader of a file decoded it entirely before - v4.7.1 - Performance : CNIG SUP, the
fichierjoins of the normalized GENERATEUR and ASSIETTE tables start from the generateur (inner joins) instead of scanningacte_supfor each row, and use an index onservitude_acte_sup(idsup)(SQLite built a temporary index for each query : 430 s to 0.1 s for 20 000 assiettes, same normalized data) - v4.7.1 - Report : a write error of
validation.jsonl(ex : disk full) fails the validation instead of leaving a truncated report with a successful validation (PrintStreamswallowed the error) - v4.7.1 - Resources : the
CSVParseris closed when the header of a CSV can’t be read, the validation database of the CNIG SUP post-process is closed on any error,ogr2ogr --versionwaits 30 seconds at most, the failure of the PostgreSQLSET enable_seqscanof the DGPR validators is logged - v4.7.0 - Bump GeoTools from 27.5 to 35.2 :
org.opengisreplaced byorg.geotools.api,DirectPositionbyPosition. No output change on the CNIG / PCRS / DGPR test datasets (document-info.json,validation.jsonl, normalized data, reprojections in the 26 supported projections, with Java 17 and Java 21) - v4.7.0 - CI : build and tests with Java 17 (minimum supported version) and Java 25 (Docker image)
- v4.7.0 -
validator-cli.jar: 24.4 Mo to 26.3 Mo (newer EPSG database,tools.jackson.corerequired by GeoTools), Eclipse ImageN (image processing, replaces JAI in GeoTools) excluded from the jar
4.6.x
v4.6.0 - Behavior changes
- v4.6.0 - Compare values with
=instead ofLIKEfor foreign keys and DGPR controls (_and%were wildcards, case insensitive comparison with SQLITE) - v4.6.0 - Fail the validation when ogr2ogr fails (exit code, stderr reported) instead of validating a partial output, add
OGR2OGR_TIMEOUT(seconds, default 3600) - v4.6.0 - DGPR :
DGPR_INOND_INCLUSION_ERRORchecks the inclusion in the union of the surfaces of each weaker scenario (Fort in Moyen and Faible, Moyen in Faible) instead of a single surface of the next scenario - v4.6.0 -
document_geometry: return exit code 1 on failure - v4.6.0 - Deprecate
--dgpr-safe-simplify(no effect, topology preserving simplification is always used) - v4.6.2 - DGPR : add
--dgpr-skip-inclusion(skipDGPR_INOND_INCLUSION_*) and--dgpr-skip-graph-topology(skipDGPR_ISO_HT_*, ex :DGPR_ISO_HT_FUSION_NOT_SURFACE_INOND) to disable these controls - v4.6.0 - Report unavailable static tables (reference lists of the model, ex : csv removed from the server) as
MODEL_STATIC_TABLE_NOT_FOUNDinstead of failing the validation (database validators are skipped) - v4.6.4 - Breaking change : the conversion of the normalized CSV files to shapefile (
DATA/*.shp,DATA/*.dbf,DATA/*.vrt,DATA/*.cpg) is removed (CreateShapefilesPostProcess,VRT,FileConverter.convertToShapefile), onlyDATA/*.csvis produced (#360)
v4.6.4 - Features
- v4.6.4 - Docker :
Dockerfile(ubuntu 24.04, Java 21, GDAL, GMLAS config,fr_FR.UTF-8locale for XML validation messages, non-root user), seedoc/docker.md(#349)
v4.6.0 - Fixes
- v4.6.5 - Metadata : reject DOCTYPE declarations in XML metadata files (XXE : external entities could read local files of the server and expose them in the metadata properties, CVE-2021-33813) [SECURITY]
- v4.6.5 - Logs : the tables of a multi-table file (ex : PCRS GML) missing from the data are logged as INFO instead of WARN (~25 WARN less per PCRS dataset, read errors still logged as WARN)
- v4.6.5 -
document-info.json: no morefail to compute statserrors for the tables of a multi-table file (ex : PCRS GML) not found in the data - v4.6.5 - CNIG : fix
DOC_URBA.csvnot filtered when the document name is not a valid DU name with CNIG v1 models (NullPointerExceptioninIdurbaFormatV1, a partialDOC_URBA.new.csvwas left inDATA) - v4.6.5 - Logs : directories are skipped by the normalization without
ERROR(Normalization is not supported for ... (DirectoryModel)), no moreERRORfor the tables of a multi-table file not found in the data (MultiTableReader, ex : PCRS), clearerconverted to null (bad type)warnings (TABLE.ATTRIBUTE : 'value') - v4.6.5 - Charset : a few invalid UTF-8 byte sequences (ex : text truncated in the middle of an accented character to fit a DBF field length) no longer lead to read the whole table as LATIN1 (double encoding of every accented character, ex :
ChâteauforChâteau, propagated tonomsuplittbySupRelationsPostProcess).CharsetDetector.detectCharsetreturns UTF-8 when valid multi-byte sequences are more frequent than invalid ones - v4.6.5 - Charset : invalid byte sequences are removed from the values and reported as
ATTRIBUTE_INVALID_BYTE_SEQUENCE(WARNING, with line and attribute) instead ofATTRIBUTE_CHARACTERS_ILLEGAL(ERROR with--string-all LATIN1).TABLE_UNEXPECTED_ENCODINGis no longer reported when the detected charset is the declared one - v4.6.4 - Metadata :
gmd:useLimitationwithgmx:Anchor: thexlink:hrefis exposed in the optionaluseLimitationUrlsproperty (aligned withuseLimitations,useLimitationsis unchanged) (#22) - v4.6.4 - Code lists :
.propertiesfiles replaced by JSON arrays[{"code":..., "description":...}]incodes/[NAME].json(#124) - v4.6.4 - Metadata :
METADATA_EXTENT_INVALIDalso reported for longitudes outside [-180,180], latitudes outside [-90,90] and south latitude greater than north latitude (#34) - v4.6.0 - DGPR : fix topology and inclusion controls (PostgreSQL) disabled without
--dgpr-simplify(ST_SimplifyPreserveTopology(geom, NULL)returns NULL) - v4.6.0 - DGPR : fix inclusion control matching ids by substring (ex :
SIN_1considered as included whenSIN_10is) - v4.6.0 - DGPR : rollback to a savepoint when a PostGIS error occurs (the following controls were failing with “current transaction is aborted”)
- v4.6.0 - Fix validation database support for PostgreSQL (driver detection, hash indexes for large values,
getCount, SUP columns detection withoutpragma_table_info) - v4.6.0 - Fix rows with missing values (
ArrayIndexOutOfBoundsExceptionwhile validating and loading the validation database) and values shifted by columns without name (rows aligned on the header, invalid rows reported asTABLE_INVALID_ROW) - v4.6.0 - Fix JDBC leaks (statements of
Database.query()andDatabaseSUP, connections not closed on failure and afterSupRelationsPostProcess) - v4.6.0 - Close the files and HTTP connections opened by
TableReader - v4.6.0 - Add network timeouts (30s to connect, 120s to read) for models and static tables (a server not responding was blocking the validation)
- v4.6.0 - Download remote static tables once per validation (
static_tables/{name}.csvin the validation directory, they were read 3 times) - v4.6.0 - Use
Locale.ROOTfor case conversions (ex :IDURBAwas converted toıdurbawith a turkish locale) - v4.6.0 - DGPR : fix
NullPointerExceptionin inclusion control without--dgpr-tolerance
v4.6.0 - Dependencies and build
- v4.6.0 - Bump dependencies (Jackson 2.22.3, commons-io 2.22.0, commons-lang3 3.21.0, PostgreSQL 42.7.13, sqlite-jdbc 3.53.4.0, Maven plugins) and replace
commons-lang2.6 bycommons-lang3(CVE-2025-48924) [SECURITY] - v4.6.5 - Bump dependencies (Jackson 2.23.0, commons-lang3 3.22.0, PostgreSQL 42.7.14, sqlite-jdbc 3.54.1.0, maven-surefire-plugin 3.6.1, jacoco-maven-plugin 0.8.16)
- v4.6.5 - Replace
jdom1.0 byjdom22.0.6.1 and bumpjaxento 2.0.6 (metadata parsing) - v4.6.5 - Build : exclude the unused GeoTools OGC XML models (EMF) from the Maven dependencies (EMF poms declare version ranges : metadata downloaded from every repository, slow builds and warnings behind a proxy)
- v4.6.6 - Tests :
FileConverterTestcompares the WKT of the GML and GeoJSON conversions with a tolerance (ogr2ogr may parse a 17 digits coordinate to the next double depending on the platform : CI failure of v4.6.5 on the GitHub ubuntu-26.04 runner) - v4.6.5 - Tests : Mockito loaded as a Java agent by surefire (
maven-dependency-plugin:properties, self-attaching will be disallowed by the JDK) - v4.6.5 - Build : no more
maven-shade-pluginoverlapping resources warnings (dependencies manifests excluded,LICENSEtexts concatenated,NOTICEfiles merged : the licenses of all the dependencies are kept invalidator-cli.jar) - v4.6.0 - Reduce
validator-cli.jarsize from 35.6 to 23.0 Mo (SQLite native libraries limited to Linux, Mac and Windows x86_64, unused GeoTools dependencies JAI and EMF excluded,woodstox-core-aslremoved) - v4.6.0 - CI : test the DGPR controls with PostGIS
- v4.6.0 - Remove unused files (obsolete
dependency-reduced-pom.xmlandvalidator.sh, unused classes and test resources)
4.5.x
- v4.5.6 - Add
ORIGINAL_PATHcolumn to normalizedTITRES_PIECES_ECRITES.csv(relative path underPieces_ecrites) - v4.5.4 - Bump Jackson (FasterXML) to 2.21.4 [SECURITY]
- v4.5.4 - Bump commons-lang3 to 3.18.0 (override GeoTools transitive) [SECURITY]
- v4.5.4 - Add
make trivytarget to scan Maven dependencies for vulnerabilities - v4.5.4 - Reduce build warnings (compiler, shade plugin, surefire)
- v4.5.3 - Improve deb/rpm build scripts (fallback without fpm/rpmbuild)
- v4.5.2 - Add
typeprocdocument tag from DOC_URBA (TYPEPROCfor SCOT,NOMPROCfor PLU, PLUi, CC and PSMV) - v4.5.2 - Bump log4j-core to 2.25.4 [SECURITY]
- v4.5.2 - Bump postgresql to 42.7.11 [SECURITY]
4.3.x
- v4.3.0 - Update Documentation; add Foreign Key constraints validation
4.2.x
- v4.2.0 - Upgrade GeoTools and JTS (note that coordinate precision changes for the last decimals in normalized data and geometry errors)
- v4.2.0 - Add XSD validation for XML and GML files (PCRS and metadata file)
- v4.2.0 - Add support for GML with MultiTable for PCRS
- v4.2.0 - Add support for some french projections used in PCRS datasets (“Coniques Conformes Zone 1 to 9”)
- v4.2.0 - Improve GML reading using GMLAS driver if an xsdSchema is provided
- v4.2.1 - Add support for curved geometries
- v4.2.2 - Subcommand –help
- v4.2.3 - Improve test
- v4.2.4 - Add geometry complexity validation
- v4.2.5 - Update log4j version
- v4.2.6 - Rename licence; Add SQL constraints validation
4.1.x
4.0.x
Core
- Remove java 7 support, support java 9, 10,… and upgrade dependencies
- Remove ogr2ogr 1.x support and improve convertion to CSV robutness
- Add support for
HTTP_PROXY,HTTPS_PROXYandNO_PROXYenvironment variables (--proxydeprecated)
Models
- Add hability to load JSON models from URL (XML is deprecated)
- Improve and document JSON models with JSON schemas (validator-schema repository)
- Add hability to load data to PostgreSQL in a custom schema
- Handle changes for metadata validation and conversion to JSON
Deploy
- Provide
.debor.rpmthrowfpmto deploy to/opt/validator/validator-cli.jar?
3.4.*
- Update jackson
- Add support for HTTP proxy with authentication
- Improve validator-dgpr-plugin
3.3.*
- Add SQLITE Database utility in validator-core to simplify some checks
- Upgrade tests to junit 4 syntax
- Change Model
- Add Reference property to fr.ign.validator.model.AttributeType
- Loading from
tag in XML file model - Follow the convetion TABLE_NAME.ATTRIBUTE_NAME
- Used in RelationValidator (validator-plugin-dgpr)
- Loading from
- Add Reference property to fr.ign.validator.model.AttributeType
- Improve validator-dgpr-plugin
- DatabasePostProcess perform topologic validation and relation validation
- Database validation class must implements Validator
- Improve validator-plugin-cnig
- CoordinateReferenceSystem in metadata validation is now based on URI
- Avoid fatal error when building SQLITE database in case of duplicated ID (remove index)
- Update validator-error.json messages
3.2.*
- Strict coordinate order for EPSG:4326 (lat,lon)
- Add validator-dgpr-plugin
- Improve template message for ValidatorError (validator-error.json) introducing named parameters
3.1.*
- Add support for GDAL 2.x
- Add regress tests for
FileConverter(sensitive to changes in GDAL’s CSV driver) - Remove LegacyReportBuilder and set JsonReportBuilder as default reporter?
3.0.*
- CLI subcommands for validator-cli (
java -jar validator-cli.jar COMMAND --help) - update java to 1.7
- update dependencies (geotools)
- add option
--data-extentto check data extent (and projection) - add option
--pluginsand remove maven profile “cnig” - simplify error context management
- check ogr2ogr’s version and ban some versions
-
deep characters validation
- Detect and replace double encoded UTF-8 characters by UTF-8 characters
- Simplify strings (replace characters by equivalents supported by main fonts, replace characters not supported by charsets)
- Escape ISO controls to hexa
- Escape characters not supported by charset to hexa
- CLI options for character validation (
--string-fix [CHARSET]) - Classify characters validation errors (WARNING or ERROR)?
-
Metadata validation (see doc/metadata.md)
- Improve metadata parsing
- Validate INSPIRE constraints (most of them)
- Validate CNIG constraints (additional constraints for https://www.geoportail-urbanisme.gouv.fr)
-
Improve error reporting
- Simplify report generation (copy Context informations to ValidatorError)
- Add JSONL report format (each line is a ValidatorError serialized in JSON)