Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2016 at 18:24 UTC
Updated:
13 Oct 2017 at 11:45 UTC
Jump to comment: Most recent
Comments
Comment #2
bfry commentedComment #3
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
sourabh.singhal commentedHi bfry,
I have installed this module and have done some manual code review and found some code which need to be fix.
Other code looks good.
Thanks
Sourdrup
Comment #5
klausi@sourdrup: those are good tips but surely not application blockers. Anything else that you found or should this be RTBC instead?
Comment #6
bfry commentedThanks for taking a look at the module @sourdrup and @klausi. I have fixed the naming of the variable in the install to match what is used in the .module code. I'm going to take a look at using a Theme function or a template file instead of the table.
Comment #7
bfry commentedThe table output has been converted to use the Theme function and this project should be ready for review & testing by the community.
Comment #8
johnpitcairn commentedAutomated Review
No issues found. https://pareview.sh/node/485
Manual Review
db_query()to retrieve nodes may allow the user to view information about webform nodes that they do have permission to access.db_select()should be used to retrieve webform nodes, with->addTag('node_access')added so that node access modules can modify the query.hook_help()implementation, instead of the short description that is currently there.hook_menu()should use appropriate capitalization.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 #9
johnpitcairn commentedIf the intent is that the "administer webform purges" permission should override the webform node and submission access permissions, then this should be flagged as a trusted admin permission via the "restrict access" key in hook_permission(). That would fix the security concerns.
Comment #10
bfry commentedThanks for the feedback on the security, style and API usage issues. I have addressed all 7 items and choose to check the permissions of the webform node and submissions. Please let me know if I missed anything.
One lingering question I have is: Is it better to include the configuration settings in the 'Content Authoring' administration group or leave it in it's own group?
Comment #11
jfurnas commentedI downloaded this and tested it out, and it appears to work as intended. I would say this is at a release candidate state and should be ready to go.
Comment #12
jfurnas commentedComment #13
poojasharmaece commentedModule looks good and working fine.
Please use curly brackets for table name in sql queries, because code will break if site is installed with table_prefix :
$query = db_query('SELECT MIN(webform_submissions.submitted) as oldest_date FROM webform_submissions WHERE webform_submissions.nid = :nid', array(':nid' => $webform->nid));$query = db_query("SELECT `timestamp` FROM watchdog WHERE `type` = 'cron' ORDER BY `timestamp` DESC LIMIT 1");Comment #14
bfry commentedThanks @poojasharmaece, I have added curly braces to the sql queries.
Comment #15
jfurnas commentedLooks great! Thanks for your contribution!
Comment #16
jfurnas commentedComment #17
visabhishek commentedThanks for your contribution, Bernie Fry!
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 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 #18
visabhishek commentedAssigning Credit.