8000 [Bug]: agentic search calls retrieval with a nil database · Issue #22810 · infiniflow/ragflow · GitHub
[go: up one dir, main page]

Skip to content
8000

[Bug]: agentic search calls retrieval with a nil database #22810

Backlog

Description

@simongu

What happens

AgenticSearchTool.InvokableRun calls svc.Search(ctx, nil, req).

The retrieval tool passes dao.DB into the same Search method. With a nil database, permission.NewDatabaseChecker has no source. Membership and resource lookups return permission: source is not configured, so an otherwise valid agentic search cannot complete the dataset authorization check.

Expected

Agentic search should pass the same application database the retrieval tool uses, so the permission check can load membership and dataset rows.

Where

internal/agent/tool/agentic_search.go, the svc.Search(ctx, nil, req) call. Present on current main.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0