summaryrefslogtreecommitdiff
path: root/app/uploaders
Commit message (Collapse)AuthorAgeFilesLines
* Fix 500 error when loading an invalid upload URLSean McGivern2018-02-222-0/+10
|
* Merge branch '14256-upload-destroy-removes-file' into 'master'Sean McGivern2018-02-061-0/+6
|\ | | | | | | | | | | | | Uploads should delete files when destroyed Closes #14256 See merge request gitlab-org/gitlab-ce!16799
| * remove file after `Upload#destroy`Micaël Bergeron2018-02-061-0/+6
| | | | | | | | | | it will also automatically prune empty directories for `FileUploader`-based uploaders.
* | Drop filename enforcementShinya Maeda2018-02-061-6/+0
| |
* | Add essential testsShinya Maeda2018-02-061-1/+7
| |
* | Add CreateArtifactsTraceWorkerShinya Maeda2018-02-061-5/+3
| |
* | Expose current_pathShinya Maeda2018-02-061-3/+5
| |
* | JobArtifactUploader#open raise execption if its not FilestorageShinya Maeda2018-02-061-1/+3
| |
* | Trace as artifactsShinya Maeda2018-02-061-0/+4
|/
* apply fixes from feedback42547-upload-store-mount-pointMicaël Bergeron2018-02-021-7/+9
|
* add the uploader context to the upload modelMicaël Bergeron2018-02-024-15/+34
|
* porting changes from upstream3867-port-to-ceMicaël Bergeron2018-02-011-2/+2
|
* porting upstream changesMicaël Bergeron2018-02-011-2/+2
|
* port of 594e6a0a625^..f74c90f68c6Micaël Bergeron2018-02-0113-192/+250
|
* Support uploads for groupsJarka Kadlecova2017-12-072-4/+19
|
* Fix specs failures, and use factory with `:ci_job_artifact, :archive`Kamil Trzcinski2017-12-032-3/+19
|
* Rename artifacts_* to legacy_artifacts_*Kamil Trzcinski2017-12-033-52/+38
|
* Fix legacy migration testZeger-Jan van de Weg2017-12-031-3/+1
|
* JobArtifactsUploader does not inherrit from ArtifactsUploaderZeger-Jan van de Weg2017-12-031-6/+20
|
* Fix most test failuresZeger-Jan van de Weg2017-12-031-8/+4
|
* Fix creation of job_artifact_uploaderKamil Trzcinski2017-12-031-6/+0
|
* Rename Artifact to JobArtifact, split metadata outZeger-Jan van de Weg2017-12-032-5/+37
| | | | | | | | | Two things at ones, as there was no clean way to seperate the commit and give me feedback from the tests. But the model Artifact is now JobArtifact, and the table does not have a type anymore, but the metadata is now its own model: Ci::JobArtifactMetadata.
* Create Ci::ArtifactsZeger-Jan van de Weg2017-12-031-0/+4
| | | | | | | | | | | | | | | | To allow jobs/builds to have multiple artifacts, and to start seperating concerns from Ci::Build a new model is created: Ci::Artifact. Changes include the updating of the ArtifactUploader to adapt to a slightly different interface. The uploader expects to be initialized with a `Ci::Build`. Futher a migration with the minimal fields, the needed foreign keys and an index. Last, the way this works is by prepending a module to Ci::Build so we can basically override behaviour but if needed use `super` to get the original behaviour.
* Changes to Attachments Migration for EE and Geo compatibilityGabriel Mazetto2017-11-281-2/+9
|
* FileUploader should check for hashed_storage?(:attachments) to use disk_pathGabriel Mazetto2017-11-211-3/+7
|
* Use the Hashed Storage compatible layer to store AttachmentsGabriel Mazetto2017-10-301-1/+1
|
* Do not perform hard check (presence of file on storage)Kamil Trzcinski2017-09-192-2/+2
| | | | Instead perform soft check (the column set to indicate that file does exist)
* Make sure uploads for personal snippets are correctly renderedBob Van Landuyt2017-08-111-1/+1
|
* Rename more path_with_namespace -> full_path or disk_pathGabriel Mazetto2017-08-011-1/+1
|
* Merge branch '33359-pers-snippet-files-location' into 'security-9-3'Sean McGivern2017-07-191-0/+4
| | | | | Use uploads/system directory for personal snippets See merge request !2123
* Move system-uploads to `-/system`Bob Van Landuyt2017-07-181-1/+1
|
* Fix filename method of GitlabUploader to return always real filenamefix-filename-of-artifact-uploaderKamil Trzcinski2017-06-131-0/+4
|
* Merge branch 'sh-fix-refactor-uploader-work-dir' into 'master'Kamil Trzciński2017-06-123-12/+23
|\ | | | | | | | | | | | | Set artifact working directory to be in the destination store to prevent unnecessary I/O Closes #33274 See merge request !11905
| * Set artifact working directory to be in the destination store to prevent ↵sh-fix-refactor-uploader-work-dirStan Hu2017-06-063-12/+23
| | | | | | | | | | | | | | | | | | | | | | | | unnecessary I/O Similar to #33218, build artifacts were being uploaded into a CarrierWave temporary directory in the Rails root directory before moved to their final destination, which could cause a copy across filesystems. This merge request refactors the work in !11866 so that any uploader can just override `work_dir` to change the default implementation. Closes #33274
* | Make the uploader use the updated folderBob Van Landuyt2017-06-081-1/+3
| |
* | Bring in security changes from the 9.2.5 releaseDJ Mountney2017-06-082-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | Ran: - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch - git checkout -b 9-2-5-security-patch origin/v9.2.2 - git apply patchfile.patch - git commit - [Got the sha ref for the commit] - git checkout -b upstream-9-2-security master - git cherry-pick <SHA of the patchfile commit> - [Resolved conflicts] - git cherry-pick --continue
* | Merge branch '12910-snippets-description' into 'master'Phil Hughes2017-06-073-4/+72
|\ \ | |/ |/| | | | | | | | | Support descriptions for snippets Closes #31894 See merge request !11071
| * Support uploads for newly created personal snippets12910-snippets-descriptionJarka Kadlecova2017-06-072-10/+26
| |
| * Support descriptions for snippetsJarka Kadlecova2017-05-312-1/+53
| |
* | Fix LFS timeouts when trying to save large filessh-fix-lfs-from-moving-across-filesystemsStan Hu2017-06-041-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following was happening: 1. Workhorse stores an LFS file in /var/opt/gitlab/gitlab-rails/shared/lfs-objects 2. CarrierWave then renames the file to a temporary directory (e.g. /opt/gitlab/embedded/service/gitlab-rails/tmp) 3. CarrierWave then renames the file to its final location (e.g. /var/opt/gitlab/gitlab-rails/shared/lfs-objects) When the LFS upload path was on a different filesystem than the Rails installation, step 2 could take a longer than 10 seconds, at which point Workhorse would time out with "badgateway: failed after 10s: context canceled". This change makes the work path in the same root as the LFS storage path, preventing moves across filesystems. Closes #33218
* | Add missing specsKamil Trzcinski2017-06-013-8/+8
| |
* | Fix data inconsistency issue for old artifacts by moving them to a currently ↵Kamil Trzcinski2017-06-013-19/+25
|/ | | | used path
* Support uploaders for personal snippets comments12910-uploader-pers-snippetJarka Kadlecova2017-05-025-15/+22
|
* Periodically clean up temporary upload files to recover storage spaceblackst0ne2017-04-101-4/+0
|
* Handle relative and absolute Upload paths in the UploadersRobert Speicher2017-03-063-6/+45
|
* Add `RecordsUploads` module to record Upload records via callbacksRobert Speicher2017-03-064-0/+46
|
* Minor refactoring of UploadersRobert Speicher2017-02-246-23/+26
| | | | | | | | | - Moves a duplicate `file_storage?` definition into the common `GitlabUploader` ancestor. - Get the `uploads` base directory from a class method rather than hard-coding it where it's needed. This will be used in a subsequent MR to store Uploads in the database. - Improves the specs for uploaders.
* Enable Style/MutableConstantDouwe Maan2017-02-231-3/+3
|
* Merge branch 'svg-xss-fix' into 'security' Robert Speicher2017-02-152-2/+9
| | | | | Fix for XSS vulnerability in SVG attachments See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2059
* Copy, don't move uploaded avatar filesJacob Vosmaer2017-01-031-0/+11
|