8000 [Bug]: canvas tenant id falls back to the user id · Issue #22809 · infiniflow/ragflow · GitHub
[go: up one dir, main page]

Skip to content

[Bug]: canvas tenant id falls back to the user id #22809

Backlog

Description

@simongu

What happens

canvasTenantID in internal/agent/tool/canvas_ctx.go returns sys.user_id when sys.tenant_id is empty. Agentic search and dataset navigation use that value as the tenant for retrieval.

A run that has a user but no tenant then searches with the user id in the tenant field. The search does not stop for a missing tenant.

Expected

When sys.tenant_id and the permission-context tenant are both empty, retrieval should fail closed and should not substitute user_id.

Where

internal/agent/tool/canvas_ctx.go, canvasTenantID. Confirmed on current main (also present at bb7b3c288).

This report does not include a patch. The local fix lives on our Gitee branch and is mixed with other canvas work.

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