mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor(server)!: sanitize error messages to avoid leaking resource and permission details
This commit is contained in:
@@ -724,7 +724,7 @@ describe(WorkflowService.name, () => {
|
||||
|
||||
await sut.delete(auth, workflow.id);
|
||||
|
||||
await expect(sut.get(auth, workflow.id)).rejects.toThrow('Not found or no workflow.read access');
|
||||
await expect(sut.get(auth, workflow.id)).rejects.toThrow('Access denied');
|
||||
});
|
||||
|
||||
it('should delete workflow with filters and actions', async () => {
|
||||
@@ -743,7 +743,7 @@ describe(WorkflowService.name, () => {
|
||||
|
||||
await sut.delete(auth, workflow.id);
|
||||
|
||||
await expect(sut.get(auth, workflow.id)).rejects.toThrow('Not found or no workflow.read access');
|
||||
await expect(sut.get(auth, workflow.id)).rejects.toThrow('Access denied');
|
||||
});
|
||||
|
||||
it('should throw error when deleting non-existent workflow', async () => {
|
||||
|
||||
Reference in New Issue
Block a user