EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 635c6228 authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Special handling for S3 URLs

parent 778da1ba
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,11 @@ class EOxServerBackend(ItemBackend):
# component is the bucket.
if bucket is None:
asset = next(iter(item.get_assets().values()))
bucket = urlparse(asset.href).path.partition("/")[0]
parsed = urlparse(asset.href)
if parsed.scheme.lower() == 's3':
bucket = parsed.netloc
else:
bucket = parsed.path.partition("/")[0]
(
storage_auth,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment