Datacleanup Purge history command clears all history up to today irrespective of the date range given in linux

Datacleanup Purge history command clears all history up to today irrespective of the date range given in linux

book

Article ID: KB0076532

calendar_today

Updated On:

Products Versions
TIBCO MDM 9.1.2

Description

The purge command for datacleanup script clears all the history irrespective of the date range given in the command in linux environment. For example below is the command used.
./datacleanup.sh -o history -a 34000 -sd "2013-01-01 00:00:00" -ed "2013-01-02 11:59:59" -mn admin -epwd cMzZAHM41tgd07YnFiG5z5qX6gA=

And we see the below lines in the purge log which removes the date and clears all history irrespective of the given date range (Cleaning up history older than null).
 
[Mon Nov 04 14:07:00 EST 2019] TIBCO EMS Session Dispatcher (10029)[321] Server(Member1): Start Date = 00:00:00
[Mon Nov 04 14:07:00 EST 2019] TIBCO EMS Session Dispatcher (10029)[321] Server(Member1): End Date = 11:59:59
[Mon Nov 04 14:07:00 EST 2019] TIBCO EMS Session Dispatcher (10029)[321] Server(Member1): Cleaning up history older than null

Issue/Introduction

The purge command for dataclean script clears all the history irrespective of the date range given in the command in linux environment

Environment

Linux: Red Hat

Resolution

As a workaround update the datacleanup.sh script, change the com.tibco.mdm.purge.PurgeHelper arguments from $@ to “$@”
For example:
Change To 
com.tibco.mdm.purge.PurgeHelper "$@"

From
com.tibco.mdm.purge.PurgeHelper $@