Release Notes / Version 10.2107
Table Of Contents
The Studio validation framework and all
Validator
implementations were moved from Studio Server Maven modules to Maven modules of the "shared/middle" workspace. This change is necessary for new functionality in the
Content Feeder
, which calls validators to index content issues (see release note CMS-18432). As part of this change, some classes, interfaces, and configuration properties were changed.
It's recommended to eventually move custom validator implementations to Maven modules that don't depend on Studio Server artifacts. If moved, custom implementations will be usable for the Content Feeder . This is however not strictly required for this update.
Configuration Property Changes:
Property "
studio.assets.settings-document" has been replaced with "assets.settings-document"Property "
studio.available-locales-content-path" has been replaced with "available-locales.content-path"Property "
studio.available-locales-property-path" has been replaced with "available-locales.property-path"Property "
studio.validators.navigation.ignore-path" has been replaced with "validators.navigation.ignore-path"Property "
studio.site-configuration-path" has been replaced with "content.site-configuration-path"Property "
studio.global-configuration-path" has been replaced with "content.global-configuration-path"
Mind that configuration properties support Spring Boot relaxed binding. A project might use a different syntax to configure these properties, which still needs to be replaced. For example, a camel-cased variant like "
studio.siteConfigurationPath
" must also be adapted.
Maven Dependency Changes:
The following Java packages were moved to different Maven modules. You have to adapt Maven dependencies accordingly for custom code that uses these packages:
com.coremedia.rest.validationwas moved fromcom.coremedia.cms:coremedia-rest-pluginstocom.coremedia.cms:middle.coremedia-validationcom.coremedia.rest.validatorswas moved fromcom.coremedia.ui:coremedia-rest-coretocom.coremedia.cms:middle.coremedia-validationcom.coremedia.rest.cap.validationwas moved fromcom.coremedia.cms:cap-rest-pluginstocom.coremedia.cms:middle.cap-validationcom.coremedia.rest.cap.validatorswas moved fromcom.coremedia.ui:cap-rest-servicetocom.coremedia.cms:middle.cap-validationcom.coremedia.blueprint.base.rest.validatorswas moved fromcom.coremedia.blueprint.base:bpbase-studio-resttocom.coremedia.blueprint.base:middle.bpbase-validatorscom.coremedia.lc.studio.lib.validatorswas moved fromcom.coremedia.blueprint:lc-studio-libtocom.coremedia.blueprint:lc-validatorscom.coremedia.catalog.studio.lib.validatorswas moved fromcom.coremedia.blueprint:catalog-studio-libtocom.coremedia.blueprint:catalog-validators
Blueprint Moved Directories:
Some Blueprint files and directories have been moved as consequence of moving validators from
apps/studio-server
to
shared/middle
. The exact file changes in the Blueprint are available in the Git repository and can be merged into project repositories in the usual way. Just to summarize, the following directories and files have been moved from
apps/studio-server/modules/extensions
to paths below
shared/middle/modules/extensions
.
am/am-studio-component/src/main/java/com/coremedia/blueprint/assets/studio/validationam/am-studio-component/src/test/java/com/coremedia/blueprint/assets/studio/validationam/am-studio-component/src/test/resources/com/coremedia/blueprint/assets/studio/validationcatalog/catalog-studio-lib/src/main/javacatalog/catalog-studio-lib/src/testlc-asset/lc-asset-studio-lib-component/src/main/java/com/coremedia/livecontext/studio/asset/validatorslc-asset/lc-asset-studio-lib-component/src/test/java/com/coremedia/livecontext/studio/asset/validatorslc/lc-studio-lib/src/main/java/com/coremedia/lc/studio/lib/validatorslc/lc-studio-lib/src/main/java/com/coremedia/lc/studio/lib/LcStudioValidationConfiguration.javalc/lc-studio-lib/src/main/java/com/coremedia/lc/studio/lib/LcStudioValidationLegacyConfiguration.javalc/lc-studio-lib/src/main/java/com/coremedia/lc/studio/lib/LcStudioValidatorsConfiguration.javalc/lc-studio-lib/src/test/java/com/coremedia/lc/studio/lib/validatorslc/lc-studio-lib/src/test/resources/com/coremedia/lc/studio/lib/validatorsvalidators/validators-studio-lib/src/main/java/com/coremedia/blueprint/studio/rest/validationvalidators/validators-studio-lib/src/main/resources/META-INF/coremedia
API Changes:
There were some changes in the public Java API for the configuration of validators:
com.coremedia.rest.cap.config.StudioConfigurationProperties.Validators.Navigationwas moved tocom.coremedia.blueprint.base.rest.validators.NavigationValidatorsConfigurationPropertiesIn class
com.coremedia.blueprint.base.rest.validators.IsPartOfNavigationValidator, method#setStudioConfigurationPropertieswas removed. Use#setIgnorePathsinstead.In class
com.coremedia.rest.cap.config.StudioConfigurationProperties, the methods#getAvailableLocalesContentPath,#setAvailableLocalesContentPath,#getAvailableLocalesPropertyPath, and#setAvailableLocalesPropertyPathwere removed. Use classcom.coremedia.rest.cap.validators.AvailableLocalesConfigurationPropertiesinstead.In class
com.coremedia.rest.cap.config.StudioConfigurationProperties, the methods#getSiteConfigurationPath,#setSiteConfigurationPath,#getGlobalConfigurationPath, and#setGlobalConfigurationPathwere removed. Use classcom.coremedia.cap.content.spring.ContentConfigurationPropertiesinstead.com.coremedia.rest.cap.config.StudioConfigurationProperties.Assetshas been removed. Use Blueprint classcom.coremedia.blueprint.assets.AssetManagementConfigurationPropertiesinstead.
The packages of the following classes were changed. These classes were already used in the Blueprint, and became now part of the public API:
Moved from package
com.coremedia.rest.cap.content.imagevariantstocom.coremedia.rest.cap.validators: ClassImageCropSizeValidatorMoved from package
com.coremedia.blueprint.base.pagegrid.resttocom.coremedia.blueprint.base.rest.validators: ClassesConfigurableDeadLinkValidator,PlacementsValidator, andVisibilityValidatorMoved from package
com.coremedia.blueprint.base.rest.configtocom.coremedia.blueprint.base.config: InterfaceConfigurationServiceand related classes
API Deprecations:
Deprecated
com.coremedia.rest.cap.validators.AvailableLocalesConfiguration. Usecom.coremedia.rest.cap.validators.AvailableLocalesConfigurationPropertiesinstead, a Spring ConfigurationProperties class holding the same values.In
com.coremedia.rest.cap.validators.AvailableLocalesValidator, deprecated method#setConfigurationand the no-arg constructor. Use two-arguments constructor instead.In
com.coremedia.rest.cap.CapRestServiceBaseConfiguration, deprecated method#availableLocalesConfiguration.
Predefined Validators:
The following validators are not predefined by the Studio core anymore. They are still predefined in the Blueprint "
validators
" extension in
com.coremedia.cms.middle.blueprint.validators.ValidatorsConfiguration
, so there is no change for most projects:
com.coremedia.rest.cap.validators.AvailableLocalesValidatorcom.coremedia.rest.cap.validators.SiteManagerGroupValidatorcom.coremedia.rest.cap.validators.DeadLinkValidator
Only projects that are not based on the Blueprint, or that have disabled the "
validators
" extension, will have to re-enable these validators, if they are needed. They can be configured as Spring beans in the application context in the same way as in the Blueprint class
ValidatorsConfiguration
.
(CMS-18431)


