Skip to content

Commit

Permalink
fix ci issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fschade committed Nov 8, 2021
1 parent 6f643b2 commit 964415d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/web-app-files/src/views/PublicFiles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ const unauthenticatedUserReady = async (router, store) => {
const publicToken = (router.currentRoute.params.item || '').split('/')[0]
const publicLinkPassword = store.getters['Files/publicLinkPassword']
if (publicLinkPassword) {
return
}
await store.dispatch('loadCapabilities', {
publicToken,
...(publicLinkPassword && { user: 'public', password: publicLinkPassword })
Expand Down Expand Up @@ -156,6 +160,7 @@ export default {
if (error.statusCode === 401) {
ref.redirectToResolvePage()
return
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app-media-viewer/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default {
// FIXME: at the moment the signing key is not cached, thus it will be loaded again on each request.
// workaround for now: Load file as blob for images, load as signed url (if supported) for everything else.
let promise
if (this.isActiveMediaFileTypeImage || !this.isUrlSigningEnabled) {
if (this.isActiveMediaFileTypeImage || !this.isUrlSigningEnabled || !this.$route.meta.auth) {
promise = this.mediaSource(url, 'url', null)
} else {
promise = this.$client.signUrl(url, 86400) // Timeout of the signed URL = 24 hours
Expand Down

0 comments on commit 964415d

Please sign in to comment.