You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2025/07/15 14:41:00 UTC
[jira] [Updated] (SLING-12860) Inconsistent type of "distribution.type" property in distribution event
[ https://issues.apache.org/jira/browse/SLING-12860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus updated SLING-12860:
------------------------------------
Component/s: Content Distribution
> Inconsistent type of "distribution.type" property in distribution event
> -----------------------------------------------------------------------
>
> Key: SLING-12860
> URL: https://issues.apache.org/jira/browse/SLING-12860
> Project: Sling
> Issue Type: Bug
> Components: Content Distribution
> Reporter: Konrad Windszus
> Priority: Major
>
> According to https://github.com/apache/sling-org-apache-sling-distribution-api/blob/90c4de72ce5b1ba2f95bb17aab748389d1748a7b/src/main/java/org/apache/sling/distribution/event/DistributionEvent.java#L70 the property {{distribution.type}} seems to be a {{String}}, however in https://github.com/apache/sling-org-apache-sling-distribution-core/blob/04fa537b02bf2579f29fca43100dfdaa641ac938/src/main/java/org/apache/sling/distribution/event/impl/DefaultDistributionEventFactory.java#L57 this is set to a value of type {{https://github.com/apache/sling-org-apache-sling-distribution-api/blob/90c4de72ce5b1ba2f95bb17aab748389d1748a7b/src/main/java/org/apache/sling/distribution/DistributionRequestType.java#L40}}. This already lead to ClassCastExceptions in consumers like https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/8c395acdd0dc14e00fa16fd101f1d4e0315c20ed/bundle-cloud/src/main/java/com/adobe/acs/commons/replication/dispatcher/impl/CloudDispatcherFlushRulesExecutor.java#L63 (https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/3604)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)