Bug #48944 SendFileToServer tries to open the file read/write
Submitted: 20 Nov 2009 14:50 Modified: 16 Dec 2009 11:39
Reporter: Reggie Burnett Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: Vladislav Vaintroub CPU Architecture:Any

[20 Nov 2009 14:50] Reggie Burnett
Description:
Attempting to execute a load data local infile on a file where the user doesn't have write permissions or the file is open in an editor will give an access denied error.

How to repeat:
Attempt to execute a load data local infile on a file where you don't have write permissions
[30 Nov 2009 15:26] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/92109

778 Vladislav Vaintroub	2009-11-30
      -  When sending file to server (builk loading), open the file for readonly, not for read-write 
        (bug#48944)
[30 Nov 2009 15:30] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/92111

777 Vladislav Vaintroub	2009-11-30
      - When sending file to server (LOAD DATA INFILE) open the file for read only, not for read/write
       (bug #48944)
[16 Dec 2009 11:39] Tony Bedford
An entry has been added to the 6.0.6, 6.1.4, 6.2.2 and 6.3.0 changelogs:

Attempting to execute a load data local infile on a file where the user did not have write permissions, or the file was open in an editor gave an access denied error.