Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deleteOldContent.php - deletes playlist configuration #8667

Open
3 of 4 tasks
kachaj7 opened this issue Jul 23, 2019 · 1 comment
Open
3 of 4 tasks

deleteOldContent.php - deletes playlist configuration #8667

kachaj7 opened this issue Jul 23, 2019 · 1 comment

Comments

@kachaj7
Copy link

kachaj7 commented Jul 23, 2019

Bug report

Running this cleaning scripts with argument old-versions removes latest playlist files. These files contains a list of entries, shown in playlist.

Kaltura ENV

IX 9.2.1

Is this an all in one instance [single server] or a cluster?

  • All in one
  • Cluster

If applicable, please provide the MySQL version:
SELECT FROM file_sync LEFT JOIN entry ON (file_sync.OBJECT_ID=entry.ID AND file_sync.VERSION<>entry.DATA) WHERE entry.DATA IS NOT NULL AND file_sync.DC=0 AND file_sync.OBJECT_TYPE=1 AND file_sync.OBJECT_SUB_TYPE=1 AND file_sync.STATUS NOT IN (3,4) ORDER BY file_sync.UPDATED_AT ASC LIMIT 10

If you're having an issue with a specific media asset, please provide a link from which it can be downloaded/played:
The problem in this line

$join->addCondition(FileSyncPeer::VERSION, entryPeer::DATA, Criteria::NOT_EQUAL);

This compares columns, that have different value always. Because actual version in entry.data is 10008.txt and in file_sync.Version is 10008, so is wrong.

@kachaj7
Copy link
Author

kachaj7 commented Oct 2, 2019

Can somebody see the ticket?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant