View Issue Details

IDProjectCategoryView StatusLast Update
0008215mantisbtsqlpublic2007-08-02 02:28
Reporterave Assigned Togiallu  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.0a3 
Fixed in Version1.1.0a4 
Summary0008215: APPLICATION ERROR 401 on MySQL with file_upload_method = DISK (1.1.0a4-CVS)
Description

APPLICATION ERROR 401 occurs on uploading file.
Here's my environment.

  • MySQL 5.0.27
  • $g_file_upload_method = DISK
  • file_api.php v 1.82

Database query failed. Error received from database was 0001064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4 for the query:
INSERT INTO mantis_bug_file_table
(bug_id, title, description, diskfile, filename, folder, filesize, file_type, date_added, content)
VALUES
(1071, '', '', '/usr/local/share/mantis/20b598eb8adb70b2e135f56a61e6424d', 'ErrorPage.html', '/usr/local/share/mantis/', 771, 'text/html', '2007-08-01 13:18:35', )

--
I have patched my file_api.php to workaround the problem, but I have no environment to test this on the other database servers.

  • file_api.php (v 1.82 line:651)
    Before:
    $c_content = '';

After:
$c_content = "''";

TagsNo tags attached.

Activities

ave

ave

2007-08-01 00:54

reporter   ~0015309

Adding related issues.

0006063
0005544

Related Changesets

MantisBT: master ad7b86e8

2007-08-01 04:02

giallu


Details Diff
Fix 8215: APPLICATION ERROR 401 on MySQL with file_upload_method = DISK

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4520 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0008215
mod - core/file_api.php Diff File