There is theoretically no need to patch that file, if you enter this line in the HTTP-Header textarea under Stage File proxy Settings in the UI then it has the same effect:
User-Agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36
Or did you try this and it failed for you?
I still have this problem with 2.1.4, it is unclear to me if I can do anything about it or not, but here is the error:
Stage File Proxy encountered an error when retrieving file https://www.***.***/sites/default/files/styles/large/public/2024-02/myfi.... Client error: `GET https://www.***.***/sites/default/files/styles/large/public/2024-02/myfi...` resulted in a `404 Not Found` response:
The GET request misses the .png extension of the file.
It may have broken VBO functionality by keeping the "Apply to selected items" button in a disabled state even after clicking one or more checkboxes in the user list. Maybe it's related to this VBO bug: https://www.drupal.org/project/views_bulk_operations/issues/3348910 🐛 Views bulk edit broken (even) with hidden VBO field Active ?
Patch #4 works for us in Drupal 10.2.3 and VBO 4.2.6, thank you!
Good news: the related issue is reviewed & tested by the community already.
@jcmartinez I also work on an Open Social project and I have found one place, where the aforementioned patch could be applied, it's in social_group module in GroupMuteNotify.php file at line 54, so the fix there should theoretically look the same like in message_subscribe module:
$flaggings = $this->flagService->getAllEntityFlaggings($group, $account, \Drupal::request()->getSession()->getId());
I will try to reproduce the error and then test this fix, but if you get to it sooner then let us know please how it went. :)
I tried patch #67 with version 1.1 and private images fail to download from origin server. Since there is no patch for version 2, is there any other approach to make private files work?