- Issue created by @diamondsea
- 🇺🇸United States diamondsea
Patch file adding the requirement to the image module (where image styles are managed).
- last update
over 1 year ago Custom Commands Failed - Status changed to Needs work
over 1 year ago 2:56pm 8 June 2023 - 🇺🇸United States diamondsea
If I am understanding things correctly, in /core/modules/system/system.install:109 it says:
// If the Apache rewrite module is not enabled, Apache version must be >= // 2.2.16 because of the FallbackResource directive in the root .htaccess // file. Since the Apache version reported by the server is dependent on the // ServerTokens setting in httpd.conf, we may not be able to determine if a // given config is valid. Thus we are unable to use version_compare() as we // need have three possible outcomes: the version of Apache is greater than // 2.2.16, is less than 2.2.16, or cannot be determined accurately. In the // first case, we encourage the use of mod_rewrite; in the second case, we // raise an error regarding the minimum Apache version; in the third case, // we raise a warning that the current version of Apache may not be // supported.
However, due to security issues from SA-CORE-2013-003 → the ability to have the FallbackResource directive function in the sites/all/files/ directory was disabled, resulting in image styles not being correctly rendered without mod_rewrite.
As a result, the requirements might be better updated in this section of code.
Thoughts?
- last update
over 1 year ago 30,338 pass - Status changed to Needs review
over 1 year ago 12:39pm 15 June 2023 - Status changed to Needs work
over 1 year ago 4:27pm 15 June 2023 - 🇺🇸United States smustgrave
Think we will need test coverage for this also.
- Status changed to Needs review
over 1 year ago 12:21pm 26 September 2023 - last update
over 1 year ago 30,341 pass, 2 fail - 🇮🇳India atul4drupal
Bumped version to latest.
Added patch with tests.Kindly review and suggest.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,364 pass The last submitted patch, 8: 3365639-8.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 1:26pm 26 September 2023 - 🇺🇸United States smustgrave
Instead of adding to the dictionary think the text can be updated differently.
- 🇮🇳India atul4drupal
Thanks @smustgrave this was what I thought initially, but isnt the cspell should also respect the corectly spelled words... in this case it was "redirections", just wondering.
- Status changed to Needs review
about 1 year ago 8:05am 6 November 2023 - last update
about 1 year ago 30,487 pass - Status changed to RTBC
about 1 year ago 5:18pm 6 November 2023 - last update
about 1 year ago Patch Failed to Apply - Status changed to Needs review
about 1 year ago 7:13pm 7 November 2023 - 🇸🇰Slovakia poker10
I am not sure about the placement of this requirements check. Currently it is in the image module, which can be uninstalled.
https://www.drupal.org/docs/getting-started/system-requirements/web-serv... →
The Apache 'mod_rewrite' extension is required. It is used for clean URLs.
According to the docs, this seems like a hard requirement, so I am curious if it would not be better to add it to the system module?
We also probably want to deal with the existing check in the system.install, in case we will add this check:
// If the Apache rewrite module is not enabled, Apache version must be >= ....
See: https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/syste...
- 🇺🇸United States smustgrave
Based on that description (The Apache 'mod_rewrite' extension is required. It is used for clean URLs.) does sound like system is the better spot. Will leave in review for consensus.
- Status changed to Needs work
about 1 year ago 2:17pm 8 November 2023