Merge branch 'patch-28' into 'master'

Returns a correct TMP_UPLOAD_PATH to workhourse

Closes #46763

See merge request gitlab-org/gitlab-ce!19148
This commit is contained in:
Kamil Trzciński 2018-05-28 16:24:51 +00:00
commit bb88fb7ea2
5 changed files with 9 additions and 4 deletions

View file

@ -11,7 +11,7 @@ module ObjectStorage
ObjectStorageUnavailable = Class.new(StandardError)
DIRECT_UPLOAD_TIMEOUT = 4.hours
TMP_UPLOAD_PATH = 'tmp/upload'.freeze
TMP_UPLOAD_PATH = 'tmp/uploads'.freeze
module Store
LOCAL = 1

View file

@ -0,0 +1,5 @@
---
title: Fix FreeBSD can not upload artifacts due to wrong tmp path
merge_request: 19148
author:
type: fixed

View file

@ -1225,7 +1225,7 @@ describe API::Runner, :clean_gitlab_redis_shared_state do
before do
fog_connection.directories.get('artifacts').files.create(
key: 'tmp/upload/12312300',
key: 'tmp/uploads/12312300',
body: 'content'
)

View file

@ -1089,7 +1089,7 @@ describe 'Git LFS API and storage' do
context 'with valid remote_id' do
before do
fog_connection.directories.get('lfs-objects').files.create(
key: 'tmp/upload/12312300',
key: 'tmp/uploads/12312300',
body: 'content'
)
end

View file

@ -618,7 +618,7 @@ describe ObjectStorage do
let!(:fog_file) do
fog_connection.directories.get('uploads').files.create(
key: 'tmp/upload/test/123123',
key: 'tmp/uploads/test/123123',
body: 'content'
)
end