xwikisas / application-forum

Forum Application (Pro)
GNU Lesser General Public License v3.0
0 stars 5 forks source link

Warning that the content will be executed in restricted mode when creating a new Forum #111

Open ane-gabriela opened 10 months ago

ane-gabriela commented 10 months ago

Issue similar to issue 20834

Steps to reproduce:

  1. Log in as Admin or any simple user
  2. Click on Forums
  3. Click on Add forum
  4. Add a title
  5. Click on the + sign

Expected results: The new forum entry is displayed in edit mode to add description. No warning is displayed on the top of the page.

Actual results: The following warning appears at above the page title "Warning: For security reasons, the content of the edited document is executed in restricted mode, as the edit was not initiated by a validated request. There may be unexpected errors due to this." WarningsForum

Environment: Windows 11, XWiki 14.10.18 with Forum Application (Pro) 2.9, Chrome 118

lucaa commented 8 months ago

very probably same cause as https://github.com/xwikisas/application-meeting/issues/99 and same fix.

petrenkonikita112263 commented 3 months ago

in console there's a warning line during attempt to create a new forum entry

2024-06-13 13:23:43,813 [qtp1629911510-27 - http://localhost:8080/xwiki/bin/edit/Forums/Test/WebHome?editor=inline&title=Test&template=ForumCode.ForumTemplate&parent=Forums.WebHome] WARN  o.x.c.i.DefaultCSRFToken       - CSRFToken: Secret token verification failed, token: "null", stored token: "yRHsOx2xYWGgv3xKyKGEKw"