Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 Jan 2019 at 09:07 UTC
Updated:
11 Apr 2019 at 10:19 UTC
Jump to comment: Most recent
Comments
Comment #2
a.boutakaoua commentedComment #3
saesa commentedComment #4
avpadernoThank you for your contribution!
PAReview seems to have issues, at the moment, so I cannot add the PAReview checklist link as I would normally do.
Next, the reviewers will check the project code, and report here what needs to be changed.
Comment #5
avpadernoWhy isn't the code directly put in the service method?
db_change_varchar_field()is the wrong function name, for a module whose machine name is entity_title_length.The module should also implement
hook_entity_base_field_info_alter(). Without that, the node title field would always report a wrong value for its length (since it's not read from the database).The validation handler doesn't correctly validate the title length, as it would accept negative numbers, 0, and values that are too high for the database engine. For example, in MySQL 5.0.2 (and earlier versions) a VARCHAR field cannot have more than 255 characters, while in MySQL 5.0.3 and later versions, it can have up to 65,535 characters. Other database engines could have other limits the module is not applying.
Comment #6
a.boutakaoua commentedThank you for your reports;
We will see those modifications ASAP.
Comment #7
avpadernoPAReview is working again.
Comment #8
a.boutakaoua commentedHello,
Would you check again,
Thanks,
Comment #9
a.boutakaoua commentedComment #10
klausiLooks good to me! Any reason why you only support the node entity type? Config schema is missing for your entity_title_length.config.
An automated phpunit test would be nice to ensure this works as designed. All minor things, no blockers.
Comment #11
a.boutakaoua commentedWe think to support the other entities in the next releases,
Thanks, for your comment.
Comment #12
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.