Skip to content

[Bug]: Update Document HTTP API Returns Success Code but Fails to Apply Changes for Non-Editable Properties #6104

@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).
  • 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

9a43ca28ab4d(infiniflow/ragflow:nightly)

Other environment information

Actual behavior

This issue is similar to #5923 but specifically affects the ​Update Document HTTP API. When attempting to modify certain document properties via this API, the response incorrectly returns {"code": 0} (success), even though the changes are not persisted.

Expected behavior

No response

Steps to reproduce

refer issue #5923

Additional information

list document response:

{
    "code": 0,
    "data": {
        "docs": [
            {
                "chunk_count": 0,
                "chunk_method": "naive",
                "create_date": "Fri, 14 Mar 2025 16:33:17 GMT",
                "create_time": 1741941197894,
                "created_by": "e57c1966f99211efb41e9e45646e0922",
                "dataset_id": "fab18c3a00ae11f099c7aa2262e5d7c7",
                "id": "fab4b55e00ae11f0b967aa2262e5d7c7",
                "location": "ragflow_test_upload_0.txt",
                "meta_fields": {},
                "name": "RAGFLOW_TEST_UPLOAD_1.TXT",
                "parser_config": {
                    "chunk_token_num": 128,
                    "delimiter": "\\n!?;。;!?",
                    "html4excel": False,
                    "layout_recognize": "DeepDOC",
                    "raptor": {"use_raptor": False},
                },
                "process_begin_at": None,
                "process_duation": 0.0,
                "progress": 0.0,
                "progress_msg": "",
                "run": "UNSTART",
                "size": 35,
                "source_type": "local",
                "status": "1",
                "thumbnail": "",
                "token_count": 0,
                "type": "doc",
                "update_date": "Fri, 14 Mar 2025 16:33:17 GMT",
                "update_time": 1741941197950,
            }
        ],
        "total": 1,
    },
}

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