Skip to content

Bug: _get_config_manager() null dereference in redis_management connection_manager #2477

@mrveiss

Description

@mrveiss

Problem

In autobot-shared/redis_management/connection_manager.py, _get_config_manager() can return None when the backend config module is not importable (e.g., running from SLM backend or standalone scripts). However, _load_redis_config() and _load_pool_config() call _get_config_manager().get_redis_config() without a null check, causing AttributeError.

Discovered During

Code review of PR #2469 (Issue #2313 — move redis_management to autobot-shared)

Fix

Add null guard in _load_redis_config() and _load_pool_config() that returns sensible defaults when config_manager is unavailable.

Impact

Severity: medium — Crashes when redis_management is used outside backend context, which is the primary motivation for the move to autobot-shared.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions