Deprecations and Removals

Objective

After completing this lesson, you will be able to identify deprecated and removed modules and libraries

Deletion of Deprecated Cockpit Extensions

In alignment with the SAP Commerce Cloud mission to provide a modern, headless commerce experience with easier upgrades of back-end functionality, the deprecated cockpit related extensions have been removed in the 2211-jdk21.1 release.

The following extensions have been removed:

  • cockpit
  • admincockpit
  • cmscockpit
  • productcockpit
  • configurablebundlecockpits
  • subscriptioncockpits
  • subscriptionbundlecockpits
  • yacceleratorcockpits

For more information, see Deprecated Cockpit Extensions - Deletion in SAP Commerce Cloud 2211.

Deletion of Deprecated amazoncloud Extension

The amazoncloud extension was removed in 2211-jdk21.0 release as a part of framework update changes.

Why?

All the dependencies in this extension could become a vulnerability at any time, and it will cease to be maintained eventually.

What's Changed?

SAP Commerce Cloud only supports the Azure Blob Storage mechanism for Media which is based on the azurecloud extension that's configured by default. The amazoncloud extension is only a handful of classes, mostly containing a storage strategy. More information about a mitigation plan for this deprecation is provided in an SAP Note. The note includes the source code of the extension to be used at customers own discretion but without SAP support or guarantees.​ For more information, see Upgrading to 2211-jdk21.1.​

Deletion of Deprecated gridfsstorage Extension

The gridfsstorage extension has been removed.

Why?

All the dependencies in this extension could become a vulnerability at any time, and it will cease to be maintained eventually.

What's Changed?

SAP Commerce Cloud only supports the Azure Blob Storage mechanism for Media which is based on the azurecloud extension that's configured by default.

This extension is only a handful of classes, mostly containing a storage strategy. More information about a mitigation plan for this deprecation will be provided in a KBA. The KBA will include the source code of the extension to be used at a customer's own discretion but without SAP support or guarantees.

Removed FindBugs Annotations Library

The FindBugs Annotations 2.0.0 library has been removed in the 2211.32 release.

The library provides annotations that can be used for static code analysis. Ensure that this change doesn't break your custom code by removing any FindBugs annotations that you might have used in your custom code, for example:

Java
12345678
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; ... @SuppressFBWarnings("RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT") ...

Why?

The removal of the FindBugs Annotations library that is not actively supported improves the security of SAP Commerce Cloud.

Deprecated Springdoc Constructors

With the upgrade of the springdoc-openapi-common, springdoc-openapi-ui, and springdoc-openapi-webmvc-core libraries from 1.6.9 to 1.8.0, the CommerceOpenApiWebMvcResource constructors that take the 1.6.9 parameters are deprecated

Why?

The springdoc-openapi-common, springdoc-openapi-ui, and springdoc-openapi-webmvc-core libraries have been upgraded from 1.6.9 to 1.8.0. Due to this upgrade,the CommerceOpenApiWebMvcResource constructors that take the 1.6.9 parameters are deprecated. For efficiency, use the constructors that take the new parameters. No breaking changes were introduced with this change. You can continue to use the deprecated constructors, but we recommend you use the new constructors with the new parameters because they are more efficient.

What's changed

The following are deprecated:

Java
1234567891011121314151617181920212223
/** * @deprecated since 2211.32, please use the constructor {@link CommerceOpenApiWebMvcResource(String, ObjectFactory, * AbstractRequestService, GenericResponseService, OperationService, SpringDocConfigProperties, * SpringDocProviders, SpringDocCustomizers)} */ @Deprecated(since = "2211.32", forRemoval = true) public CommerceOpenApiWebMvcResource(final String groupName, final ObjectFactory<OpenAPIService> openAPIBuilderObjectFactory, final AbstractRequestService requestBuilder, final GenericResponseService responseBuilder, final OperationService operationParser, final List<OperationCustomizer> operationCustomizers, final List<OpenApiCustomiser> openApiCustomisers, final List<OpenApiMethodFilter> methodFilters, final SpringDocConfigProperties springDocConfigProperties, final SpringDocProviders springDocProviders) /** * @deprecated since 2211.32, please use the constructor {@link CommerceOpenApiWebMvcResource(ObjectFactory, * AbstractRequestService, GenericResponseService, OperationService, SpringDocConfigProperties, * SpringDocProviders, SpringDocCustomizers)} */ @Deprecated(since = "2211.32", forRemoval = true) public CommerceOpenApiWebMvcResource(final ObjectFactory<OpenAPIService> openAPIBuilderObjectFactory, final AbstractRequestService requestBuilder, final GenericResponseService responseBuilder, final OperationService operationParser, final List<OperationCustomizer> operationCustomizers, final List<OpenApiCustomiser> openApiCustomisers, final List<OpenApiMethodFilter> methodFilters, final SpringDocConfigProperties springDocConfigProperties, final SpringDocProviders springDocProviders)

And replaced by:

Java
123456789
public CommerceOpenApiWebMvcResource(final String groupName, final ObjectFactory<OpenAPIService> openAPIBuilderObjectFactory, final AbstractRequestService requestBuilder, final GenericResponseService responseBuilder, final OperationService operationParser, final SpringDocConfigProperties springDocConfigProperties, final SpringDocProviders springDocProviders, final SpringDocCustomizers springDocCustomizers) public CommerceOpenApiWebMvcResource(final ObjectFactory<OpenAPIService> openAPIBuilderObjectFactory, final AbstractRequestService requestBuilder, final GenericResponseService responseBuilder, final OperationService operationParser, final SpringDocConfigProperties springDocConfigProperties, final SpringDocProviders springDocProviders, final SpringDocCustomizers springDocCustomizers)

Deletion of CS Cockpit-Related Components from cissubscription Extension

Following the de-release of CS Cockpit, the cissubscription extension now requires cleanup of its associated web module, which previously enabled CS Cockpit users to submit payment details through the Subscription Billing Gateway. All CS Cockpit-related components have been deleted from the cissubscription extension.

Why?

All the dependencies in this extension could become a vulnerability at any time, and it will cease to be maintained eventually.