Bug #77368 | "LOAD DATA LOCAL INFILE” doesn't work properly with relative paths | ||
---|---|---|---|
Submitted: | 16 Jun 2015 8:35 | Modified: | 22 Mar 2023 15:46 |
Reporter: | Jakub Denk | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 5.1.35 | OS: | Any |
Assigned to: | Filipe Silva | CPU Architecture: | Any |
[16 Jun 2015 8:35]
Jakub Denk
[25 Jun 2015 18:18]
Filipe Silva
Hi Jakub, Thank you for this bug report. Verified as described.
[22 Mar 2023 15:46]
Daniel So
Posted by developer: Added the following entry to the C/J 8.0.33: "When executing a LOAD DATA LOCAL INFILE statement, the file could not be loaded if a relative path of it was used and the path was not relative to the directory in which the JVM was started. This patch fixes the behavior by resolving the relative path using the Java system property user.id, which was ignored before in the process."
[4 Apr 2023 17:31]
Daniel So
Posted by developer: Updated the changelog entry to the following: "When executing a LOAD DATA LOCAL INFILE statement, the file could not be loaded if a relative path of it was used and the path was not relative to the directory in which the JVM was started. This patch fixes the behavior by resolving the relative path using the Java system property user.dir, which was ignored before in the process."