Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ public interface BucketApiService {
ConfigKey.Scope.Global,
null);

ConfigKey<Long> ObjectStorePresignedUrlExpirySeconds = new ConfigKey<Long>("Advanced", Long.class,
"objectstore.presigned.url.expiry.seconds",
"86400",
"The expiry time, in seconds, for object store presigned URLs generated by the UI.",
true,
ConfigKey.Scope.Global,
null);

/**
* Creates the database object for a Bucket based on the given criteria
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public Bucket createBucket(Bucket bucket, boolean objectLock) {
.withAllowedHeaders(Arrays.asList("*"))
.withAllowedOrigins(Arrays.asList("*"))
.withMaxAgeSeconds(3000)
.withExposedHeaders(Arrays.asList("x-amz-server-side-encryption", "x-amz-request-id", "x-amz-id-2"));
.withExposedHeaders(Arrays.asList("ETag", "x-amz-server-side-encryption", "x-amz-request-id", "x-amz-id-2"));

List<CORSRule> rules = new ArrayList<CORSRule>();
rules.add(rule);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public ConfigKey<?>[] getConfigKeys() {
DefaultMaxProjectBuckets,
DefaultMaxProjectObjectStorage,
DefaultMaxDomainBuckets,
DefaultMaxDomainObjectStorage
DefaultMaxDomainObjectStorage,
ObjectStorePresignedUrlExpirySeconds
};
}

Expand Down
4 changes: 3 additions & 1 deletion ui/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,7 @@
"label.token.for.dashboard.login": "Token for dashboard login can be retrieved using following command",
"label.tools": "Tools",
"label.total": "Total",
"label.total.allocated.capacity": "Total allocated capacity",
"label.total.network": "Total Networks",
"label.total.vms": "Total Instances",
"label.total.volume": "Total volumes",
Expand Down Expand Up @@ -2467,7 +2468,7 @@
"label.upgrade.router.newer.template": "Upgrade router to use newer Template",
"label.upgrading": "Upgrading",
"label.upload": "Upload",
"label.upload.description": "Path to upload objects at",
"label.upload.description": "Path to upload objects at. If left empty, objects are uploaded to the root path.",
"label.upload.path": "Upload path",
"label.upload.icon": "Upload icon",
"label.upload.iso.from.local": "Upload ISO from local",
Expand Down Expand Up @@ -2500,6 +2501,7 @@
"label.use.kubectl.access.cluster": "<code><b>kubectl</b></code> and <code><b>kubeconfig</b></code> file to access cluster",
"label.use.local.timezone": "Use local timezone",
"label.used": "Used",
"label.used.capacity": "Used capacity",
"label.usehttps": "Use HTTPS",
"label.usenewdiskoffering": "Replace disk offering?",
"label.user": "User",
Expand Down
5 changes: 4 additions & 1 deletion ui/public/locales/ko_KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -2383,6 +2383,7 @@
"label.token.for.dashboard.login": "\ub300\uc2dc\ubcf4\ub4dc \ub85c\uadf8\uc778\uc744 \uc704\ud55c \ud1a0\ud070\uc740 \ub2e4\uc74c \uba85\ub839\uc744 \uc0ac\uc6a9\ud558\uc5ec \uac80\uc0c9 \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.",
"label.tools": "\ub3c4\uad6c",
"label.total": "\uc804\uccb4",
"label.total.allocated.capacity": "\ucd1d \ud560\ub2f9 \uc6a9\ub7c9",
"label.total.network": "\uc804\uccb4 \ub124\ud2b8\uc6cc\ud06c",
"label.total.vms": "\uc804\uccb4 VM",
"label.total.volume": "\uc804\uccb4 \ubcfc\ub968",
Expand Down Expand Up @@ -2464,7 +2465,7 @@
"label.upgrade.router.newer.template": "\ucd5c\uc2e0 \ud15c\ud50c\ub9bf\uc744 \uc0ac\uc6a9\ud558\ub3c4\ub85d \ub77c\uc6b0\ud130 \uc5c5\uadf8\ub808\uc774\ub4dc",
"label.upgrading": "\uc5c5\uadf8\ub808\uc774\ub4dc\uc911",
"label.upload": "\uc5c5\ub85c\ub4dc",
"label.upload.description": "Object\ub97c \uc5c5\ub85c\ub4dc\ud560 \uacbd\ub85c",
"label.upload.description": "Object\ub97c \uc5c5\ub85c\ub4dc\ud560 \uacbd\ub85c(\ubbf8\uc785\ub825\uc2dc \ucd5c\uc0c1\uc704 \uacbd\ub85c\uc5d0 \uc5c5\ub85c\ub4dc \ub429\ub2c8\ub2e4)",
"label.upload.path": "\uc5c5\ub85c\ub4dc \uacbd\ub85c",
"label.upload.icon": "\uc544\uc774\ucf58 \uc5c5\ub85c\ub4dc",
"label.upload.iso.from.local": "\ub85c\uceec\uc5d0\uc11c ISO \uc5c5\ub85c\ub4dc",
Expand Down Expand Up @@ -2497,6 +2498,7 @@
"label.use.kubectl.access.cluster": "\ud074\ub7ec\uc2a4\ud130\uc5d0 \uc561\uc138\uc2a4\ud558\uae30\uc704\ud55c <code> <b> kubectl </ b> </ code> \ubc0f <code> <b> kubeconfig </ b> </ code> \ud30c\uc77c",
"label.use.local.timezone": "\ub85c\uceec \uc2dc\uac04\ub300 \uc0ac\uc6a9",
"label.used": "\uc0ac\uc6a9\ub428",
"label.used.capacity": "\uc0ac\uc6a9\ub41c \uc6a9\ub7c9",
"label.usehttps": "HTTPS \uc0ac\uc6a9",
"label.usenewdiskoffering": "\ub514\uc2a4\ud06c \uc624\ud37c\ub9c1\uc744 \ubcc0\uacbd\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?",
"label.user": "\uc0ac\uc6a9\uc790",
Expand Down Expand Up @@ -2698,6 +2700,7 @@
"label.bucket.update": "\ubc84\ud0b7 \uc5c5\ub370\uc774\ud2b8",
"label.bucket.delete": "\ubc84\ud0b7 \uc0ad\uc81c",
"label.quotagb": "\ud560\ub2f9\ub7c9(GB)",
"label.quotagib": "\ud560\ub2f9\ub7c9(GiB)",
"label.encryption": "\uc554\ud638\ud654",
"label.versioning": "\ubc84\uc804 \uad00\ub9ac",
"label.objectlocking": "\uac1d\uccb4 \uc7a0\uae08",
Expand Down
5 changes: 5 additions & 0 deletions ui/src/components/view/DetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
{{ convertKB(dataResource.size) }}
</div>
</div>
<div v-else-if="$route.meta.name === 'buckets' && item === 'quota'">
<div>
{{ dataResource.quota }} GiB
</div>
</div>
<div v-else-if="['template', 'iso'].includes($route.meta.name) && item === 'size'">
<div>
{{ parseFloat(dataResource.size / (1024.0 * 1024.0 * 1024.0)).toFixed(2) }} GiB
Expand Down
Loading
Loading