Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
12 Dec 2013 at 19:40 UTC
Updated:
25 Jan 2014 at 12:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amreana commentedComment #2
amreana commentedComment #3
amreana commentedComment #4
amreana commentedComment #5
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxamreana2154001git
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
amreana commentedComment #7
punked256 commentedComment #8
yogeshchaugule8 commentedWhile giving GIT clone command, please provide the non-maintainer command : "git clone --branch 7.x-1.x http://git.drupal.org/sandbox/amreana/2154001.git sweetcaptcha"
PAReview Passed: http://pareview.sh/pareview/httpgitdrupalorgsandboxamreana2154001git
Manual Review:
So the above code will be change to:
Comment #9
amreana commentedComment #10
amreana commentedyogeshchaugule8 - thanks so much for taking the time you took to review my module, here's the changes I've done:
1. Thanks for this - i found a better way of doing it.
2. Cannot mark as required as i have 2 forms in 1 and when you login there's no need to also register.
3. Thanks - Fixed!
4. I've changed completely how this works, either login using the default form or select the checkbox and register.
5. This should work ok now from fix at point 4.
6. This should work ok now from fix at point 4.
7. I was doing so to profit from system_settings_form but to also use sweetcaptcha_settings_form_submit.
8. Done, Thanks!
9. Merged, Thanks!
10. Done, Thanks!
11. Corrected.
12. Done.
13. This works for me and i think it also works for you because the behavior is normal: after you add one comment you're still presented with a captcha for the next one you'll be adding. (also possible because of: "Your comment has been queued for review by site administrators and will be published after approval." )
Comment #11
joachim commented> description = SweetCaptcha is a free Captcha service putting the users and your website at first priority. This is a new and fresh graphical Captcha focused on enhanced user experience, so instead of using difficult and boring text, SweetCaptcha offers a fun and interactive friendly user experience.
That's really long for the module admin page.
Also, I have no idea what "putting the users and your website at first priority" means. The text should state what the module does in clear terms, rather then sound like marketing copy.
> class Sweetcaptcha {
This class's methods have incomplete docs.
Are you having the user put files in their webroot? That doesn't strike me as very clean. Though I don't fully understand what's going on here. What is the sweetcaptcha_folder variable doing? Documentation!
> $items['swajax'] = array(
Best to prefix your root-level paths with the whole module name to avoid collisions.
>
Use the warning CSS class that's built into Drupal. Or use drupal_set_message(), which is even better UI.
> $description = '
' . t('SweetCaptcha is REGISTERED.') . '
';
Do you need to say this on the admin form every time? Maybe this belongs in hook_requirements().
You might be able to use system_settings_form() to make this code simpler.
Comment #12
amreana commentedThanks joachim for your review, here's the changes I've done:
1. Description changed to a simpler and cleaner version.
2. Added a more detailed description to the Sweetcaptcha class.
3. Removed the sweetcaptcha_folder as this was just a test ( in live sites we won't see this ).
4. Changed root-level paths swajax to sweetcaptcha_ajax. Thanks!
5. Thanks for the CSS idea - Implemented.
6. Thanks, indeed these values were saved already by system_settings_form()
So again, thanks for all your points!
Comment #13
joachim commented> 2. Added a more detailed description to the Sweetcaptcha class.
More than this, every method and function needs to document its parameters and return value.
Comment #14
amreana commentedThanks joachim,
Indeed the functions were not described in detail. Fixed.
Comment #15
ram4nd commentedComment #16
amreana commentedThanks ram4nd for your review:
1. Fixed, thanks!
2. It's not, I'm passing an argument to the page.
3. Yes, captcha verification might fail, meaning the user is a robot not a real person.
4. Why?
5. st() can't be used here.
6. It's my creation.
Comment #17
joachim commented> Is the module package something global or your own creation. I would drop my own creation.
That must have changed since I reviewed this the other day. I checked for this and it looked like it was the same module package as the Captcha module.
Comment #18
amreana commentedjoachim you mean the "package = "Spam control"" from sweetcaptcha.info ? if yes, i'd say it's better to be in the same package as it's related and when you enable the Captcha module you can see other modules related to it.
Comment #19
devd commented1- Unable to access form from the URL: admin/config/people/captcha/sweetcaptcha. if i enable it using drush en command.
2- Not pursesting the value I wish to register a new account element and related form.
3- If i will not input the value nither Website* nor Email* than it by pass the validation of Website element to next email element.
Comment #20
amreana commentedThank you dev.firoza for your review.
Please allow me to address your points:
1- This works ok, are sure you've successfully enabled the module?
2- Fixed. Thanks!
3- Fixed. Thanks!
Comment #21
devd commentedHi Amreana,
I verified your fixed but fund validation issue is exists now.
1- If i input invalid email id without filling the website field value it save it and does not return any validation error.
If i put any value in website field with invalid email id it returns a message: invalid email dev.firoza.
2- If i input valid email id and invalid website (e.g. drupal). It returns an error invalid website drupal. if both fields are required than error message should be populate in sequence.
3- If i input email id in both fileds (email and website). It returns an error "This website is already registered with the email your have provided. Click here to have us send your crdentials to your email" But i found that no registration has been done.
I am unable to reproduce the point no. 1 in issue Id #19.
Comment #22
amreana commentedThanks dev.firoza for your review, i've removed the * from the fields as the verification was done via api anyway so it was useless.
Comment #23
amreana commentedComment #24
amreana commentedComment #25
amreana commentedComment #26
amreana commentedComment #27
amreana commentedComment #28
klausiRemoved automated reviews.
Comment #29
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:
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #30
devd commentedManaul Review:
You have removed the * from Website and Email but it is returning email validation error. so this field should be mandatory and you should be used drupal inbuild function 'valid_email_address($mail)'.
You can send the Ajax request using the jQuery. So we no need to create the request object.
So you need to remove the function customGetter.
Call a ajax request like:
Comment #31
amreana commentedThank you devendra-yadav for your review! I've implemented both of your ideeas!
Comment #32
amreana commentedThanks klausi for your review! I've implemented all your recommended changes and here are my comments:
1. Removed swcore file and implemented libraries api so user will download the core from external sources and place it in libraries/sweetcaptcha folder
2. Modified the comment block, the function is not returning anything, there is no need.
3. True here what i did was a bit overkill, corrected, thanks!
4. Done, Thanks!
5. Indeed you need to trust sweetcaptcha.com won't xss you. Nothing altered here.
6. Removed - testing leftover. Thanks!
Comment #33
amreana commentedComment #34
klausimanual review:
But otherwise looks RTBC to me.
Assiging to stBorchert who might have time to take a final look at this.
Comment #35
stborchertSome minor notes from me:
var sckeyis never used incustomLoopso it may be removed.Apart from this it looks very good so 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.