Reported via Support: https://helpdesk.dotcms.com/a/tickets/37709
Problem Statement
Push publishing a Site that is in archived state — either directly or as a push publishing dependency — causes that Site to be deleted on the receiver instance. This results in unintentional data loss: all content within the archived Site on the receiver is removed, even when the push publishing action is not Remove or Push Remove.
The receiver's Site status (archived/non-archived) must always reflect what comes in the bundle from the sender. Deletion of a Site on the receiver must only be triggered by an explicit Remove or Push Remove push action.
Impact: Any push publishing operation that includes an archived Site — even indirectly via a dependent Content Type — silently deletes that Site and all its content on the receiver.
Steps to Reproduce
Scenario 1 — Directly pushing an archived Site
- In the sender, create a test Site and push it to the receiver. Verify it exists on both ends.
- On both sender and receiver, manually stop and archive the Site.
- In the sender, push the archived Site again (non-Remove action).
- Result: The Site on the receiver is deleted.
- Expected: The Site on the receiver remains archived (or is updated to archived state).
Scenario 2 — Pushing an archived Site as a dependency
- In the sender, create a test Site and push it to the receiver. Verify it exists on both ends.
- Create a simple Content Type with a text field. Set its Site or Folder field to the test Site. Push it to the receiver.
- On both sender and receiver, manually stop and archive the Site.
- Update the Content Type (e.g., change its description) so push publishing detects a change.
- Push the updated Content Type (non-Remove action).
- Result: The Site on the receiver is deleted, along with all content in it.
- Expected: The Site on the receiver remains archived (or is updated to archived state). Only the Content Type metadata is updated.
Temporary Workaround
Unarchive all archived sites across all environments involved in Push Publishing. As soon as this is done, no Site will be inadvertently deleted, unless you explicitly want to when pushing the object for removal.
Acceptance Criteria
dotCMS Version
Latest from main branch
Severity
High - Major functionality broken
Links
NA
Reported via Support: https://helpdesk.dotcms.com/a/tickets/37709
Problem Statement
Push publishing a Site that is in archived state — either directly or as a push publishing dependency — causes that Site to be deleted on the receiver instance. This results in unintentional data loss: all content within the archived Site on the receiver is removed, even when the push publishing action is not
RemoveorPush Remove.The receiver's Site status (archived/non-archived) must always reflect what comes in the bundle from the sender. Deletion of a Site on the receiver must only be triggered by an explicit
RemoveorPush Removepush action.Impact: Any push publishing operation that includes an archived Site — even indirectly via a dependent Content Type — silently deletes that Site and all its content on the receiver.
Steps to Reproduce
Scenario 1 — Directly pushing an archived Site
Scenario 2 — Pushing an archived Site as a dependency
Temporary Workaround
Unarchive all archived sites across all environments involved in Push Publishing. As soon as this is done, no Site will be inadvertently deleted, unless you explicitly want to when pushing the object for removal.
Acceptance Criteria
RemoveorPush Removeaction still deletes Sites on the receiver as expected (no regression).dotCMS Version
Latest from
mainbranchSeverity
High - Major functionality broken
Links
NA