You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Datastore MySQL import submodule handles an empty file incorrect (differently than the import via CSV parser) resulting in an error during execution of the import: ValueError: fread(): Argument #2 ($length) must be greater than 0 in fread()
This will lead to termination of the import job, while compared with the import via CSV parser (without Datastore MySQL import module) the import job will continue and just mark the empty file with an error in the import status.
Expected Behavior
Datastore MySQL import should show the same behavior on import of an empty file as the import via CSV parser (mark the file as an error in import status, but not terminate the whole import job).
Steps To Reproduce
Upload an empty CSV file to a distribution
Start the import to the datastore (via cron)
Note the error message starting with "Error importing resource id ..."
Compare this to:
Upload an empty CSV file to a distribution
enable the datastore_mysql_import submodule
Start the import to the datastore (via cron)
Note the different error message and note that cron execution is terminated
Relevant log output (optional)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
…st) (#4293)
* #4273: Datastore MySQL Import handles empty file incorrect
* Added a test for empty CSV.
Co-authored-by: Stefan Korn <[email protected]>
Current Behavior
The Datastore MySQL import submodule handles an empty file incorrect (differently than the import via CSV parser) resulting in an error during execution of the import:
ValueError: fread(): Argument #2 ($length) must be greater than 0 in fread()
This will lead to termination of the import job, while compared with the import via CSV parser (without Datastore MySQL import module) the import job will continue and just mark the empty file with an error in the import status.
Expected Behavior
Datastore MySQL import should show the same behavior on import of an empty file as the import via CSV parser (mark the file as an error in import status, but not terminate the whole import job).
Steps To Reproduce
Compare this to:
Relevant log output (optional)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: