{"record":{"id":"87ec0249c2a5cbe4","repo":"RocketChat/Rocket.Chat","slug":"not-found-87ec02","errorCode":null,"errorMessage":"Not found","messagePattern":"Not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"info","filePath":"apps/meteor/server/routes/fileDecrypt.ts","lineNumber":5,"sourceCode":"import { WebApp } from 'meteor/webapp';\n\nWebApp.connectHandlers.use('/file-decrypt/', (_, res) => {\n\t// returns 404\n\tres.writeHead(404);\n\tres.end('Not found');\n});\n","sourceCodeStart":1,"sourceCodeEnd":8,"githubUrl":"https://github.com/RocketChat/Rocket.Chat/blob/b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0/apps/meteor/server/routes/fileDecrypt.ts#L1-L8","documentation":"Deliberate stub: any request under /file-decrypt/ is answered with 404 'Not found'. The old server-side file decryption download path was removed (decryption now happens in the client); the route exists only to terminate the legacy path explicitly instead of letting it fall through to other handlers.","triggerScenarios":"Any method and path under /file-decrypt/... - old clients, cached links, or integrations still calling the pre-removal endpoint after a workspace upgrade.","commonSituations":"Upgraded workspaces where a stale client, bookmark, or app still points at /file-decrypt/; documentation or integrations written against the old file decryption API.","solutions":["Stop calling /file-decrypt/ - fetch files through /file-upload/<id>/<name> and decrypt in the client as current builds do","Purge cached links and bookmarks pointing at the endpoint","Update integrations to the current file download URL scheme"],"exampleFix":"// before\nwindow.location.href = `${root}/file-decrypt/${fileId}`;\n\n// after\nwindow.location.href = `${root}/file-upload/${fileId}/${fileName}`;","handlingStrategy":"fallback","validationCode":"const isLiveFileRoute = (url: string): boolean => !url.startsWith('/file-decrypt/');","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Do not hardcode removed endpoints; derive file URLs from current message attachment data","After upgrades, grep clients and integrations for legacy paths like /file-decrypt/","Follow the changelog for file upload API changes"],"tags":["removed-endpoint","file-upload","encryption","http-404"],"backgroundTag":"endpoint-removed","analyzedSha":"b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0","analyzedAt":"2026-08-18T15:26:39.429Z","contentChangedAt":"2026-08-18T15:26:39.429Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}