Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

fix(backend:links): ensure tmp path is created after authentication for guest links

johavend782aaa78caf
diff --git a/backend/src/applications/links/services/links-manager.service.ts b/backend/src/applications/links/services/links-manager.service.ts
index c33e34fb..50b24004 100644
--- a/backend/src/applications/links/services/links-manager.service.ts
+++ b/backend/src/applications/links/services/links-manager.service.ts
@@ -67,6 +67,7 @@ export class LinksManager {
this.logger.log({ tag: this.linkAccess.name, msg: `*${user.login}* (${user.id}) is logged` })
this.incrementLinkNbAccess(link)
this.usersManager.updateAccesses(user, req.ip, true).catch((e: Error) => this.logger.error({ tag: this.linkAccess.name, msg: `${e}` }))
+ await user.makePaths()
return this.authManager.setCookies(user, res)
}
// Already authenticated
@@ -116,6 +117,7 @@ export class LinksManager {
}
// authenticate user to allow access
this.logger.log({ tag: this.linkAuthentication.name, msg: `*${user.login}* (${user.id}) is logged` })
+ await user.makePaths()
return this.authManager.setCookies(user, res)
}