Closed (won't fix)
Project:
Drupal core
Version:
10.0.x-dev
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Oct 2019 at 10:40 UTC
Updated:
25 Sep 2022 at 16:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
leontin commentedThis is a temporary patch.
I still get warnings:
Warning: mb_strlen() expects parameter 1 to be string, array given in Drupal\Core\Form\FormValidator->performRequiredValidation() (line 333 of core/lib/Drupal/Core/Form/FormValidator.php).
Comment #4
leontin commentedPatch for 8.8.x
Comment #5
naresh_bavaskar@leontin I have fixed the Warning: "mb_strlen() expects parameter 1 to be string"
Please review
Comment #6
hardik_patel_12 commentedComment #7
hardik_patel_12 commentedjust 1 thing @naresh_bavaskar we are checking parameter 1 to be string for mb_strlen() so instead of checking with (!is_array) please use (is_string) function.
Comment #8
hardik_patel_12 commentedComment #9
naresh_bavaskar@hardik_patel
ok, let me check and update the patch.
Comment #10
naresh_bavaskarUpdated the patch with changes per above comment.
Comment #12
hardik_patel_12 commentedI think $elements['#value'] is not alway string , @naresh_bavaskar as you have written condition in #5 is working properly for $elements['#value'].
Kindly re-apply that.
Comment #13
naresh_bavaskarfixed the above testing fails errors.
please review
Comment #14
naresh_bavaskarComment #15
hardik_patel_12 commentedPatch is looking good to me and it is working properly.
Comment #16
alexpottThis change would need test coverage if it is necessary.
I'm not sure that we expect incomplete forms to be posted via curl to Drupal. This is not API. Why should we fix this?
Comment #20
leontin commentedComment #22
quietone commentedIn #16 alexpott asked
There has been no response to that in 2 years 4 months.
Since we need more information to move forward with this issue, I am changing the status at Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Also, I tests on Drupal 10 and using
curl -X POST --form form_id=user_pass http://test.local/user/password?name%5B0%5D=""the error is now. The change is most likely due to #1521996: Password reset form reveals whether an email or username is in use.
Comment #23
cilefen commented