Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2023 at 12:57 UTC
Updated:
15 Aug 2025 at 23:32 UTC
Jump to comment: Most recent
Comments
Comment #2
shiks commentedComment #3
vishal.kadamThank you for applying!
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 smoother review.
The important notes are the following.
phpcs --standard=Drupal,DrupalPracticeon the project, which alone fixes most of what reviewers would report.To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #4
avpadernoFor these applications, we need a project where, in at least the branch used for the application, most of the commits (if not all the commits) have been done from the user who applies.
The purpose of these applications is reviewing a project to understand what the person who applies understands about writing secure code that follows the Drupal coding standards and correctly uses the Drupal API, not what all the project maintainers collectively understand about those points.
In this case, all the commits (five) have been done by sunil_lnwebworks.
This application can only continue with a project (and a branch) where all the commits (or the majority of the commits) have been done by you.
Comment #5
shiks commentedHello @apaderno
I have pushed the new things via my account. Could you please review once.
I have submitted new advance feature
Thank you
Comment #6
trigve hagen commentedCode looks good but I found these errors. You don't have a LICENSE.txt.
FILE: /var/www/html/global/web/modules/contrib/error_reporting/libraries/js/error_reporting.js
-------------------------------------------------------------------------------------------------
FOUND 27 ERRORS AFFECTING 12 LINES
-------------------------------------------------------------------------------------------------
2 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
13 | ERROR | [x] Expected 1 space before "<"; 0 found
13 | ERROR | [x] Expected 1 space after "<"; 0 found
13 | ERROR | [x] Expected 1 space before "="; 0 found
13 | ERROR | [x] Expected 1 space after "="; 0 found
13 | ERROR | [x] Expected 1 space before "-"; 0 found
13 | ERROR | [x] Expected 1 space after "-"; 0 found
13 | ERROR | [x] Expected 1 space before "="; 0 found
13 | ERROR | [x] Expected 1 space after "="; 0 found
13 | ERROR | [x] Expected 1 space before ">"; 0 found
13 | ERROR | [x] Expected 1 space after ">"; 0 found
13 | ERROR | [x] Expected 1 space before "<"; 0 found
13 | ERROR | [x] Expected 1 space after "<"; 0 found
13 | ERROR | [x] Expected 1 space before "/"; 0 found
13 | ERROR | [x] Expected 1 space after "/"; 0 found
13 | ERROR | [x] Expected 1 space before ">"; 0 found
13 | ERROR | [x] Expected 1 space after ">"; 0 found
73 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
75 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
79 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
84 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
88 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
97 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
105 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
113 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
118 | ERROR | [x] Whitespace found at end of line
119 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 27 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------
Time: 9.36 secs; Memory: 10MB
Comment #7
trigve hagen commentedNeeds Work
Comment #8
vishal.kadamIt is preferable to not use PHP_CodeSniffer for JavaScript files. It would try to apply PHP rules to JavaScript files, even when those are not correct; for example, it would report that
NULLmust be used, whilenull,true, andfalseare used in JavaScript code.Comment #9
shiks commentedI have fixed the Intendant issue in js file
Comment #10
rushikesh raval commentedI am changing the issue priority as per issue priorities.
Comment #11
avpadernoComment #12
solideogloria commentedThe code says that if error reporting is disabled that it lets Drupal handle the exception, but that's not what it actually does. In order to let Drupal handle it, this code would need to call Drupal's handler, right?
Comment #13
solideogloria commentedAlso, when the module is being uninstalled, you shouldn't need to update a config value, since the module's config is deleted when it is uninstalled.
Comment #14
solideogloria commentedThe twig template hardcodes CDN links to 3rd party libraries:
This is a bad way to do it (because the versions could be found to have a vulnerability later, but neither Drupal nor Composer will see the module is using an old version.) Use Drupal's library system instead, and include dependencies in a composer.json file (which the project doesn't currently have).
Similarly, the JS file error_reporting.js should use Drupal's JS behaviors system. For examples, you could look at the Paragraphs module: https://git.drupalcode.org/project/paragraphs/-/blob/8.x-1.x/js/paragrap...
Comment #15
vishal.kadamI am changing priority as per Issue priorities.
Comment #16
vishal.kadamThis thread has been idle, in the Needs work state with no activity for several months. Therefore, I am assuming that you are no longer pursuing this application, and I marked it as Closed (won't fix).
If this is incorrect, and you are still pursuing this application, then please feel free to re-open it and set the issue status to Needs work or Needs review, depending on the current status of your code.
Comment #17
avpadernoComment #18
avpadernoThis thread has been idle, in the Needs work state with no activity for more than eight months; the application has been created more than 11 months ago. Therefore, I marked it as Closed (won't fix).
If this is incorrect, and you are still pursuing this application, please feel free to re-open it and set the issue status to Needs work or Needs review, depending on the current status of your code.