Lille
Account created on 11 April 2019, over 5 years ago
#

Merge Requests

More

Recent comments

🇫🇷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).

🇫🇷France prudloff Lille

Not exactly the same as the requested feature, I am working on a module that keeps a daily view count history over a rolling period: https://www.drupal.org/project/statistics_rolling

🇫🇷France prudloff Lille

It should be possible to do this by decorating the statistics.storage.node service (which is called by statistics when recording a new view with AJAX).
You can find a similar example here: https://git.drupalcode.org/project/statistics_rolling/-/blob/1.x/src/Rol...

🇫🇷France prudloff Lille

It looks like this might have been fixed by this commit (I have not tested): https://git.drupalcode.org/project/facets/-/commit/fe9a8b545effc7712d06e...

🇫🇷France prudloff Lille

Thanks for the explanation, it makes sense.

🇫🇷France prudloff Lille

Is this still a problem for you?

🇫🇷France prudloff Lille

This module is now obsolete and is replaced by a similar block directly in the footnotes module (see All footnotes grouped in a block now available in Footnotes main module Needs review ).
If the new block has the same bug, you should open an issue there.

🇫🇷France prudloff Lille

drupal-quality-checker is not maintained anymore so we should probably remove it from require-dev and then we can remove the composer.lock file.

🇫🇷France prudloff Lille

I suppose you are talking about this vulnerability: https://github.com/advisories/GHSA-6hwr-6v2f-3m88
Websites using webform_xlsx_export should already be able to update to phpspreadsheet 2.3.
Furthermore, the module only writes spreadsheets and the vulnerability seems to only apply to reading them.

However, I agree it would be good practice to require a secure version of phpspreadsheet. I just think we should commit 📌 Stop versioning composer.lock Active first.
Upgrading to phpspreadsheet 3 might cause breaking changes and would require some testing, so I think this issue should focus on upgrading to 2.3 and I opened another issue about phpspreadsheet 3: Support phpspreadsheet 3 Active

🇫🇷France prudloff Lille

I removed Drupal 9/10 in core_version_requirement because I removed everything related to the editor.image_dialog route (which was removed in Drupal 11), but we might want to publish a transition release compatible with both Drupal 10 and Drupal 11 first.

🇫🇷France prudloff Lille

Since 1.8 is the "Last 1.x update", I suppose we will want to target the 2.x branch.

🇫🇷France prudloff Lille

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

🇫🇷France prudloff Lille

The Twig spaceless filter is deprecated: https://twig.symfony.com/doc/3.x/filters/spaceless.html

The spaceless filter is deprecated as of Twig 3.12. While not a full replacement, you can check the whitespace control features.

🇫🇷France prudloff Lille

Turns out there is no built-in way to encode/decode HTML entities in JS so you have to use a library like he.

So instead I reworked the fix to 🐛 XSS vulnerability in facet results Fixed so we don't have to encode HTML entities in drupalSettings.
It builds the HTML with DOM methods so XSS protection is handled by the DOM API.

🇫🇷France prudloff Lille

The default value does not need to be encoded because it is used safely.

🇫🇷France prudloff Lille

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

🇫🇷France prudloff Lille

I marked it as a draft because of this comment:

it might be cleaner to make Row::$emptyDestinationProperties a nested array and move the splitting logic to Row::setEmptyDestinationProperty()

🇫🇷France prudloff Lille

Turns out I was still not testing correctly. 🐛 XSS vulnerability in facet results Fixed does indeed fix this vulnerability, because it correctly escapes quotes.
Sorry about this.

🇫🇷France prudloff Lille

My bad, 🐛 XSS vulnerability in facet results Fixed fixes the easiest way to exploit this because it escapes > to &gt;. I thought I was testing the latest release and I was not...

However it is still possible to inject attributes so there still is something to fix.
I updated the summary to reflect this.

🇫🇷France prudloff Lille

The FileExists enum was added in Drupal 10.3, so we should probably change the requirement here.

🇫🇷France prudloff Lille

It is used in SleepyCronStatus::getCronToSleep().

Production build 0.71.5 2024