-
Notifications
You must be signed in to change notification settings - Fork 242
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
EZP-29573: Legacy installer should allow utf8mb4 charset #1386
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried with a fresh install of v5.4.12-rc3 on a new utf8mb4 database.
Applied the diff from this PR.
Applied the script from the advisory / EZP-29110.
Updated charset in i18n.ini and ezpublish.yml.
Reloaded all caches.
Having problems with publishing new Folder or Article (504 Gateway Time-out).
Also icons with Content types on Sub items list in Content structure are not displayed correctly.
(provided more details on slack)
@glye did you figure out anything on this? |
@andrerom No, delayed by other things. Need to get back to it. |
@vidarl was this one of the issue you where hitting when trying to use setup wizard? |
@andrerom : no. My problem was that the setup wizard would refuse to use a database which has the 'utf8mb4' character set... So after choosing the database to use (in the drop-down and click 'next'), it would say 'Hey.... this db is not in "utf8"' |
@vidarl that sounds exactly like the description in PR here :) |
hehe.. that is right.. sorry. I was a bit quick and only read micszo's comment.... |
btw the latest status is in Jira :) |
Co-Authored-By: glye <gunnstein.lye@ez.no>
@micszo Hi! Could you test this again with the last change from André, please? |
@glye tried again on v5.4.12.1 with latest diff from this PR, followed steps as in my review from Sep 5. Getting the same results, 504 on publish etc. Are there other places in the system apart from i18n.ini (i18n.ini.append.php) and ezpublish.yml where utf-8 should be changed to utf8mb4? (site.ini is also mentioned in JIRA...) |
OK, breakthrough. |
@micszo Awesomtastic! So what was the difference in sequence from the previous test? |
What I did. dropped db, created again dropped db, created again Dunno why it didn't work without repeating those 4 steps. |
I'm still uncertain about this because second wizard wiped some of those charset changes. Checking. |
OK, I have gained some insight now. |
I looked through it again, and it seems correct that there should be no change in i18n.ini. Is there any reference to i18n.ini in the PR or in the jira issue, that I missed? |
Nope, can't see it either. Must have looked for all places where charset was present. In that case, if it's not required there, we might be good to go. 😅 |
Yep, as I recall the i18n.ini change was a mistake, as that setting is about the output charset. The site.ini setting is for the database charset, which is what we want here. |
When creating a database in
utf8mb4
, the legacy installer complains that onlyutf-8
is supported. Sinceutf8mb4
is recommended now we should support both.utf8mb4
is not available in every database eZ Publish 5.x supports, but then people won't be able to create such a DB, so it won't be a problem.NB: Since we have not backported the utf8mb4 schema changes, in order for this to work one has to first create the database, then apply the changes in the advisory, and then run the installer.