Skip to content

Bug Detection Report - EventStreamMonitor (413 issues found) #4

@Ricky512227

Description

@Ricky512227

Bug Detection Report for EventStreamMonitor

Date: 2025-12-23T22:32:32.407Z

Total Bugs Found: 413

  • High Severity: 6
  • Medium Severity: 11
  • Low Severity: 396

High Severity Issues

scripts/dry_run_tests.py:150

Category: error_handling

Bare except or except: pass - should catch specific exceptions

        response = requests.get(SERVICES['notification']['url'], timeout=5)
        print(f" Notification service is reachable (status: {response.status_code})")
        results.append(("API Endpoint", "notification", True))
    except:
        print(" Notification service connection refused")
        results.append(("API Endpoint", "notification", False))
    

tests/integration/test_all_services.py:31

Category: error_handling

Bare except or except: pass - should catch specific exceptions

    try:
        response = requests.get(f"{url}/health", timeout=5)
        return response.status_code == 200
    except:
        return False


tests/integration/test_all_services.py:106

Category: security

Use of eval() is dangerous and can lead to code injection

        return None


def test_task_retrieval(task_id):
    """Test task retrieval"""
    print("\n" + "="*60)
    print("TEST: Task Retrieval")

tests/integration/test_all_services.py:189

Category: security

Use of eval() is dangerous and can lead to code injection

        results["task_creation"] = task_id is not None
        
        if task_id:
            results["task_retrieval"] = test_task_retrieval(task_id)
        else:
            print("\n  Task test skipped")
            results["task_retrieval"] = None

tests/integration/test_register_user.py:68

Category: error_handling

Bare except or except: pass - should catch specific exceptions

        try:
            response_json = response.json()
            print(f"Response Body: {json.dumps(response_json, indent=2)}")
        except:
            print(f"Response Body (text): {response.text}")
        
        return response.status_code, response.json() if response.headers.get('content-type', '').startswith('application/json') else response.text

tests/integration/test_register_user.py:91

Category: error_handling

Bare except or except: pass - should catch specific exceptions

    try:
        health_check = requests.get(f"{BASE_URL}/health", timeout=5)
        print(f"Service health check: {health_check.status_code}")
    except:
        print("WARNING: Service health check failed, but continuing with tests...")
    
    results = []

Medium Severity Issues

  • common/pyportal_common/logging_handlers/base_logger.py:10 - TODO/FIXME comment found - incomplete implementation
  • common/pyportal_common/logging_handlers/base_logger.py:48 - TODO/FIXME comment found - incomplete implementation
  • services/auth/app/init.py:40 - TODO/FIXME comment found - incomplete implementation
  • services/auth/app/init.py:80 - TODO/FIXME comment found - incomplete implementation
  • services/logmonitor/app/app_configs.py:15 - TODO/FIXME comment found - incomplete implementation
  • services/notification/app/app_configs.py:6 - TODO/FIXME comment found - incomplete implementation
  • services/notification/app/config.py:6 - TODO/FIXME comment found - incomplete implementation
  • services/taskprocessing/app/app_configs.py:6 - TODO/FIXME comment found - incomplete implementation
  • services/taskprocessing/app/config.py:6 - TODO/FIXME comment found - incomplete implementation
  • services/usermanagement/app/app_configs.py:5 - TODO/FIXME comment found - incomplete implementation

... and 1 more medium severity issues

Low Severity Issues

Found 396 low severity issues. See full report in workflow artifacts for details.

Full report available in workflow artifacts.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions