Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25785

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

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 18.7.0-rc-1
    • Live Data
    • None
    • Unknown

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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: