This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-156c5ced-dc1a-427c-a7b0-9da92f064cf4 XWIKI-25785 Open

Explain why adding a Live Data entry failed instead of reporting an unknown reason

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-4cfbd90c-f1ba-4abe-b0e8-df5c280a937d Manuel Leduc created this issue on 17/Nov/26 14:20
 
Summary: Explain why adding a Live Data entry failed instead of reporting an unknown reason
Issue Type: cid:jira-generated-image-avatar-156c5ced-dc1a-427c-a7b0-9da92f064cf4 Improvement
Affects Versions: 18.7.0-rc-1
Assignee: Unassigned
Components: Live Data
Created: 17/Nov/26 14:20
Priority: cid:jira-generated-image-static-major-e7cf0aff-f8d8-4409-81f5-10b6c4595804 Major
Reporter: Manuel Leduc
Description:

Problem

When adding an entry to a Live Data fails, the user only sees the generic notification "Adding the entry failed for an unknown reason." (livedata.error.addEntryFailed), whatever the cause.

The server usually knows why the creation failed (for instance, no location configured for the new entries, or the current user lacks the rights required by the template of the new entry), but that reason is only logged in the browser console, in English and in technical terms. The user cannot tell whether to fix a value, ask for rights or contact an administrator.

Expected

The notification explains the actual reason in user-facing, translated terms, and only falls back to the generic message when the reason is genuinely unknown.

Context

Raised in the review of https://github.com/xwiki/xwiki-platform/pull/7090#discussion_r4583914425 (XWIKI-24727), which adds a new failure cause (missing template required rights).