Symptom
To fix Jira ticket CXEC-14280 Creating cronjobs via ImpEx injects unwanted session context settings ( disables restrictions ), there's new property cronjob.ctx.filtered.attributes.in.impex.import.mode being introduced in Patch 1905.46, Patch 2005.30, Patch-2011.25, Patch 2105.15 and Patch 2205.4 as below
When importing cron jobs through ImpEx, the system adds additional attributes needed for import purposes to SessionContext. All new cron jobs that are created receive all SessionContext attributes as sessionContextValues. To prevent sessionContextValues from holding redundant attributes that are required only during import, use the following property with a list of attributes that you don't want to save in new cron jobs' sessionContextAttributes: cronjob.ctx.filtered.attributes.in.impex.import.mode=disableRestrictions,disableRestrictionGroupInheritance,use.fast.algorithms,import.mode,disable.attribute.check,disable.interceptor.beans,disable.interceptor.types,disable.UniqueAttributesValidator.for.types,currentCronJob,currentJob,core.types.creation.initial,save.from.service.layer,ctx.enable.fs.on.read-replica,impex.creation |
In this change, some attributes won't be saved in new cron jobs' sessionContextAttributes(though impex).
Prior to the introduction of property cronjob.ctx.filtered.attributes.in.impex.import.mode, CronJob created by impex in sessionContextValues holds following attributes :
- disableRestrictions : true
- disableRestrictionGroupInheritance : true
After introduced this property, the attribute is not set to cronjob(though impex) context and it takes it as false by default, and the restrictions are not disabled for cronjobs. If there's need to keep disableRestrictions and disableRestrictionGroupInheritance as previous setting above, this can handled explicitly in custom cronjob code.
Read more...
Environment
SAP Commerce Cloud
Product
Keywords
cronjob.ctx.filtered.attributes.in.impex.import.mode, disableRestrictions , KBA , CEC-SCC-PLA-PL , Platform , How To
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.