Skip to content

[Bug]: Empty name Accepted in Dataset Updates via HTTP API #5915

Open
@asiroliu

Description

@asiroliu

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

RAGFlow workspace code commit ID

x

RAGFlow image version

ecb813b8a694 (infiniflow/ragflow:nightly)

Other environment information

Actual behavior

Updating Dataset name with Empty String Returns Success

Expected behavior

Empty name values should either be rejected

Steps to reproduce

1. Send a PUT request to update dataset name with an empty string:

response = requests.put(f'http://127.0.0.1:9380/api/v1/datasets/{dataset_id}', json={"name": ""})

2. The API returns {'code': 0}, indicating success.
3. Query the dataset via the list API:

{
    "code": 0,
    "data": [
        {
            "name": "",  // Empty string persists
            // ...other fields
        }
    ]
}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions