umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.47k stars 2.69k forks source link

RTE macro error when editing by Unique ID #16129

Open TRiV07 opened 6 months ago

TRiV07 commented 6 months ago

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

13.1.1

Bug summary

Getting error in Backoffice on any content page that has RTE with macro inside when accessing by Unique ID. No error when accessing by ID. https://localhost:44383/umbraco/#/content/content/edit/74388 -> OK https://localhost:44320/umbraco#/content/content/edit/d86c15a9-cf35-4dc2-94a2-8c67ac85b00c -> Error image

API endpoint that generating error: https://localhost:44320/umbraco/backoffice/umbracoapi/macrorendering/GetMacroResultAsHtmlForEditor

Specifics

No response

Steps to reproduce

  1. Add any Macro to any RTE on the content page.
  2. Save content page.
  3. Go to the document's info.
  4. Copy GUID Id.
  5. Replace int Id with GUID Id in the browser address bar and go to the updated address.

Expected result / actual result

No response

github-actions[bot] commented 6 months ago

Hi there @TRiV07!

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:

Migaroez commented 3 months ago

Hey @TRiV07, do you know of a non copy paste way of a guid ending up in the url that would trigger this case?

If not I would like to understand the need to manually insert the guid into the url.

On a side note, I would advice you to no longer use macros if this is for a project in development as they have been replaced by blocks in v14. This will make future upgrades a lot easier.

TRiV07 commented 3 months ago

Hi @Migaroez, we are using our own Umbraco Backoffice extension that refers to Umbraco content by GUID.