Currently, a REQUIREMENT_WARNING raised during an interactive install causes the same message text to appear as a REQUIREMENT_ERROR (namely, "Check the messages and try again"), except that in the latter case, "try again" means to re-attempt the checks, while in the former, it means to bypass the checks altogether.
The attached patch disambiguates what will happen by creating a very clear difference in the system's output for the two cases, including two separate links in the warning case, one for each of the desirable actions: either repeat the tests, or ignore the warning and continue.
To reproduce: raise a REQUIREMENT_WARNING in install.php. Offhand, it looks like not having full Unicode support might do it, but I was doing it by just injecting a failure manually.
| Task | Novice task? | Contributor instructions | Complete? | |
|---|---|---|---|---|
| Create a patch | Instructions | Yes | ||
| Reroll the patch if it no longer applies. | Novice | Instructions | Update the issue summary | Instructions |
| Add automated tests | Instructions | |||
| Manually test the patch | Novice | Instructions | ||
| Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards | Instructions |
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | drupal-improve_installer-2240021-12.patch | 1.46 KB | swarad07 |
| #7 | drupal-improve_installer-2240021-7.patch | 1.46 KB | pingwin4eg |
| #4 | installer-2240021-4.patch | 1.58 KB | quartsize |
| installer-BMDan-20140413-01.patch | 1.57 KB | BMDan |
Comments
Comment #1
BMDan commentedComment #2
BMDan commentedComment #3
quartsize commentedInvestigating...
One can also simulate a
REQUIREMENT_WARNINGby addingmb_strlentodisable_functionsinphp.ini.Comment #4
quartsize commentedelseon new line).Comment #5
alexpott@quartsize thanks for working on this. It would be great to add an interdiff to prove the differences between your patch and BMDan's. For instructions on creating an interdiff, see https://drupal.org/documentation/git/interdiff | Microbranching workflow: http://xjm.drupalgardens.com/blog/interdiffs-how-make-them-and-why-they-...
Comment #7
pingwin4egHere's the D7 patch.
Comment #9
ashishdalviPatch failed in bot testing. But it have passed all the testcases.
Adding path for Re-Testing.
Comment #11
swarad07Comment #12
swarad07No idea why the patch is failing. Uploading again.
Comment #15
stefan.r commentedComment #16
hesnvabr commentedI applied this patch.It passed all the testcases
Comment #17
hesnvabr commentedComment #18
hesnvabr commentedComment #19
panshulk commentedComment #20
panshulk commentedComment #21
stefan.r commentedThanks -- can we have some screenshots on what this looks like in D7 (with the patch applied) versus D8, in both the "problem" and "review" cases?