-
Notifications
You must be signed in to change notification settings - Fork 443
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
Upgrade fails if a file in usageEventLogs is empty #10245
Comments
convert in PKP\cliTool\traits\ConvertLogFile initially set $isSuccessful to false and only sets it to true once it has successfully converted an entry. pkp-lib/classes/cliTool/traits/ConvertLogFile.php Lines 131 to 132 in c111708
pkp-lib/classes/cliTool/traits/ConvertLogFile.php Lines 225 to 226 in c111708
This logic fails if:
|
Relate to handling of $isSuccessful, after the first successful entry sets $isSuccessful to true it is never set back to false. This means the I8508_ConvertCurrentLogFile migration passes if and whenever at least one log entry is successfully converted. The logics like this don't set $isSuccessful back to false. pkp-lib/classes/cliTool/traits/ConvertLogFile.php Lines 142 to 145 in c111708
|
Hi @SydneyUni-Jim, |
Describe the bug
Migration task I8508_ConvertCurrentLogFile fails.
To Reproduce
Steps to reproduce the behavior:
touch files/usageStats/usageEventLogs/usage_events_YYYYMMDD.log
replacingYYYYMMDD
with today's dateWhat application are you using?
OJS 3.4.0.6
The text was updated successfully, but these errors were encountered: