View Issue Details

IDProjectCategoryView StatusLast Update
659RackTablesdefaultpublic2012-11-11 14:06
Reporterlazzurs Assigned Toinfrastation  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSCentOSOS Version5.8
Product Version0.19.13 
Target Version0.20.2Fixed in Version0.20.2 
Summary659: File downloads limited to 1Mb
DescriptionAs documented here[1] PDO has a limit in earlier PHP versions of limiting selects to 1Mb. This causes all file downloads and thumbnail generation to be limited to 1Mb.

[1] http://www.php.net/manual/en/pdo.setattribute.php#68413
Steps To Reproduce- Install RackTables on RHEL/CentOS 5
- Upload file > 1Mb
- Attempt to download file
Additional InformationAs mentioned in the above link making the change below in pre-init.php will resolve the situation. However I doubt this quick hack is how the maintainers of this project would like this solved in the production release. If you could let me know how you would like this resolved I would be happy to provide a patch.




- $dbxlink = new PDO ($pdo_dsn, $db_username, $db_password);
+ $dbxlink = new PDO ($pdo_dsn, $db_username, $db_password, array(PDO::MYSQL_ATTR_MAX_BUFFER_SIZE=>1024*1024*50));
TagsNo tags attached.

Activities

infrastation

infrastation

2012-11-11 14:06

administrator   ~0000983

Thanks for the detailed troubleshooting. A fix will be available in the next release (you'd have to set $pdo_bufsize option to the desired buffer size in secret.php).

Issue History

Date Modified Username Field Change
2012-11-07 12:04 lazzurs New Issue
2012-11-09 17:13 infrastation Assigned To => infrastation
2012-11-09 17:13 infrastation Status new => assigned
2012-11-11 14:06 infrastation Note Added: 0000983
2012-11-11 14:06 infrastation Status assigned => closed
2012-11-11 14:06 infrastation Resolution open => fixed
2012-11-11 14:06 infrastation Fixed in Version => 0.20.2
2012-11-11 14:06 infrastation Target Version => 0.20.2