Conversations: the app starts without the libredesk link; attachments downloadable from the transcript frame

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-18 15:24:23 +01:00
1 parent 45db86d1ff
commit adc5ae12bd
4 files changed
+20 -6

No files matched your search

+6
View File
@@ -408,6 +408,12 @@ def check_conversations():
refuses(server.conversation_file, "42", "../../etc/passwd")
assert "From and To" in refuses(conversations.pump, {"start": "2026-11-01"})
assert set(conversations.pump_state()) == {"running", "log"}
pompage, conversations.pompage = conversations.pompage, None # no libredesk/ link: the app still runs
try:
assert "libredesk/" in refuses(conversations.pump, {})
assert conversations.pump_state()["running"] is False and "libredesk/" in conversations.pump_state()["log"][0]
finally:
conversations.pompage = pompage
finally:
conversations.FOLDER = before
shutil.rmtree(root)