This issue has been created
 
 
LLM AI Integration / cid:jira-generated-image-avatar-3c7d9847-9d73-4007-affc-d7110964e361 LLMAI-197 Open

write_schema modify_field / remove_field on a nonexistent document reports that it "exists"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2239cda6-a0f8-40a3-b85a-d7fc3436ce3e Paul Pantiru created this issue on 30/Sep/26 17:38
 
Summary: write_schema modify_field / remove_field on a nonexistent document reports that it "exists"
Issue Type: cid:jira-generated-image-avatar-3c7d9847-9d73-4007-affc-d7110964e361 Bug
Affects Versions: 0.10
Assignee: Unassigned
Created: 30/Sep/26 17:38
Priority: cid:jira-generated-image-static-minor-be92bd0f-b895-48df-91c5-8c32fe041fc7 Minor
Reporter: Paul Pantiru
Description:

modify_field (no base_version) or remove_field (base_version="1.1") on a reference that does not exist passes the version checks (a new XWikiDocument reports version 1.1) and then fails in the shared class-fields guard with Document "X" exists but defines no class fields.

Expected: Document "Sandbox.NoSuchClass" does not exist; the first add_field creates the class.

Actual: "exists but defines no class fields".