Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
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.tsindex 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 accessthis.logger.log({ tag: this.linkAuthentication.name, msg: `*${user.login}* (${user.id}) is logged` })+ await user.makePaths()return this.authManager.setCookies(user, res)}