From 654d189ce8ca8a7beed4c9a62c9b911fe4d9705e Mon Sep 17 00:00:00 2001 From: James Date: Sun, 19 Sep 2021 15:42:28 -0400 Subject: [PATCH] Update log, Add flush This will be released as a hotfix, since symbols cannot be uploaded without the flush. --- crashserver/webapp/operations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crashserver/webapp/operations.py b/crashserver/webapp/operations.py index fa09452..9e2f66b 100644 --- a/crashserver/webapp/operations.py +++ b/crashserver/webapp/operations.py @@ -49,7 +49,7 @@ def symbol_upload(session, project_id: str, symbol_file: bytes, symbol_data: Sym session.add(build) if build.symbol: - logger.error("Symbol rejected. Symbol already uploaded.") + logger.error("Symbol {} already uploaded. Subsequent upload rejected.", symbol_data.build_id) return {"error": "Symbol file already uploaded"}, 203 build.symbol = Symbol( @@ -58,6 +58,7 @@ def symbol_upload(session, project_id: str, symbol_file: bytes, symbol_data: Sym arch=symbol_data.arch, app_version=symbol_data.app_version, ) + session.flush() build.symbol.store_file(symbol_file) session.commit()