Lille
Account created on 11 April 2019, almost 6 years ago
#

Merge Requests

More

Recent comments

🇫🇷France prudloff Lille

prudloff made their first commit to this issue’s fork.

🇫🇷France prudloff Lille

IMHO an user with admin role is basically the same thing as a super user (except the UID is not hardcoded).
A role that has is_admin: true in its config automatically has every permission.

Also, it's quite a different attack surface to edit a super user, compared to an admin role, which may or may not be super users per se.

I am not sure the attack surface is different.
Getting control of user 1 gives every permission.
Getting control of a user with an admin role (a role that has the is_admin flag) gives every permission.

🇫🇷France prudloff Lille

I just noticed that I did not have the error on another website.
Turns out Drush usually provides a current request but I was using this patch that somehow removed the request from the request stack (I am not sure how honestly).

I am keep the MR open because it might still be worth it to make Renderer::getCurrentRenderContext() more robust when there is no request.

🇫🇷France prudloff Lille

prudloff made their first commit to this issue’s fork.

🇫🇷France prudloff Lille

I am using Drupal 11.0.9 with symfony_mailer 1.5.0.
I don't have the problem with the reset link reported by @ot1201. But I have a double encoding problem when the site name contains a ' character.

I am attaching screenshots of the problem.

🇫🇷France prudloff Lille

I am getting a similar problem when using symfony_mailer and sending a password reset mail containing the [site:name] token.
The LegacyEmailBuilder from symfony_mailer seems to assume that all core email are plain text.
But user_mail() adds an HTML body to the email (because it uses Token::replace() and not Token::replacePlain().

When using core to send emails you don't notice it because PhpMail::format() then removes the HTML.
But when using symfony_mailer, this HTML is double encoded.

LegacyMailerHelper::formatBody() from symfony_mailer converts the message body to a #processed_text element without specifying a format, so the default format is used.
On most websites, the default form will be plain_text with the FilterHtmlEscape filter enabled.
This means if the website name contains a ', user_mail() will convert the token to a string containing ' and FilterHtmlEscape will double escape it as '.

Is symfony_mailer correct to assume all core emails are plain text? If so, user_mail() should add a plain text body to the message.

@ot1201 instead of using PlainTextOutput::renderFromHtml($token_service->replace()), it is probably cleaner to use $token->replacePlain().

🇫🇷France prudloff Lille

prudloff made their first commit to this issue’s fork.

🇫🇷France prudloff Lille

prudloff changed the visibility of the branch 3494490-cas-3-compatibility to active.

🇫🇷France prudloff Lille

prudloff changed the visibility of the branch 3494490-cas-3-compatibility to hidden.

🇫🇷France prudloff Lille

It is IMHO a better practice to specify the required version in the info.yml file instead of composer.json.
This way it is used both by Drupal to validate the constraint when enabling the module and by drupal.org when generating the Composer package.

🇫🇷France prudloff Lille

I think only the creator of the MR, the person who started the thread or the maintainers of the module can mark threads as resolved.

🇫🇷France prudloff Lille

prudloff changed the visibility of the branch 3026636-allow-ajax-links to hidden.

🇫🇷France prudloff Lille

prudloff changed the visibility of the branch 11.x to hidden.

🇫🇷France prudloff Lille

prudloff changed the visibility of the branch 9.3.x to hidden.

🇫🇷France prudloff Lille

prudloff made their first commit to this issue’s fork.

🇫🇷France prudloff Lille

prudloff made their first commit to this issue’s fork.

🇫🇷France prudloff Lille

prudloff made their first commit to this issue’s fork.

🇫🇷France prudloff Lille

I did some tests with phpspreadsheet 3.5 and everything seems to work correctly.
The PHP requirements are the same as 2.3 so I don't think we need to keep supporting 2.3 alongside 3.5.

🇫🇷France prudloff Lille

Sorry, I read the description too quickly. I can indeed reproduce when forcing a batch and can confirm the patch fixes the error.

🇫🇷France prudloff Lille

webform_xlsx_export will now prevent users from using 2.2 (because no 2.2 release is secure).

Note however that it is the responsibility of devs using this module to use secure versions of dependencies.

🇫🇷France prudloff Lille

I could not reproduce the error but the change seems harmless so I merged it.

🇫🇷France prudloff Lille

@jess thank you for reporting this but I think it would be better handled in a separate issue.
If you are able to provide a full stack trace for the error, it would be easier to see what happens exactly.

🇫🇷France prudloff Lille

prudloff changed the visibility of the branch 11.x to hidden.

🇫🇷France prudloff Lille

prudloff changed the visibility of the branch 10.0.x to hidden.

🇫🇷France prudloff Lille

prudloff created an issue.

🇫🇷France prudloff Lille

Would it be possible to publish a new release with the ^11 fix?
Currently version 2.1.0 forces using Drupal 11.0.0.

🇫🇷France prudloff Lille

We noticed it is dangerous to use this property because the entity ID is not always added to the cache keys (eva_entity_view() only adds it if the entity ID is used as view argument).
So if for example you have the same eva view on the same page but for different entities and your code uses the current_entity property to change the output of the view, the view render will only be cached once for the first entity and reused for the other entities.

🇫🇷France prudloff Lille

prudloff made their first commit to this issue’s fork.

🇫🇷France prudloff Lille

prudloff changed the visibility of the branch 9.3.x to hidden.

🇫🇷France prudloff Lille

prudloff changed the visibility of the branch 11.x to hidden.

🇫🇷France prudloff Lille

There is a remaining problem: if the image already has a link on it, uploading a file does not change this link (in the data model).

🇫🇷France prudloff Lille

I'm not entirely sure this is the best approach but it seems to work for us.

🇫🇷France prudloff Lille

The draft MR fixes the file link insert on images and generates whats seems like a valid data model and correct UI, however there is a remaining problem with the downcast: it generates two <a> tags.
I think one comes from drupalfileediting.js and the other from downcastBlockImageLink().

🇫🇷France prudloff Lille

However, the patch in #11 (with Drupal 10.2) throws this error when rebuilding the cache:

The patch will probably not work without 📌 Convert CacheTagsInvalidator to use a service collector Fixed (committed in 10.3).

Production build 0.71.5 2024