Closed
Description
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).
- Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
- Please do not modify this template :) and fill in all the required fields.
RAGFlow workspace code commit ID
x
RAGFlow image version
18865dc90639 (infiniflow/ragflow:nightly)
Other environment information
Actual behavior
File Download via HTTP API Returns Success JSON When document_id Is Empty
Expected behavior
When the document_id parameter is missing, the API should return an error response consistent with invalid ID handling:
{"code": 102, "message": "The dataset not own the document invalid_document_id."}
Steps to reproduce
1. Send GET request without providing document_id
response = requests.get(f'http://127.0.0.1:9380/api/v1/datasets/{dataset_id}/documents/')
2. Actual Response (200 OK):
{"code": 0, "data": {"docs": [], "total": 0}}
Additional information
https://ragflow.io/docs/dev/http_api_reference#download-document