umbraco / Umbraco.Forms.Issues

Public issue tracker for Umbraco Forms
30 stars 0 forks source link

Umbraco Forms and Rich text editor field in Azure web app #1302

Open renaldas opened 3 months ago

renaldas commented 3 months ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

13.4.1

Bug summary

I am encountering an issue while using Umbraco Forms (version 13.2.1) when saving content with the Rich Text Editor. The error only occurs when the project is hosted on Azure Web App, while it functions correctly in my local development environment.

Endpoint: umbraco/backoffice/UmbracoForms/Field/ValidateSettings Error: 500 Internal Server Error Exception Message: "Object reference not set to an instance of an object." Console Log Snippet:

umbraco-backoffice-j…139254866c26caa:147 Possibly unhandled rejection: {"data":{"ExceptionMessage":"Object reference not set to an instance of an object.","ExceptionType":null,"StackTrace":null},"status":500,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"backoffice/UmbracoForms/Field/ValidateSettings","data":{"caption":"Payment","tooltip":null,"placeholder":null,"cssClass":null,"alias":"payment","id":"ffe59913-bd22-4c46-efea-cf5b321b10de","fieldTypeId":"1f8d45f8-76e6-4550-a0f5-9637b8454619","prevalueSourceId":"00000000-0000-0000-0000-000000000000","dataSourceFieldKey":null,"containsSensitiveData":false,"mandatory":false,"regex":null,"requiredErrorMessage":null,"invalidErrorMessage":null,"condition":{"id":"cf835316-47f5-4742-affd-db9616aa62f7","enabled":false,"actionType":"Show","logicType":"All","rules":[]},"settings":{"Html":{"markup":"<p data-pm-slice=\"1 1 [&quot;table&quot;,{},&quot;table_row&quot;,{},&quot;table_cell&quot;,{&quot;colspan&quot;:1,&quot;rowspan&quot;:1,&quot;colwidth&quot;:null}]\"><em>An invoice will be generated on receipt</em></p>\n<p data-pm-slice=\"1 1 [&quot;table&quot;,{},&quot;table_row&quot;,{},&quot;table_cell&quot;,{&quot;colspan&quot;:1,&quot;rowspan&quot;:1,&quot;colwidth&quot;:null}]\">&nbsp;</p>\n<p data-pm-slice=\"1 1 [&quot;table&quot;,{},&quot;table_row&quot;,{},&quot;table_cell&quot;,{&quot;colspan&quot;:1,&quot;rowspan&quot;:1,&quot;colwidth&quot;:null}]\"><em>teststt</em></p>","blocks":{"layout":{"Umbraco.TinyMCE":[]},"contentData":[],"settingsData":[]}},"ShowLabel":"False"},"preValues":[],"allowedUploadTypes":null,"allowMultipleFileUploads":true,"removePrevalueEditor":true},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8","X-Requested-With":"XMLHttpRequest","X-UMB-XSRF-TOKEN":"x"}},"statusText":"","xhrStatus":"complete"}  The error occurs specifically when trying to save settings related to the Rich Text Editor.

Any ideas, thank you :)

Steps to reproduce

Host in Azure web app Edit the form with rich text field Save and you will see error

github-actions[bot] commented 3 months ago

Hi there @renaldas!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

AndyButland commented 1 month ago

Hi - this only just got transferred over to the Forms tracker so I've only now seen it. But I'm not able to replicate on an Umbraco Cloud site (which uses Azure web apps) and the latest version of Umbraco Forms.