Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008504TestLinkIntegration with Other Systemspublic2018-12-13 07:442018-12-13 17:02
Assigned To 
PrioritynoneSeverityfeature requestReproducibilityN/A
PlatformOSOS Version
Product Version 
Fixed in Version 
Summary0008504: Integration with AWS S3 as File storage solution
I have made a stub of this feature and so far everything looks fine. If you think it would be useful, I can PR it and discuss some implementation details.
TagsNo tags attached.
Database (MySQL,Postgres,etc)N/A
PHP Version
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
fman (administrator)
2018-12-13 15:41

please details here implementation details

cyuste (reporter)
2018-12-13 17:02

I inluded aws-cli and doctrine-cache to thirdparty
Doctrine cache is recommended to speed up s3 interactions

aws-cli is loaded in lib/functions/tlAttachmentRepository.class.php

Added a new option in config_inc
 $g_repositoryType = TL_REPOSITORY_TYPE_S3;

and three parameters to configure this mode: bucket (mandatory) and key/secret (optional)

Finally, created all the equivalent functions to upload/download files from FS in S3 in tlAttachmentRepository.class.php
This is not ideal, as files will be first downloaded to the server and then sent to the client, but this is the only way I found to keep file access secured

Files are stored in S3 in root path, no folders are created. It can be done but I don't see any advantage

- Issue History
Date Modified Username Field Change
2018-12-13 07:44 cyuste New Issue
2018-12-13 15:41 fman Note Added: 0028319
2018-12-13 17:02 cyuste Note Added: 0028320

Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker