umbraco / Umbraco.Forms.Issues

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

Unable to Retrieve Record Entries - Umbraco Forms Backoffice #1178

Open math519a opened 4 months ago

math519a commented 4 months ago

Umbraco Forms, and being able to review record entries through the backoffice, is a critical aspect of our application/solution. On locally hosted web app, everything appears to work correctly. image image

Although, when using Azure Pipeline CICD, hosting through an azure web app, something seems to prevent us from reviewing record entries

Reproduction

Bug summary

Failed to fetch records through backoffice, PostRetrieveRecords() throws exception with Message; "The path appears to already be fully qualified. Please remove the call to MapPathContentRoot", ExceptionType "null" & StackTrace "null", which appears to be a debugging exception meant to be thrown to catch and log any errors that might occur after your migration from IOHelper.MapPath(), which has been annotated with [Obsolete("Use IHostingEnvironment.MapPathContentRoot or IHostingEnvironment.MapPathWebRoot instead")]. Additionally, reviewing the Umbraco.Core/Extensions/HostEnvironmentExtensions.cs source, the location of the method MapPathContentRoot(), the method mentioned in the exception method, a TODO note is added: // TODO: This is a temporary error because we switched from IOHelper.MapPath to HostingEnvironment.MapPathXXX // IOHelper would check if the path passed in started with the root, and not prepend the root again if it did, // however if you are requesting a path be mapped, it should always assume the path is relative to the root, not // absolute in the file system. This error will help us find and fix improper uses, and should be removed once // all those uses have been found and fixed if (newPath.StartsWith(root)) { throw new ArgumentException( "The path appears to already be fully qualified. Please remove the call to MapPathContentRoot"); }

Which to me looks like I've found an edge case you have not yet anticipated.

Specifics

Route: /umbraco#/forms/Form/entries/e2cfd11e-8655-4d6a-8376-d2b29a54e3c4?mculture=da Fresh install of Umbraco Core 12.3.6 & Forms 12.2.2. No custom notifcation handlers or logic has been defined for this area. Google Chrome, problem persist using Microsoft Edge.

image Endlessly loading, waiting for the record entries to get fetched. image image

Steps to reproduce

Navigate to /umbraco#/login Enter valid backoffice credentials. Navigate to /umbraco#/forms Expand forms folder. Expand any form. Navigate to entries of any form.

Expected result

Loaded form entries, as presented in first 2 attached screenshots.

Actual result

Endless loading form entries, PostRetrieveRecords() http status code 500, as presented in last 3 attached screenshots.

AndyButland commented 4 months ago

Not sure on this one I'm afraid, it's not something I've seen before. We host Umbraco Cloud sites on Azure web apps, so it's not an untested infrastructure that you are using. Maybe if you could share the request being made - "Headers" tab on the screenshot you sent before that might show something.

Also if you can find the error in the log viewer of your Umbraco environment, that might give a bit more details (stack trace etc.).

math519a commented 4 months ago

image image edit: image

There is nothing logged to Debug, Error or Fatal

AndyButland commented 4 months ago

Associating this issue related the same error message: https://github.com/umbraco/Umbraco-CMS/issues/11728