Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Mar 2020 at 08:39 UTC
Updated:
17 Jul 2020 at 10:49 UTC
Jump to comment: Most recent
Comments
Comment #2
ankush_03Fix pareview.sh issues :
Review of the 8.x-1.x branch (commit a5b06a3):
Coder Sniffer has found some issues with your code (please check the Drupal coding standards). See attachment.
This automated report was generated with PAReview.sh, your friendly project application review script.
FILE: ...pal/pareviewsh/pareview_temp/src/Access/MediaRevisionAccessCheck.php
--------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------
26 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
26 | ERROR | [x] Doc comment short description must end with a full stop
34 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
34 | ERROR | [x] Doc comment short description must end with a full stop
43 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
43 | ERROR | [x] Doc comment short description must end with a full stop
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...reviewsh/pareview_temp/tests/src/Functional/MediaRevisionsUiTest.php
--------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------
21 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
21 | ERROR | [x] Doc comment short description must end with a full stop
22 | ERROR | [ ] Missing @var tag in member variable comment
33 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
33 | ERROR | [x] Doc comment short description must end with a full stop
34 | ERROR | [ ] Missing @var tag in member variable comment
59 | ERROR | [ ] Doc comment short description must start with a capital
| | letter
59 | ERROR | [x] Doc comment short description must end with a full stop
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
Time: 2.61 secs; Memory: 6Mb
Reviewed on
03/09/2020 - 16:19
03/06/2020 - 23:23
03/06/2020 - 17:03
Powered by PAReview.sh, your friendly project application review script.
This service is hosted and
Comment #3
bcizej commentedThose errors appear due to
{@inheritDoc}which IMO is not an issue.Comment #4
ankush_03Same issues still exists check pareview link.
Comment #5
avpadernoThe line number 26 is the line containing
{@inheritDoc}. An error saying that a documentation comment must start with a capital letter or end with a period is wrong, as a documentation comment can just contain{@inheritDoc}. Those are false positives and there isn't anything benjamincizej needs to change.Comment #6
avpadernoProbably, the comment should contain
{@inheritdoc}, with a lowercase d, but I would not change the status just for that change.Comment #7
bcizej commentedThanks @kiamlaluno, I changed them to lowercase.
Comment #8
rksyraviHi @benjamincizej,
Thank you for contribution!!!
Below are some errors & warnings, you'll need to resolve as per Drupal Coding Standards.
Comment #9
bcizej commentedSetting this back to needs review as dev branch was updated. Also everything on the list in previous comment are false positives.
Comment #10
shaktikReview of the 8.x-1.x branch (commit a9d1b96): looks good to me no errors found.
Comment #11
klausiSetting this to "needs work" because it would be good to fix the delete/update access check so that we avoid any potential security issue.
Otherwise this looks ready!
Comment #12
avpadernoIMO, using the wrong permission which allows users to do an action they shouldn't do is a security issue in the same way as showing account sensitive information to users without first checking they have the permission to administer users, or checking they have the permission to change their own username.
Comment #13
bcizej commentedThanks for your input, proper permissions have been added in the latest commit on dev branch and ready for review.
Comment #14
klausiwhy do you need media_revisions_ui.services.yml? Drupal core 8.9.x already defines that access check in media.services.yml? Please add a code comment to your MediaRevisionAccessCheck class.
Otherwise looks good to me.
Thanks for your contribution, Benjamin!
I updated your account so you can opt into security advisory coverage now.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, 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.
Thanks to the dedicated reviewer(s) as well.
Comment #15
bcizej commentedClass is extended because the core media access check allows only view operation. Anyway the comment has been added to class and thank you for opt-in.