Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Apr 2014 at 22:09 UTC
Updated:
16 Jun 2014 at 15:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxmajorrobot2236277git
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 #2
majorrobot commentedComment #3
majorrobot commentedWe've resolved the bot's errors and are ready for review again!
Comment #4
majorrobot commentedComment #5
majorrobot commentedI've reviewed the following applications for the Review Bonus program:
https://drupal.org/node/2224079#comment-8740503
https://drupal.org/node/2175685#comment-8734351
https://drupal.org/node/2244479#comment-8748027
Comment #6
autopoietic commentedInitial installation works fine.
Settings page asks for credly username, not aware that I was asked for name so used registered email address (this lets me into credly.com) also tried id from credly user url, unable to authenticate:
I have api key from https://developers.credly.com/my-apps, and secret key, checked no trailing space in form etc
Happy to trial module if I can get over this hurdle.
Comment #7
izus commentedHello,
Thanks for the contribution. Here is my review :
in credly_settings_validate and credly_badge_add_form_submit you have a drupal_set_message with error status and a form_set error, the last one is suffisant i think, no need for the extra drupal_set_message.
This module uses curl library, but this in not a Drupal requirement, so the module should implement its hook_requirements for this and document it in README.txt
You can check simpletest_requirements in simpletest module that does the same as needed here.
in theme_credly_badges there is a weird str_replace. is this some custom stuff ? maybe adding a comment would make it clear.
also the body of theme_credly_badges may be replaced by a simple theme('item_list', $vars); i think instead of hardcoding the li ul tags
Thanks again
Comment #8
majorrobot commentedHi autopoietic,
Thanks for taking a look!
Yes, the "username" should be the email address you used with Credly. I can see how that can be confusing! We've added a hint to the #description on that form element. If you fetch and merge 7.x-1.x again, you should see this change.
The authentication issue is a bit of a mystery. To test further, we created a new user and were successful with authentication. The order of our fields may be a bit odd from a UI standpoint — it's easy to accidentally put your password into the API Key field. Can you confirm that this is what you're entering:
Credly Username: The email address you log into Credly with.
API Key: Your key from https://developers.credly.com/my-apps.
Credly account password: The password that you log into Credly with.
API Secret: Your secret from https://developers.credly.com/my-apps.
I apologize if that seems a bit basic! I just want to make sure we cover everything. We've also augmented the error in watchdog() for this. If your authentication fails again, can you paste the watchdog error here? That might help us debug.
Thanks so much!
Comment #9
majorrobot commentedHi izus,
Thanks for the review! Those are great comments. If you fetch and merge 7.x-1.x again, you should see that we've addressed your concerns.
There is now only form_set_error() in the _validate() function.
hook_requirements() is now added, and README.txt refers to cURL as a necessity.
Indeed, that code is there to switch the full-size image which Credly's API returns with a thumbnail. We've added a comment to this line to explain this.
Good call. The module uses a theme('item_list', $vars) now.
Let us know if the new version resolves these items to your satisfaction!
Thanks,
majorrobot
Comment #10
majorrobot commentedRemoving the "PAReview: review bonus" tag, since issue was set back to 'Needs Work' earlier today.
Also setting back to Needs review!
Comment #11
izus commentedhi,
thanks again for your contribution, i noticed all your changes.
we can make theme_credly_badges better with no hard coded html tag.
replacing
'<a href="https://credly.com/credit/' . $badge->id . '"> <img src="' . $badge_image . '"/></a>';as in https://api.drupal.org/comment/49213#comment-49213.
i don't have extra notices. it seems good for me.
Thanks
Comment #12
majorrobot commentedHi izus,
Good call — that makes a lot of sense. Our code is updated to reflect your suggestion. Before I set the issue to RTBC, I wanted to confirm that you were able to connect to Credly. Did that work for you (autopoietic had an issue with this, above)?
Thanks so much!
Comment #13
izus commentedhi,
i looked again at the codebase and it seems ok.
i tested the module by installing it, i creadted an app and tested with a drupal user that is registered in credly.com
i can access the tab with badges and operations.
it seems good
also putting back the PAReview: review bonus tag as i checked those are good too.
Thanks
Comment #14
majorrobot commentedThanks so much, izus!
Comment #15
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:
'#prefix' => "<p>If you are viewing this page, your settings have been validated ...: all user facing text must run through t() for translation.So although your sanitization function usage is a bit worrisome I don't see exploitable security issues, so I think we can proceed. But please do fix those.
Thanks for your contribution, majorrobot!
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.
Comment #16
majorrobot commentedHi klausi,
Thanks for the review! We've updated our code to correct what you found. Thanks for updating my account; we look forward to contributing more to the community.
And thanks to all the reviewers!