Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Nov 2015 at 11:45 UTC
Updated:
19 Feb 2016 at 05:25 UTC
Jump to comment: Most recent
Comments
Comment #2
tajinder.minhas commentedComment #3
tajinder.minhas commentedComment #4
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxtajinderminhas2605116git
We 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 #5
tajinder.minhas commentedChanges fixed for parereview - http://pareview.sh/pareview/httpgitdrupalorgsandboxtajinderminhas2605116git
2 issues are left which are for lowercameformat. Rest all are fixed.
Comment #6
tajinder.minhas commentedComment #7
rakesh.gectcrFirst please fix the issues on http://pareview.sh/pareview/httpgitdrupalorgsandboxtajinderminhas2605116git"
Comment #8
rakesh.gectcrManual Review:
Please add the @param and @return[only if there is return in the fucntion] to all the functions except hook implementations
See https://www.drupal.org/node/1354
In class CommerceProductQueueRelationship under function query the
$alias = $this->table;makes little ambiguous. Can you please add a little comment to such kind of statements in all over the module.Comment #9
klausi@rakesh.gectcr: the views method names cannot be changed, they are inherited from Views. More comments are always a good idea, but are surely not application blockers. Anything else that you found or should this be RTBC instead?
Comment #10
rakesh.gectcr@klausi,
Other than that nothing much, +1 RTBC
Comment #11
rashid_786 commentedAutomated Review
There are some minor issue found in automated review.
Manual Review
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.
It is recommended to review at least three modules to get the reviews bonus and keep your module top in priority.
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 #12
tajinder.minhas commented@rakesh.gectcr Thanks for the review. lowercamelformat I am not able to rectify, i checked some other contrib modules but there also they are not using lowercamelformat. even after lowercamelformat parereview was raising the same issue. So i have left it as it is. In whole module i have tried to comment on most of the places will surely try to provide more comments as per your suggestion, right now i think thats not an application blocker as mentioned by @klausi so will do as i go for more improvements.
@klausi Thanks for your comment and status change
@rashid_786 Thanks for the review. I have included hook_uninstall and I have updated README.md file with the one usecase where it can be used so that it will be more helpful for the user to understand module application. Regarding hook_help, I feel thats not an application blocker i checked commerce_coupon and there also hook_help is not implemented. I think it is an nice to have feature and will include with more improvements. Please let me know your inputs based on my recent changes
Comment #13
rakesh.gectcr@ tajinder.minhas
I will do review the new changes.
Mean time Can you please try to review another 3-5 project applications. And please update that comment links to issue summary of this.
https://groups.drupal.org/node/427683
Comment #14
joshi.rohit100Review :-
1. In D7, we don't need hook_uninstall() to remove module defined tables. It is automatically done during module un-installation. So I guess, there is no need to have hook_uninstall for just removing tables.
2. In commerce_product_queue_load, we are kind of doing 'select *' thing which is not good for performance perspective, just try to load only those things which are required.
3. If your title for a page is dynamic, then instead of setting it through drupal_set_title, try 'title callback'
4. I think commerce_product_queue_update_queue and commerce_product_queue_create_queue is redundant code as not being used anywhere.
5. There is no validation to check whether product already added or not while adding to the queue.
6. I guess $form_state is passed by reference.
7. 'Default label for relationship' I guess this needs some updation.
Comment #15
tajinder.minhas commentedHello Rohit,
Thanks for your review. Find my answers point by point as following.
Comment #16
tajinder.minhas commentedComment #17
joshi.rohit100Seems fine to me. Just one thing and I guess not a blocker. Some places, you have used drupal_Set_message(). Please make it consistent.
Also in admin.inc, we have
$val = &$form_state['values'];which is wrong as form_state is already passed by reference so no use of ampersand here.otherwise looks good to me.
Comment #18
tajinder.minhas commentedHello Rohit,
I have made all changed those were spelling mistakes done by my side while resolving other issues. Thanks for notifying. Can you please check if you still find any other issue.
Comment #19
tajinder.minhas commentedAttaching manual review section
Comment #20
tajinder.minhas commentedComment #21
klausimanual review:
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #22
klausiNow revealing the security vulnerability:
commerce_product_queue_admin_remove_product(): this is vulnerable to CSRF attacks. When executing user actions that change data in the database you must use the Form API or CSRF tokens in URLs to confirm the intent of the user. See http://epiqo.com/de/all-your-pants-are-danger-csrf-explained and https://docs.acquia.com/articles/protecting-your-drupal-module-against-c... .
Comment #23
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.