Skip to content

Commit 15e1e67

Browse files
committed
fix: fixed multiple crossdependencies between frontend and backend
1 parent fd69918 commit 15e1e67

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/install/requirements_common.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
testresources==2.0.1
33

44
# General python dependencies
5+
aiohttp~=3.13.3
56
docker~=7.1.0
67
pytest-rerunfailures~=14.0
78
lief~=0.17.0

src/plugins/analysis/file_system_metadata/routes/routes.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
from web_interface.security.decorator import roles_accepted
1515
from web_interface.security.privileges import PRIVILEGES
1616

17-
from ..code.file_system_metadata import AnalysisPlugin
18-
1917
if TYPE_CHECKING:
2018
from web_interface.frontend_database import FrontendDatabase
2119

2220

2321
VIEW_PATH = Path(__file__).absolute().parent / 'ajax_view.html'
22+
PLUGIN_NAME = 'file_system_metadata'
2423

2524

2625
class ParentAnalysisLookupMixin:
@@ -31,7 +30,7 @@ def get_analysis_results_for_included_uid(self, uid: str) -> list:
3130
with get_shared_session(self.db.frontend) as db:
3231
vfp = db.get_vfps(uid)
3332
for parent_uid in vfp:
34-
parent_analysis = db.get_analysis(parent_uid, AnalysisPlugin.NAME) or {}
33+
parent_analysis = db.get_analysis(parent_uid, PLUGIN_NAME) or {}
3534
results.append(_get_results_from_parent_fo(parent_analysis.get('result', {}), parent_uid, vfp))
3635
return results
3736

@@ -83,4 +82,4 @@ def get(self, uid: str):
8382
endpoint = self.ENDPOINTS[0][0]
8483
if not results:
8584
error_message(f'no results found for uid {uid}', endpoint, request_data={'uid': uid})
86-
return success_message({AnalysisPlugin.NAME: results}, endpoint, request_data={'uid': uid})
85+
return success_message({PLUGIN_NAME: results}, endpoint, request_data={'uid': uid})
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
git+https://github.com/fkie-cad/common_analysis_ip_and_uri.git
22
geoip2==4.7.0
3-
# dependency of geoip2 for python >= 3.12
4-
aiohttp~=3.13.3

src/plugins/analysis/qemu_exec/routes/routes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
from web_interface.security.decorator import roles_accepted
1212
from web_interface.security.privileges import PRIVILEGES
1313

14-
from ..code.qemu_exec import PLUGIN_NAME
15-
14+
PLUGIN_NAME = 'qemu_exec'
1615
VIEW_PATH = Path(__file__).absolute().parent / 'ajax_view.html'
1716

1817

0 commit comments

Comments
 (0)