Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Retrieve Record Entries - Umbraco Forms Backoffice #1178

Open
math519a opened this issue Mar 4, 2024 · 3 comments
Open

Unable to Retrieve Record Entries - Umbraco Forms Backoffice #1178

math519a opened this issue Mar 4, 2024 · 3 comments

Comments

@math519a
Copy link

math519a commented Mar 4, 2024

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
Copy link

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
Copy link
Author

math519a commented Mar 6, 2024

image
image
edit:
image

There is nothing logged to Debug, Error or Fatal

@AndyButland
Copy link

Associating this issue related the same error message: umbraco/Umbraco-CMS#11728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants