-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Content Delivery API returns 404 for URL with Japanese characters #18982
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
Comments
Hi there @cf-marc! 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 🤖 🙂 |
I'm having trouble replicate this one @cf-marc and @andersreus, at least on the latest code for Umbraco 13. I was looking to review the PR but first wanted to reproduce the original issue. I've created a document under a parent with the URL segment Then tested with the encoded and unencoded requests:
Both resolve as expected for me. @andersreus - would you mind please having a second look at your PR, and just see if the change you've made is actually necessary when using the latest code for 13 (i.e. what will be 13.9)? As it's possible this has been resolved in another update since 13.6 when this was originally reported. |
Hey @AndyButland When requesting: It still returns 404 on the latest 13. |
I think 404 would be expected there, as there's no path segment named
|
Requesting the English variant: |
That still might be as expected. For the delivery API you have to provide the language in a header if you want to get back the variant for a specific language. If you provide the header of See https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api under "Localization". |
Ah, of course, thank you for pointing that out! |
OK, in which case I think we can close this and your PR for 13. Do you agree? |
Yes, I agree 🙂 |
Closing then, thanks. @cf-marc - not quite sure when, but this issue can't be reproduced in 13.latest, so will be resolved in 13.9 (if it wasn't already in 13.7 and 13.8). |
Hey @AndyButland, This is the configuration for my Home node: I also tried using the Accept-Language header: /umbraco/delivery/api/v2/content/item/ja-jp/%E3%82%AA%E3%83%95%E3%82%A3%E3%82%B9 Am I missing something? |
It's not really clear if the page you have under your home node is published, and if so, under what language. If you could, please could you try to replicate with as simple as possible setup from a clean install? If you can provide the steps for that and we can replicate, it'll be easier to figure out what's going on. |
Hello @AndyButland I created an empty project using Umbraco 13.8.1. Attached, you’ll find a complete uSync export and the Postman configuration. We have several projects using the Content Delivery API in this way, supporting multiple cultures. We only use the path without the Accept-Language Header. I'm not sure what I'm doing wrong — thanks in advance for your help. umbraco-ja-jp.mp4 |
Thanks for this additional detail and sample @cf-marc - I've been able to replicate and believe I've found how to resolve, which you can see via the PR linked above. |
Thanks a lot for digging into this and for the quick turnaround @AndyButland! I really appreciate your patience throughout. |
Fixed in #19390, thanks for reporting 👍 |
Uh oh!
There was an error while loading. Please reload this page.
Which Umbraco version are you using?
13.6
Bug summary
We are using the Umbraco Content Delivery API (/umbraco/delivery/api/v2/content/item/...) to fetch content from a multilingual site. The Japanese version of our site includes URLs with native Japanese characters (e.g., /オフィス).
However, when we try to retrieve content using a Japanese path, we consistently receive a 404 response.
Specifics
No response
Steps to reproduce
Create a page with japanese characters in Umbraco.
Example request:
GET /umbraco/delivery/api/v2/content/item/ja-jp/オフィス
GET /umbraco/delivery/api/v2/content/item/ja-jp/%E3%82%AA%E3%83%95%E3%82%A3%E3%82%B9
Expected result / actual result
Expected behavior:
The API should return the content item matching the path /ja-jp/オフィス if it exists in Umbraco.
Actual behavior:
The API returns a 404 Not Found, despite the item being published and accessible in the CMS.
This item has been added to our backlog AB#51950
The text was updated successfully, but these errors were encountered: