-
Notifications
You must be signed in to change notification settings - Fork 71
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
Content translation breaks derivatives #985
Comments
I reviewed this ticket. Need clarification with respect to the right/expected behaviour. For nodes, the user has the option to specify the language (example English or Hungarian) when creating the node. However, for media, that option does not exist. Should it exist? I assume it should exist since media can be translated. If media can be translated, then if the user in a specific language node (i.e If the language field exists, then that can help us specifying the right url. |
@kanasznagyzoltan Does adding the language field and setting it to Hungarian on the media work for you? |
I'm guessing but |
Additional Notes: Flysystem is building the url that get used by the EventGenerator. It is being created here: path: Thus, the following drupal uri flysystem.serve is defined here: https://github.com/twistor/drupal_flysystem/blob/8.x-1.x/flysystem.routing.yml#L11 I am not sure how the host/server info is being appended: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Routing%21UrlGenerator.php/8.6.x
This seems to be going into the language module. |
I had this same issue happen, I solved it by editing the configuration and enabled session instead of url (domain), and it just adds a suffix ?lang=es lang can be language, you configure and choose the argument yourself |
@kanasznagyzoltan @Natkeeran ^^ Would that work for you? |
deleted earlier comment about intermittent issues...that was strictly a permissions thing on our end so back to that works for me :) |
The workaround does address the issue somewhat. However, that won't be an appropriate solution for many use cases. "Language from the URL (Path prefix or domain)." is the default and one of the most common ways to determine language. If you don't have language prefix in the path, there is no way to get a specific language url of a node or content. Islandora 8 is definitely breaking standard Drupal behaviour. Not addressing the core issue can be problematic down the line as well. |
Just want to highlight that the issue is related to the storage of Original Files, which get stored to Fedora. The service files, thumb nails etc that get stored to local file systems work fine. |
Reported by @kanasznagyzoltan
Part of #939
After enabling content translation and the hungarian language, the language is being added to the url for files, which are unresolvable. E.g.
http://localhost:8000/_flysystem/fedora/2018-12/image.png
is getting written out ashttp://localhost:8000/hu/_flysystem/fedora/2018-12/image.png
, which does not exist. This bogus url is getting onto the queue and being used as theApix-Ldp-Resource
header in derivative calls, and things are failing.We generate the url here: https://github.com/Islandora-CLAW/islandora/blob/8.x-1.x/src/EventGenerator/EventGenerator.php#L25. Should be pretty easy to isolate and change or way of making that url.
The text was updated successfully, but these errors were encountered: