🇸🇮Slovenia @KlemenDEV

Account created on 7 October 2016, over 7 years ago
#

Recent comments

🇸🇮Slovenia KlemenDEV

As this issue is still stalling, does anyone have a patch for 10.3 at hand, otherwise I can try to prepare one later?

🇸🇮Slovenia KlemenDEV

Is this needs work, or needs review?

The last patch seems to fix the ajax part of the problem I had

🇸🇮Slovenia KlemenDEV

What would that translate to in the UI selection? Thanks for help!

🇸🇮Slovenia KlemenDEV

What is the default caching strategy on a fresh install for the default search view? (to know what to revert to)

🇸🇮Slovenia KlemenDEV

I have scanned the whole codebase with an automated script for any whitespace or new lines before <?php, but found none, however, I still experience AJAX problems such as modals not working. Is there something else I should also scan for?

🇸🇮Slovenia KlemenDEV

It seems multiple modules as well as the core itself were affected by some change in 10.2 that caused this. This issue prevents many websites from updating to 10.2, while 10.1 EOL is getting closer and closer (17. 6. 2024)

🇸🇮Slovenia KlemenDEV

I would be happy to help further if I understood the details of this, but this issue is probably preventing many websites from updating to 10.2

🇸🇮Slovenia KlemenDEV

You have linked to this same page where there is no #35 comment

🇸🇮Slovenia KlemenDEV

My issue is the JS error, but not style.

My issue is both in JS error (due to missing style) and missing style

🇸🇮Slovenia KlemenDEV

I think this issue should be reduced to the original case of responsive images not working in rewritten fields and a new ticket should be open for other HTML tags needed.

🇸🇮Slovenia KlemenDEV

I think the issue is deeper as this patch only fixes the consequence, but not the reason why styles are not properly passed to AJAX dialogs/popups

🇸🇮Slovenia KlemenDEV

Additional findings show that https://www.drupal.org/project/drupal/issues/3414753 🐛 Drupal ajax error after D10 update from version 10.0.11 to 10.2.1 Needs review does not fix this issue

🇸🇮Slovenia KlemenDEV

Ok so in my tests, https://www.drupal.org/project/ajax_comments/issues/3412943 🐛 Delete comment modal dialog broken with Drupal 10.2.x Active is partially (see my comment at https://www.drupal.org/project/drupal/issues/3409505#comment-15461560 🐛 Uncaught TypeError: Cannot read properties of null (reading 'style') (toolbar.js) Needs work ) fixed by https://www.drupal.org/project/drupal/issues/3409505 🐛 Uncaught TypeError: Cannot read properties of null (reading 'style') (toolbar.js) Needs work , but not fixed at all by #16 from this issue.

🇸🇮Slovenia KlemenDEV

I have reported some findings at https://www.drupal.org/project/drupal/issues/3409505#comment-15461560 🐛 Uncaught TypeError: Cannot read properties of null (reading 'style') (toolbar.js) Needs work

🇸🇮Slovenia KlemenDEV

I can confirm patch #2 fixes https://www.drupal.org/project/ajax_comments/issues/3412943 🐛 Delete comment modal dialog broken with Drupal 10.2.x Active , however, the look (CSS styling) of the popup dialog is still broken

🇸🇮Slovenia KlemenDEV

Probably also related to https://www.drupal.org/project/drupal/issues/3409505 🐛 Uncaught TypeError: Cannot read properties of null (reading 'style') (toolbar.js) Needs work

🇸🇮Slovenia KlemenDEV

I will try to test if this is the case for this issue too when I get some time: https://www.drupal.org/project/ajax_comments/issues/3412943 🐛 Delete comment modal dialog broken with Drupal 10.2.x Active

It is also custom link dialog + bootstrap theme + css + js

🇸🇮Slovenia KlemenDEV

MR got some confirmations at https://www.drupal.org/project/clamav/issues/3058018 🐛 Use of Max Resolution on Image Field causes ClamAV Timeout in Deamon mode Needs review too, so I believe the MR fixes the problem.

Will this be merged in 11.x only or will 10.1/10.2 get a backport of this?

🇸🇮Slovenia KlemenDEV

I can now confirm RTBC based on 2-week running experiment on one of the sites, LGTM

🇸🇮Slovenia KlemenDEV

I am currently lost what to take for the next step in debugging this, but would be happy to help if anyone has any suggestions for the next steps to take

🇸🇮Slovenia KlemenDEV

Could this be duplicate of https://www.drupal.org/project/ajax_comments/issues/2896916 🐛 Ajax not working when using non-default view mode. Needs review ?

🇸🇮Slovenia KlemenDEV

This is happening again, now when I updated from Drupal 10.1.x to 10.2.x

🇸🇮Slovenia KlemenDEV

#3410303: FilterHtml data loss when iframe and/or textarea is allowed indeed fixes this issue

🇸🇮Slovenia KlemenDEV

Could any maintainer merge this into a release? This issue could be preventing people from updating to 10.2.x unless they opt to use a patch

🇸🇮Slovenia KlemenDEV

Ok I have used a wrong term. I mean data loss on render, not in the database. Sorry for the confusion.

I will spin up local instance of our system and try it out and report back

🇸🇮Slovenia KlemenDEV

Could be, I am also using iframe as the HTML tag allowed, alongside some div tags with custom classes

🇸🇮Slovenia KlemenDEV

I can confirm the MR fixes the bug for our websites and does not seem to introduce any additional regressions.

🇸🇮Slovenia KlemenDEV

In further tests, it seems this only happens if one defines HTML tags that already exist or variations of them with custom attributes or attribute values allowed. If a tag added here is a tag that is not added by any other plugin, it seems to work fine.

🇸🇮Slovenia KlemenDEV

If one references MR directly (e.g. https://git.drupalcode.org/project/drupal/-/merge_requests/5877/diffs.patch), additional MR pushes will reflect in the patch file on the link too. Technically, someone could push malicious code and when updating with the composer, those changes would be picked up.

On drupal.org, uploaded patches can't be altered, so once validated by the user using it, they can be sure the contents of the file on the link will not change.

I can't find the original page where this was mentioned, but here is a similar discussion: https://github.com/cweagans/composer-patches/issues/347

🇸🇮Slovenia KlemenDEV

Thanks @O'Briat! Since it is advised to use patches from drupal.org and not from drupalcode.org, I am attaching a patch file for the ones needing this on 10.2.x and want to use the patch made from the MR

🇸🇮Slovenia KlemenDEV

Ok another attempt, this time only modifying legacy test and not FileImageDimensionsConstraintValidatorTest

🇸🇮Slovenia KlemenDEV

I have attempted to make a patch for 10.2.x myself. Feel free to use the patch for the merge request as making one myself is outside my knowledge of Drupal's Git system currently.

🇸🇮Slovenia KlemenDEV

Can confirm #49 still applies to D10.2 and fixes the original issue of this ticket before it branched to fixing more than just that:

Xss::filterAdmin() is currently stripping out the picture & source html elements that are part of the Core module Responsive Image. $adminTags sets the elements that are whitelisted and would need to be updated.

I hope this issue will be merged into the core soon as without this fix, responsive images can't be used in the views rewrite filter at all.

🇸🇮Slovenia KlemenDEV

Could someone merge this with 10.2.0, so the patch can be used on Drupal 10.2.0 websites? Thanks!

🇸🇮Slovenia KlemenDEV

Doing tests with my patch for 1.10.x from comment #42, I can confirm it fixes the problem and works fine for me

🇸🇮Slovenia KlemenDEV

I can confirm applying patch from #3292350 fixes this issue too

🇸🇮Slovenia KlemenDEV

Ok, so I have figured out how to make a patch from the MR. I am attaching a patch for 10.1.x in case someone needs it.

🇸🇮Slovenia KlemenDEV

Turns out it was apparmor issue on Ubuntu. Adding Drupal files folder to AppArmor read permission for clamav fixed this.

I will leave issue open if someone wants to add some logging (if this is technically doable) to this module to not just silently fail in those cases

🇸🇮Slovenia KlemenDEV

Is this related to https://www.drupal.org/project/drupal/issues/2833968 Upload progress using jQuery.form plugin instead of 3rd party PHP libraries Needs work ?

🇸🇮Slovenia KlemenDEV

Is this related to https://www.drupal.org/project/drupal/issues/1561866 📌 Add support for built-in PHP session upload progress Needs work ?

🇸🇮Slovenia KlemenDEV

Related: https://www.drupal.org/project/views_distinct/issues/3384098 Drupal 10 Compatability Active

🇸🇮Slovenia KlemenDEV

I think this is indeed a file permissions issue as the daemon can't access the files.

It may be good to log some error when this happens

🇸🇮Slovenia KlemenDEV

Hi, thanks for the suggestion. I will verify this asap

🇸🇮Slovenia KlemenDEV

Ok tested with 2.0.2, same problem. Nothing is logged in the logs, the status page detects ClamAV correctly, though.

Code still seems to hang at $response = trim(fgets($scanner_handler));

🇸🇮Slovenia KlemenDEV

I've had this happen with 2.0.2-rc1. Did you change anything else that made it work?

🇸🇮Slovenia KlemenDEV

Thank you for the release!

🇸🇮Slovenia KlemenDEV

Possible duplicate/related to https://www.drupal.org/project/advagg/issues/3308099 📌 Document which parts of the module are still relevant after aggregation changes in 10.1.0 Needs review . Seems at the time of writing advagg is not suitable for use with Drupal 10.1.x+. We are waiting for maintainers to make a plan forward with this module, but for now it may be better to use core aggregation and compression features

🇸🇮Slovenia KlemenDEV

Possible duplicate/related to https://www.drupal.org/project/advagg/issues/3308099 📌 Document which parts of the module are still relevant after aggregation changes in 10.1.0 Needs review . Seems at the time of writing advagg is not suitable for use with Drupal 10.1.x+. We are waiting for maintainers to make a plan forward with this module, but for now it may be better to use core aggregation and compression features

🇸🇮Slovenia KlemenDEV

Any new findings? Or a way to get this working/workaround?

🇸🇮Slovenia KlemenDEV

Just wanted to confirm that I have been using dev version for a while now and all looks good :)

🇸🇮Slovenia KlemenDEV

I have tested the patch from #60 (#68) on copies of some of our websites and it seems to work correctly. Hoping the remaining issues get fixed and this gets into 10.1.x. Forum functionality works and I did not notice anything problematic logged.

As this is holding back the update of many of the websites, could someone with more knowledge on this confirm whether we can use 10.1.x without this patch applied and ignore the status page error, or are there other consequences?

🇸🇮Slovenia KlemenDEV

To clarify on #25, bundler does not work if advagg is disabled, meaning all advagg logic will need to run in order to use bundler right now

🇸🇮Slovenia KlemenDEV

Given #60, is this needs review, or still needs work?

🇸🇮Slovenia KlemenDEV

There is the ADVAGG bunder module where one can set a number of files it is aggregated to, meaning one can set it to eg. 15 files which is good trade-off for HTTP2. I think something similar in core would be very beneficial.

🇸🇮Slovenia KlemenDEV

Thanks for the info @prudloff. I guess bundler could then be its own module in the future.

Btw is there any new progress on the plans for the advagg as a whole?

🇸🇮Slovenia KlemenDEV

I can confirm again #8 works fine on multiple production sites and this issue seems RTBC and for release

🇸🇮Slovenia KlemenDEV

I can confirm again #17 works fine on multiple production sites and this issue seems RTBC and for release

🇸🇮Slovenia KlemenDEV

Is there any workaround that we can use until this gets fixed in the core? This issue is holding back us from updating to Drupal 10.1

🇸🇮Slovenia KlemenDEV

Thanks for the tests @prudloff. So bundler seems to work even if "Enable advanced aggregation" is not enabled?

🇸🇮Slovenia KlemenDEV

Are you testing as that role on a comment that has been created less than 60 seconds ago?

Yes, it is done in 60 seconds timeframe. The testing also goes well if the module version is reverted (same config and same test procedure).

🇸🇮Slovenia KlemenDEV

Attached is the content type config.

Authenticated user has the following permissions (I can't screenshot this page due to confidentiality):

* "Content: Allow (content type) Comments hard delete"
* "Delete own comments"

Production build 0.69.0 2024