Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2021 at 14:24 UTC
Updated:
12 Sep 2022 at 11:09 UTC
Jump to comment: Most recent
Comments
Comment #2
-nrzr- commentedComment #3
jayelless commentedAutomated Review
Best practice issues identified by drupalcs.
FILE: ...james/drupal/drupal8/web/modules/custom/gsso/src/Form/GSSOSettingsForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
10 | WARNING | The class short comment should describe what the class does and
| | not simply repeat the class name
--------------------------------------------------------------------------------
FILE: ...ames/drupal/drupal8/web/modules/custom/gsso/src/SSOTypePluginInterface.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
10 | WARNING | The class short comment should describe what the class does and
| | not simply repeat the class name
--------------------------------------------------------------------------------
FILE: ...ome/james/drupal/drupal8/web/modules/custom/gsso/src/SSOTypePluginBase.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
10 | WARNING | The class short comment should describe what the class does and
| | not simply repeat the class name
--------------------------------------------------------------------------------
FILE: /home/james/drupal/drupal8/web/modules/custom/gsso/src/Services/GSSO.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
--------------------------------------------------------------------------------
9 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be
| | referenced with use statements
15 | WARNING | [ ] The class short comment should describe what the class
| | does and not simply repeat the class name
155 | ERROR | [ ] Unnecessarily gendered language in a comment
202 | ERROR | [ ] Unnecessarily gendered language in a comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Manual Review
</ul>tag is missing.The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #4
avpadernoComment #5
jayelless commented@-nrzr- Please ignore my comment about the git url. I have found that the d.o site was previously providing a standard git url of
, but now appears to provide a url of the form
.
Comment #6
avpadernoDrupal.org repository URL is always https://git.drupalcode.org/project/[project-name].git. It doesn't seem drupalproject.org is a domain registered for Drupal.org sites.
Comment #7
jayelless commentedMy mistake. The second example url should have been
The colon separator now appears to be the standard.
Comment #8
avpadernoWhen I run
git clone https://git.drupalcode.org:project/drupal.gitorgit clone https://git.drupalcode.org:project/drupal, I get fatal: unable to access 'https://git.drupalcode.org:project/drupal.git/': URL using bad/illegal format or missing URL in the first case, and fatal: unable to access 'https://git.drupalcode.org:project/drupal/': URL using bad/illegal format or missing URL in the second case.Only
git clone https://git.drupalcode.org/project/drupal(with a warning about a redirect to https://git.drupalcode.org/project/drupal.git) andgit clone https://git.drupalcode.org/project/drupal.gitwork.Comment #9
jayelless commentedI think I understand the issue here.
When you look at the version control tab for a project you own (or have maintenance rights over) then the git clone url contains a colon (":") separator. However, looking at this tab for other projects gives a url with a slash ("/") separator.
I am not sure of the reason for this - maybe someone from the D.O support team can advise?
Comment #10
avpadernoFor maintainers, the command to clone a repository is
git clone git@git.drupal.org:project/<project_name>.git. The repository URL isgit@git.drupal.org:project/<project_name>.git, nothttps://git.drupalcode.org:project/<project_name>.git.Comment #11
-nrzr- commentedComment #12
jayelless commented@-nrzr-: I note that there have not been any changes to the module since it was originally reviewed, so the issues listed there, except for the comment about the git url still apply.
To clarify, the point 1 under "Coding style & Drupal API usage" should state that the "</ul>" closing tag is missing from the markup returned from hook_help().
It would be good for you to correct the issues identified.
Cheers.
Comment #13
avpadernoThe name of an abstract class doesn't start with Abstract. Following the Drupal coding standards, the correct name would be GssoSettingsForm.
The documentation comment for the class should say something more than Class GSSOSettingsForm. as that information is already given from the class code.
A class that extends
ConfigFormBaseshould use code similar to the following one. The difference is in the injected dependencies.$this->config(static::SETTINGS)returns an editable configuration object. There is no need to use the configuration factory.It's not a security issue, nor a wrong use of Drupal API, but the method is expecting an account object that isn't null. A null account object would mean no task to be done, but also a Fatal error: Uncaught Error: Call to a member function on null error.
The documentation comment for the class constructor is never
{@inheritdoc}.The Group module isn't a Drupal core module. The correct namespace for that module is group:group.
Drupal core modules don't remove their configuration values when they are uninstalled. I take that is done from Drupal core when the module is uninstalled.
Comment #14
avpadernoComment #15
avpadernoI am closing this application, since there haven't been replies in more than eight months and the application was open more than twelve months ago.
Feel free to re-open it, once the project has been changed basing on what reported in the last review.