Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Oct 2015 at 08:18 UTC
Updated:
28 Aug 2016 at 14:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
andrey.troeglazov commentedComment #3
andrey.troeglazov commentedComment #4
andrey.troeglazov commentedComment #5
cherebedov.s commentedHi.
In function pdfer_help please use only one return operator.
like this.
Thanks.
Comment #6
cherebedov.s commentedComment #7
andrey.troeglazov commentedHello, fixed.
Comment #8
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxandreytroeglazov25795...
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9
andrey.troeglazov commentedEverything is ok. http://pareview.sh/pareview/httpgitdrupalorgsandboxandreytroeglazov25795...
Comment #10
IRuslan commentedList of my remarks:
Comment #11
andrey.troeglazov commentedHello, all your notices were fixed. Thanks for your review.
Comment #12
andrew.mikhailov commentedHello!
For me everything is ok)
Good job.
Comment #13
minnur commentedHi There,
There are few things that needs to be fixed:
pdfer.admin.php
-
$header = array('Template ID', 'Language', 'Description', 'Operations');- Make sure those headers titles are translatable. Uset()function.pdfer.module
- Please add logic that would nicely display an error message if the
WkHtmlToPdflibrary is missing. Consider using Libraries API module.Thanks!
Comment #14
andrey.troeglazov commented@minnur, Hello, thanks for your review, first point was fixed, about second point - pdfer has dependency on phpwkhtmltopdf module and this module has dependency on wkhtmltopdf library, hook_requirements. Thanks.
Comment #15
imyaro commentedI think there will be better to use something like a
and rename function pdfer_load_existing_template_by_template_id() to pdfer_load() to increase usability of this module for developers.
Also I think there could be few hooks.
But module is looking good, I hope you will improve it during upcoming development.
Comment #16
andrey.troeglazov commentedCan smn check it, please?
Comment #17
klausiRemoving review bonus tag, you have not done all manual reviews, you just pointed out coding standards docs. Make sure to read through the source code of the other projects, as requested on the review bonus page.
Comment #18
andrey.troeglazov commentedComment #19
klausiGit errors:
manual review:
There is a security vulnerability in this module and as part of our git admin training I'm assigning this to th_tushar so that he can take a look. If he does not find anything I'm going to reveal the vulnerability details in one week. And please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #20
th_tushar commentedAutomated Review
[Best practice issues identified by pareview.sh / drupalcs / coder. Please don't copy/paste all of the results unless they are short. If there are a lot, then post a link to the automated review and mention that problems should be addressed.]
Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.
Manual Review
* Not able to download the Test Download pdf. The path 'admin/config/content/pdf-settings/%/test-download' is not working.
* Use 'id' field from database instead of user entered value for simple wildcard (%) in 'admin/config/content/pdf-settings/%/test-download'. It is expected to be auto-increment database field value and not a user entered value.
* /admin/config/content/pdf-settings is vulnerable to XSS exploits. If I enter
<script>alert('XSS');</script>as Template ID and Template description then I will get two nasty javascript popups on this page. You need to sanitize user provided text before printing, make sure to read https://www.drupal.org/node/28984.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 #21
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #22
andrey.troeglazov commentedHello,
@klausi, thanks for your review.
The case of the module is to have templates for different cases in business when you need to have many similar pdf files. It doesnt work on nodes or entities. Yes, I`ll provide full description on module page.
Ok, Thanks for the remark.
This one is fixed.
@th_tushar, thanks for your review.
For me it works ok. Mb you dont have wkhtmltopdf installed?
http://pix.toile-libre.org/upload/original/1465031158.png
http://pix.toile-libre.org/upload/original/1465031190.png
These two are fixed. Thanks.
Comment #23
andrey.troeglazov commentedComment #24
andrey.troeglazov commentedComment #25
andrey.troeglazov commentedComment #26
andrey.troeglazov commentedComment #27
klausiFixing tags.
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #28
andrey.troeglazov commented@klausi, Sorry, but why tag was removed? It was 3 new modules reviewed.
Comment #29
andrey.troeglazov commentedhttps://www.drupal.org/node/2750829#comment-11304463
https://www.drupal.org/node/2741785#comment-11304955
https://www.drupal.org/node/2746357#comment-11305081
Comment #30
andrey.troeglazov commentedHere is another 3 reviews. Please check it.
https://www.drupal.org/node/2748639#comment-11305433
https://www.drupal.org/node/2747701#comment-11305475
https://www.drupal.org/node/2750971#comment-11305515
Comment #31
andrey.troeglazov commentedComment #32
andrey.troeglazov commentedComment #33
andrey.troeglazov commentedComment #34
kapil.ropalekar commentedHello andrey.troeglazov,
My findings for your module as follows:
pdfer.admin.inc
Line 38: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms
$operations = $edit_link . '|' . $download_link . '|' . $review_as_html;Thank you,
Comment #35
andrey.troeglazov commentedHello, kapil.ropalekar,
thanks for the review. Yes there is one extra space, I`ll fix it, but I think it's not critical for now.
Regards.
Comment #36
ashwinshHello andrey.troeglazov
My findings for your module as follows:
File: pdfer\includes\pdfer.admin.inc
Line 38 : Concat operator must be surrounded by a single space
Line 54 : Expected 1 blank line after function; 2 found
File: pdfer\pdfer.module
Line 75 : Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
Line 97 : There must be exactly one blank line before the tags in a doc comment
Line 97 : Missing parameter type Parameter comment indentation must be 3 spaces,found 2 spaces
Line 100 : Parameter comment indentation must be 3 spaces,found 2 spaces
Line 102 : Type hint "null" missing for $path_to_save
Thank you,
Comment #37
klausiLooks like you forgot to add your additional reviews to the issue summary? Doing that now.
Git errors:
Review of the develop branch (commit c1b86c4):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
The wrong check_plain() usage and the permission restriction is a blocker right now.
Comment #38
andrey.troeglazov commentedComment #39
andrey.troeglazov commentedHello, @klausi,
thanks for your review!
I`ve fixed wrong check_plain() usage and the permission restriction, please check it.
Other points surely will be fixed after module release.
If you have other remarks, please, let me know!
Thanks!
Kind regards, A.T.
Comment #40
andrey.troeglazov commentedComment #41
klausiLooks good to me apart from the remaining points from #37 that are not application blockers.
Assigning to mpdonadio as he might have time to take a final look at this.
Comment #42
mpdonadioAutomated Review
Git errors:
Review of the 7.x-1.x branch (commit a63ab59):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Manual Review
Don't quite see why the htmlspecialchars_decode() is needed in pdfer_add_edit_template_form(), but since #default_value is sanitized, this isn't a problem.
Why the explicit redirect code in pdfer_add_edit_template_form_submit? Comment needed (or just get rid of it).
Not seething anything else that hasn't been mentioned, nor any blockers.
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 #43
mpdonadioThanks for your contribution, andrey.troeglazov!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on 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.