ail-framework/bin/lib
Fafner [_KeyZee_] 75b2d97504
Update Tracker.py
If self._get_field('level') is None, trying to convert it into int will crash the system :)

2024-12-23 14:22:46,232 Flask_server ERROR:Exception on /trackers [GET]
Traceback (most recent call last):
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 1511, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 919, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/AILENV/lib/python3.12/site-packages/flask_login/utils.py", line 290, in decorated_view
    return current_app.ensure_sync(func)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/var/www/Role_Manager.py", line 81, in decorated_view
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/var/www/blueprints/hunters.py", line 74, in trackers_dashboard
    trackers = Tracker.get_trackers_dashboard(user_org, user_id)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/bin/lib/Tracker.py", line 785, in get_trackers_dashboard
    if not tracker.check_level(user_org, user_id):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/bin/lib/Tracker.py", line 220, in check_level
    level = self.get_level()
            ^^^^^^^^^^^^^^^^
  File "/home/user/ail-framework/bin/lib/Tracker.py", line 183, in get_level
    level = int(self._get_field('level'))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
2024-12-23 14:29:20 +01:00
..
objects chg: [user-account viewer] add messages heatmap by year 2024-12-20 14:45:18 +01:00
ail_api.py chg: [acl] refactor acl cookiejars, trackers, retro_hunts, investigation + refactor users roles 2024-09-05 14:41:13 +02:00
ail_core.py chg: [cryptocurrency] add ripple address subtype + correlation 2024-12-11 14:51:44 +01:00
ail_files.py chg: [importers] improve abstract class and logs 2023-06-02 11:03:32 +02:00
ail_logger.py chg: [access logs] add user_agent 2024-09-06 15:04:28 +02:00
ail_orgs.py chg: [create edit user] add org selector search 2024-09-23 15:01:15 +02:00
ail_queues.py chg: [queue] save module start time + pid 2024-12-06 14:08:47 +01:00
ail_stats.py chg: [dashboard] show tracker description 2024-12-06 16:42:17 +01:00
ail_updates.py chg: [dom-hash] add dom-hash object compute dom-hash for domains and crawled items 2024-10-17 12:14:48 +02:00
ail_users.py chg: [create edit user] add org selector search 2024-09-23 15:01:15 +02:00
btc_ail.py chg: [perf] reduce memory usage 2024-04-09 14:22:11 +02:00
chats_viewer.py chg: [user-account viewer] add messages heatmap by year 2024-12-20 14:45:18 +01:00
Config_DB.py chg: [cleanup] remove ARDB + fix hive case 2023-01-18 16:28:08 +01:00
ConfigLoader.py chg: [perf] reduce memory usage 2024-04-09 14:22:11 +02:00
correlations_engine.py chg: [barcode] add and extract barcode object 2024-11-05 14:10:30 +01:00
crawlers.py fix: [crawler] fix reload_crawlers_stats queues stats 2024-12-16 10:59:17 +01:00
d4.py fix: [d4] change enable d4 2023-06-07 11:03:32 +02:00
data_retention_engine.py chg: [MISP export + redis] refactor MISP, export all relationships between objects, relationships between investigated objects + bump redis-py version + theHive export 2023-01-16 16:27:49 +01:00
Duplicate.py fix: [MISP export] fix ail object first/last seen + obj logger 2023-06-09 11:19:22 +02:00
exceptions.py chg: [api] refactor blueprint 2024-02-26 15:35:48 +01:00
index_whoosh.py chg: [all] remove old objects + migrate cryptocurrencies module + cleanup code 2022-11-28 15:01:40 +01:00
Investigations.py fix: [investigation] add object with spaces in id to an investigation 2024-12-11 09:57:24 +01:00
item_basic.py fix: [items source] filter invalid item sources 2023-08-29 14:03:26 +02:00
Language.py fix: [language detector] fix exception if the libretranslate url is not specified 2024-05-06 11:31:37 +02:00
MispModules.py chg: [cleanup] remove ARDB + fix hive case 2023-01-18 16:28:08 +01:00
module_extractor.py fix: [retro hunts] remove objects 2024-11-25 15:15:10 +01:00
regex_helper.py chg: [crawler] submit free text of urls to crawl 2024-10-09 15:05:27 +02:00
relationships_engine.py chg: [relationships] add messages mentions -> chats + user-accounts 2024-06-06 11:26:46 +02:00
Statistics.py chg: [cleanup] remove ARDB + fix hive case 2023-01-18 16:28:08 +01:00
Tag.py chg: [blur unsafe images] blur violence and pornography-illicit-or-illegal tags + add warning message 2024-12-10 15:42:46 +01:00
telegram.py fix: [dashboard] fix objects links 2024-03-13 11:58:40 +01:00
timeline_engine.py chg: [user-account] chat user-accounts: show usernames list + usernames timeline 2024-07-09 13:04:18 +02:00
Tracker.py Update Tracker.py 2024-12-23 14:29:20 +01:00