Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Apr 2014 at 18:18 UTC
Updated:
10 Aug 2014 at 21:40 UTC
Jump to comment: Most recent
Comments
Comment #1
impol commentedThank you for your module.
1) Please use http://pareview.sh/ script, that checks most popular code style errors and provides some tips. I see a lot of errors.
2) And change a link from issue description to http://git.drupal.org/sandbox/tidrif/2230849.git, instead tidrif@git.drupal.org:sandbox/tidrif/2230849.git
3) Don't work in "master" branch.
Comment #2
thomas.fleming commentedComment #3
impol commentedComment #4
thomas.fleming commentedI addressed issues reported by http://pareview.sh/, changed the git repo link, and moved the module over to a non-master branch.
Comment #5
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxtidrif2230849git
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 #6
thomas.fleming commentedSatisfied the rest of the triggered errors and warnings.
Comment #7
rbayliss commentedThis application satisfies all the requirements of the review checklist, has a clean slate on the PAReview, and introduces functionality that doesn't currently exist in contrib. I believe this is RTBC.
Comment #8
thomas.fleming commentedComment #9
thomas.fleming commentedComment #10
thomas.fleming commentedComment #11
thomas.fleming commentedComment #12
thomas.fleming commentedAdded review bonus tag after reviewing third project.
Comment #13
thomas.fleming commentedThe last update for this was over four weeks ago. Setting to critical.
Comment #14
heddnComment #15
heddnIf that fails for whatever reason please get back to us and set this back to "needs review".
Comment #16
rszrama commentedHey guys, Rob and I chatted about the module at DrupalCon along with the other Commerce Authorize.Net maintainer David Kitchen. From an integration standpoint, we're actually comfortable with it living apart. The needs of card present transactions are significantly different enough from card not present transactions that allowing them to develop independently makes fine sense.
The only question I have is could this module use commerce_authnet's existing API request function instead of duplicating that bit? In other words, is there some advantage to be gained by making this module dependent on the other as if it were a submodule of the one project - just able to develop independently?
Comment #17
heddnnone
This should use
commerce_currency_load()to gather the number format settings.From
element_validate_integer_positive(), I'd recommend you use <code>$value !== '' && (!is_numeric($value) || intval($value) != $value || $value <= 0)This should use
commerce_currency_load().Spelling issue for the word setted.
This should use
commerce_currency_load().The starred items (*) are fairly big issues and warrant going back to Needs Review. The rest of the comments in the code walkthrough are recommendations.
Comment #18
thomas.fleming commentedThanks for the feedback, heddn and rszrama!
rszrama - The module is now using commerce_authnet's existing API request function with an alter to set parameters specific to the Card Present implementation.
heddn - Everything from your review should be incorporated in the module.
Comment #19
pushpinderchauhan commented@tidrif, thank you for your contribution!
Manual Review:
1. You have used following code in
commerce_authnet_card_present_aim_void_form()andcommerce_authnet_card_present_aim_credit_form()functions.I think you should use check_plain as these two parameters are coming through hook_menu().
2. One major thing that I have analyzed, you have created
card-swipe.jsfile that contains very small code. I think we can directly add this js in footer with form rendered array. Secondly you have included this js using.infofile, it means once this module will installed this js will also included to every page that looks weird.Here is my suggestion to you either you inline add your js code or add this file with page rendered array or form rendered array.
or
In similar way, you can also add the js on page with page rendered array. It would ensure your js code is always adding once and only for your page.
PS: Above code is a sample code, there can be some TYPO :)
Thanks Again!
Comment #20
heddnAutomated Review
Best practice issues identified by pareview.sh / drupalcs / coder. No findings @ http://pareview.sh/pareview/httpgitdrupalorgsandboxtidrif2230849git
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.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
However, none of these are blockers so I'm moving this to RTBC. Assigning to mpdonadio in case he has time to perform a final review in the next week.
Comment #21
heddnComment #22
thomas.fleming commentedAs heddn mentioned, $order and $transaction are objects loaded via hook_menu from a numeric order and payment id, so I did not make any changes. I did, however, attach the javascript to an appropriate form.
I made the other changes that heddn suggested, including fleshing out the README.
Thanks for the additional feedback, er.pushpinderrana and heddn!
Comment #23
klausiReview of the 7.x-1.x branch:
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:
But otherwise looks good to me, so ...
Thanks for your contribution, tidrif!
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.