Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
a9d59bca
Commit
a9d59bca
authored
2 years ago
by
Kartheek Palla
Browse files
Options
Download
Patches
Plain Diff
Issue #KN-603 fix: CSP changes
parent
1a256a79
release-5.3.0
csp-migration
knowlg-oneclick
local-setup-kube
patch-1
patch-2
patch-3
release-5.2.0
release-5.2.0_RC2
release-5.2.0_RC1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform-modules/mimetype-manager/src/main/scala/org/sunbird/cloudstore/StorageService.scala
+1
-0
...rc/main/scala/org/sunbird/cloudstore/StorageService.scala
with
1 addition
and
0 deletions
+1
-0
platform-modules/mimetype-manager/src/main/scala/org/sunbird/cloudstore/StorageService.scala
+
1
−
0
View file @
a9d59bca
...
...
@@ -69,6 +69,7 @@ class StorageService {
def
getSignedURL
(
key
:
String
,
ttl
:
Option
[
Int
],
permission
:
Option
[
String
])
:
String
=
{
storageType
match
{
// TODO: We need to remove CSP name related code. Below code needs to be refactored.
case
"gcloud"
=>
getService
.
getPutSignedURL
(
getContainerName
,
key
,
ttl
,
permission
,
Option
.
apply
(
getMimeType
(
key
)))
case
_
=>
getService
.
getSignedURL
(
getContainerName
,
key
,
ttl
,
permission
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets