-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BC-7811 - refactor getSignedUrl
to use storageProviderId
and bucket
#5174
Conversation
…ket` instead of `userId`
getSignedUrl
to use storageProviderId
and `buc…getSignedUrl
to use storageProviderId
and bucket
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'm still wondering though why prepareSecurityCheck
doesn't have to be awaited in fileStorageService.create()
. Or is the order of execution not important?
prepareSecurityCheck(file, creatorId, strategy).catch(asyncErrorHandler); |
I think any issues with I just took |
Quality Gate passedIssues Measures |
Description
When trying to access files, the used storageProvider is chosen based on the school ID of the creator. If the creator is assigned to another school, after having created the file, the file can no longer be accessed, as the storage of the newly assigned school is used.
Links to Tickets or other pull requests
JIRA :
https://ticketsystem.dbildungscloud.de/browse/BC-7811
https://ticketsystem.dbildungscloud.de/browse/SVS-376
https://ticketsystem.dbildungscloud.de/browse/JHD-47434
Deployments :
https://bc-7811-request-to-files-calls-for-wrong-s3.dbc.dbildungscloud.dev/
https://bc-7811-request-to-files-calls-for-wrong-s3.brb.dbildungscloud.dev/
https://bc-7811-request-to-files-calls-for-wrong-s3.nbc.dbildungscloud.dev/
Changes
Datasecurity
Deployment
New Repos, NPM pakages or vendor scripts
Approval for review
generate-client:server
was executed in vue frontend and changes were tested and put in a PR with the same branch name.