core
core copied to clipboard
[Push Publishing] Force Push value is not accurate between environments
Force Push attribute is not saved properly once a bundle is received on the Receiver environment.
Steps to Reproduce (for bugs)
- Star tup 2 dotCMS instances and configure Push Publishing for them.
- On Server A, create a /test folder
- On Server B, manually create a /test folder.
- Don't run the integrity checker. For testing purposes, it's important to make it fail, so we can see the Force Push attribute different between environments.
- Add the /test folder to a bundle called "test-bundle-001". Up to this point, the bundle is stored this way
mysql> select * from publishing_bundle where name = 'test-bundle-001';
+--------------------------------------+-----------------+--------------+-------------+--------------+------------+
| id | name | publish_date | expire_date | owner | force_push |
+--------------------------------------+-----------------+--------------+-------------+--------------+------------+
| e1c41c50-0db9-430f-bbc2-d0f000590af8 | test-bundle-001 | NULL | NULL | dotcms.org.1 | 0 |
+--------------------------------------+-----------------+--------------+-------------+--------------+------------+
1 row in set (0.00 sec)
- Go to Publishing Queue -> Bundles and Push this bundle. Make sure Force Push is checked.
mysql> select * from publishing_bundle where name = 'test-bundle-001';
+--------------------------------------+-----------------+---------------------+-------------+--------------+------------+
| id | name | publish_date | expire_date | owner | force_push |
+--------------------------------------+-----------------+---------------------+-------------+--------------+------------+
| e1c41c50-0db9-430f-bbc2-d0f000590af8 | test-bundle-001 | 2017-10-27 14:19:00 | NULL | dotcms.org.1 | 1 |
+--------------------------------------+-----------------+---------------------+-------------+--------------+------------+
1 row in set (0.00 sec)
- Wait for bundle to fail to publish and inspect data on Receiver environment:
mysql> select * from publishing_bundle where name = 'test-bundle-001';
+--------------------------------------+-----------------+---------------------+-------------+--------+------------+
| id | name | publish_date | expire_date | owner | force_push |
+--------------------------------------+-----------------+---------------------+-------------+--------+------------+
| e1c41c50-0db9-430f-bbc2-d0f000590af8 | test-bundle-001 | 2017-10-27 14:20:02 | NULL | system | 0 |
+--------------------------------------+-----------------+---------------------+-------------+--------+------------+
1 row in set (0.00 sec)
Screenshots:
Sender environment:

Receiver Environment:

Context
Reported by Customer: https://dotcms.zendesk.com/agent/tickets/94600
Your Environment
- dotCMS version used: 4.1.1.
- Browser Name and version: Any Browser.
- Operating System and version: Any OS.
- Application Server and version: Any app server.
- Java Brand and version: 8u121.
- Database and version: Postgres, MySQL.
- Application module (if apply): N/A.
Waiting for fix on #13018 to complete testing