Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions addons.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@
"dropboxbusiness",
"s3compatinstitutions",
"ociinstitutions",
"s3",
"s3compat",
"owncloud"
"onedrivebusiness"
],
"institutional_storage_bulk_mount_method": [
"box",
Expand All @@ -185,6 +183,9 @@
],
"addons_has_max_keys": [
"s3",
"s3compat"
"s3compat",
"s3compatinstitutions",
"s3compatb3",
"ociinstitutions"
]
}
6 changes: 4 additions & 2 deletions addons/s3compatb3/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ def get_user_info(host, access_key, secret_key):
connection = connect_s3compatb3(host, access_key, secret_key)
buckets = connection.buckets.all()
[bucket.name for bucket in buckets]
identity = boto3.client('sts').get_caller_identity()
return identity
return connection
# Fix for not being able to setup Oracle Cloud Infrastructure for Institutions
# identity = boto3.client('sts').get_caller_identity()
# return identity
except ClientError:
return None
return None
Expand Down
54 changes: 33 additions & 21 deletions admin/base/schemas/file-info-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,6 @@
]
}
},
"required": [
"host",
"object",
"folder",
"address",
"service",
"version",
"provider"
],
"additionalProperties": true
},
"project": {
Expand Down Expand Up @@ -244,15 +235,6 @@
]
}
},
"required": [
"host",
"object",
"folder",
"address",
"service",
"version",
"provider"
],
"additionalProperties": true
},
"metadata": {
Expand Down Expand Up @@ -318,6 +300,12 @@
"null"
]
},
"quickXorHash": {
"type": [
"string",
"null"
]
},
"size": {
"type": [
"string",
Expand Down Expand Up @@ -366,9 +354,6 @@
"path",
"etag",
"materialized",
"md5",
"sha1",
"sha256",
"size",
"sizeInt",
"extra",
Expand All @@ -377,6 +362,33 @@
"modified",
"modified_utc"
],
"anyOf": [
{
"required": [
"md5"
]
},
{
"required": [
"sha1"
]
},
{
"required": [
"sha256"
]
},
{
"required": [
"sha512"
]
},
{
"required": [
"quickXorHash"
]
}
],
"additionalProperties": true
}
},
Expand Down
Loading