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.48k stars 2.69k forks source link

Cannot add field type on Linux Opensuse #13682

Closed wpplumber closed 1 year ago

wpplumber commented 1 year ago

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

version 11.1.0

Bug summary

Error msg:

Request error: The URL returned a 404 (not found):
/umbraco/backoffice/umbracoapi/datatype/GetById

Preview: image

Specifics

No response

Steps to reproduce

Reproduce:

  1. Fresh install.
  2. Create a new doc type
  3. Create new field but when choosing the type cannot.

Expected result / actual result

No response

github-actions[bot] commented 1 year ago

Hi there @wpplumber!

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:

elit0451 commented 1 year ago

Hi @wpplumber,

Have you tried selecting another property editor to check if the error occurs just for the "Textarea"?

wpplumber commented 1 year ago

Welcome @elit0451, the same for other types i.e Textbox.

wpplumber commented 1 year ago

But using create new it works.

image

elit0451 commented 1 year ago

Good to know, thanks. We will have a look 👍

nul800sebastiaan commented 1 year ago

I thought this was caused by a custom package, or is this not the same Tarik as on the Discord thread here? 😅 https://discord.com/channels/869656431308189746/1059674867215126619

wpplumber commented 1 year ago

Not me Sebastiaan, I'm an old Umbraco developer back to it now.

I have v11 with a fresh installation.

image

nul800sebastiaan commented 1 year ago

Ah okay! Well, what I talked about in the thread still holds true, if it was an issue with Umbraco it would also be an issue on Windows, we have plenty of people who run on Linux as well not encountering this problem so I will suggest that this most likely has something to do with custom code that you've implemented or a package you've installed.. :-)

I do realize you're saying it's a fresh installation, so the only other thing I could think of is that maybe it's a permissions problem? But it looks more like a routing issue.

nul800sebastiaan commented 1 year ago

Alright, I made a clean install on Linux, creating an unattended install using Package Script Writer (these commands will create an 11.1.0 install with a starter kit and the username test@test.com, password test123456) and that works for me:

https://user-images.githubusercontent.com/304656/212902720-6fe0c245-9f5e-46ef-9f6b-e9587724471e.mp4

I also realize we have Playwright tests for this as well, which run both on Windows and Linux. So something is different on your machine, but not sure what!

wpplumber commented 1 year ago

@nul800sebastiaan , FYI I'm using SQLite.

nul800sebastiaan commented 1 year ago

SQLite for me too yes. :)

wpplumber commented 1 year ago

Why other routes work but https://localhost:44393/umbraco/backoffice/umbracoapi/datatype/GetById?id=-89 failed!

image

elit0451 commented 1 year ago

Unfortunately, we still can't reproduce this 😞

wpplumber commented 1 year ago

Thank you for the update @elit0451, maybe I'm near from a fix.

I didn't go deep on the core architecture but seems as API data missing for that.

@nul800sebastiaan, what is the id of default textarea on Ubuntu ? possible to show the network log as mine ?

image

I found the textarea working has config col with {} as value but the one with error has empty!

image

nul800sebastiaan commented 1 year ago

Same Id, -89. And you can see it's got a 200 response instead of an error response like yours.

image

In my umbracoDataType table the config is null, that might be a clue yes.

wpplumber commented 1 year ago

The same error I got using SQL server DB!

kjac commented 1 year ago

Hi @wpplumber,

Did you ever get any closer to a solution here?

I can't reproduce this either, not on V10 nor on V11. Something is definitively up with your environment.

This may a little far fetched, but there are two major differences between the attempted reproductions and your environment, as far as I can tell from the screenshots; your localhost SSL certificate does not work, and you may be running on a different default locale than the reproductions have been trying.

Could you please try:

wpplumber commented 1 year ago

Welcome @kjac, not yet where I already added a question on Discord asking for a way to debug on Linux...

Related to SSL I already mentioned in this post that other requests work.

nul800sebastiaan commented 1 year ago

Does it work when you go into the database and set the textarea or textstring config column to null instead of {} - honestly I'm quite puzzled as to why mine defaults to null and yours to empty json.

wpplumber commented 1 year ago

The same error with default input and after I changed it to null.

image

wpplumber commented 1 year ago

Today I cannot add media folder too!

image

wpplumber commented 1 year ago

Other machine using the same Opensuse version working!

image

wpplumber commented 1 year ago

Also for Media section !

image

wpplumber commented 1 year ago

Fixed. :pick:

After switching Opensuse language from Arabic to English it works!