Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 Oct 2022 at 08:09 UTC
Updated:
28 Nov 2022 at 20:39 UTC
Jump to comment: Most recent
Comments
Comment #2
avpadernoComment #3
avpadernoThank you for applying! Reviewers will review the project files, describing what needs to be changed.
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smother review.
To reviewers: Please read How to review security advisory coverage applications, What to cover in an application review, and Drupal.org security advisory coverage application workflow.
Since the project is being used for this application, for the time this application is open, only the user who created the application can commit code.
Comment #4
avpaderno8.x-1.2 is a wrong branch name, but a correct tag name. master isn't a branch name used in Drupal.org repositories.
Those branches need to be removed.
Comment #5
avpadernoComment #6
akshay.singh commentedHi apaderno,
As suggested I have deleted all other branches and have set default branch to 2.0.x
Comment #7
avpadernoThe
$messageparameter passed to theLoggerInterfacemethods must be a literal string, not a variable.For exceptions, the function used to log them should be
watchdog_exception(); alternatively, code similar to that should be used.The
FormBaseclass already implements that interface.The base class uses traits to handle the messenger service and the logger service. There is no need to use a property for them; it's sufficient to call
setMessenger()andsetLoggerFactory()and use theFormBasemethods to get those services back.Strings shown in the user interface needs to be translated.
Drupal core already uses a CSS class for errors; it should not be the validation handler to add them.
Deleting the configuration values used by modules is already done from Drupal core when modules are uninstalled. There is no need to do that.
Comment #8
akshay.singh commentedthanks for the review, I have done the proposed changes https://git.drupalcode.org/project/email_octopus/-/commit/dfc85fe4c45d29d710179068387d151becd6e5a6 and not sure with the
setMessenger()andsetLoggerFactory()changes. Please checkComment #9
avpadernoThe class constructor calls
setMessenger()andsetLoggerFactory()passing the services it gets as arguments. When a class method needs those services, it callsmessenger()andgetLogger(), which are methods added to theFormBaseclass from traits it uses.The first argument of
$this->t()must be a literal string. It cannot be a variable, and it's a possible security issue, to pass values entered by users directly to$this->t(). Those "dynamic values" can be placed in a translatable string with placeholders, but in this case the full markup must be passed as first argument to$this->t(). The example code shown inFormattableMarkup::placeholderFormat()makes clearer what I mean.Comment #10
akshay.singh commentedthanks for suggesting the same, all changes are done now
https://git.drupalcode.org/project/email_octopus/-/commit/a22fd311adc80ace0be2d3c3fec1e5dadecbb13e
Comment #11
avpadernoThe commits have been done in the wrong branch.
The correct branch is 2.0.x; 2.0.x-dev-3315315 is the wrong branch and it uses a wrong branch name, like 2.0.x-dev. Both those branches needs to be removed.
Comment #12
akshay.singh commentedmerged the branch changes and removed the other two branches.
Comment #13
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 Slack #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.
Comment #14
avpaderno