Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Jul 2016 at 13:37 UTC
Updated:
14 Mar 2017 at 21:04 UTC
Jump to comment: Most recent
Comments
Comment #2
qzmenkoComment #3
qzmenkoComment #4
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 #5
rishabh318 commentedHi qzmenko,
I found following issues:
Thanks
Rishabh
Comment #6
qzmenkoHi rishabh318. Thanks for review.
1: It's not necessary. I just removed constant __DIR__ because it was introduced with PHP 5.3
2 & 4: Fixed
3: Here I also think that it is not necessary. The number of additionals functions is not large enough to create a separate file.
Comment #7
PaoloN commentedHey qzmenko, here's my 2 pennies.
The only reason I've put the module back, is because of the README.txt file (see below). The rest is non-critical.
Automated Review
PASS
Manual Review
Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
No: Does not follow the guidelines for in-project documentation and/or the README Template.
At least Introduction, Requirements and Installation sections are mandatory.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage
- variable_get() used in various places around the module without passing the default value.
- In your instapost_post_to_instagram() there are some hardcoded parameters, like "ig_sig_key_version". Not a big deal, but if anything changes in the API, those keys will have to be patched in the module itself. Also, there are a few other hardcoded elements, especially in the User Agent generation string, which could be parameterised in the future, maybe?
- cookies.txt is stored in the module folder. Consider moving that functionality in the files folder of the site itself (for example), not all webserver setups have write permission set on the modules folder.
- No tests.
Comment #8
qzmenkoHi PaoloN. Thanks for review. I fixed all the flaws that you found.
- README.txt fixed. It now contains all the required sections.
- variable_get() now passes the default value.
- "ig_sig_key_version" now used constant.
- I moved file with cookies in public directory.
Comment #9
kala4ekI'm not sure that it is a good solution because some hacker can assume that site uses this module and still your Instagram cookie to post some trash into your Instagram account.
I think that this file should be placed on private file system or in temp directory.
By the best way is to get rid of the use of the file.
Comment #10
qzmenkoHi, kala4ek.
Thanks for the advice. I agree with you, now the cookie file located in the temp directory.
Comment #11
qzmenkoComment #12
kala4ekComment #13
kala4ekHi @qzmenko
instapost.admin.inc
instapost.forms.inc
README.txt
instapost.module
$outputalready definedinstapost_get_node_messagecontains too many strange operations with message, does it all necessary?drupal_json_encodeinstead defaultjson_encodedrupal_json_encodeinstead defaultjson_encodeREQUEST_TIMEconstant insteadtime()REQUEST_TIMEconstant insteadtime()Comment #14
qzmenkoHi @kala4ek
I fixed all the disadvantages that you found. Thank you!
Comment #15
arun ak commentedHi qzmenko,
Manual Review:
$form_state['redirect']is not required in instapost.admin.inc line 76.Thanks,
ARUN AK
Comment #16
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.
Comment #17
qzmenkoHi @arun-ak. Thanks for the advice. I'll fix this in the next few days.
Comment #18
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.
Comment #19
qzmenkoHi @arun-ak.
1. Through drupal_http_request you cannot send files without dirty hack. I think it's better to use curl.
2. I think it is not necessary now.
5. I don't quite understand you. Why should I to write hooks in instapost.module file instead of in instapost.forms.inc?
3,4 fixed.
Comment #20
andrtroe commentedHello @qzmenko,
I advise you to move .admin.inc and .form.inc to "includes" folder, but it's not blocker for module release.
For me it's ok.
Comment #21
andrtroe commentedComment #22
imyaro commentedHello,
I think that is a real bad advice, because temp directory is always accessible by any user.
Please check system_menu() function, "system/temporary" item.
Please consider store it in the database or in the private file directory.
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.
Comment #24
qzmenkoHello @zvse.
"tmp" folder shouldn't be accessible over the web. Please see screenshot bellow:
http://storage5.static.itmages.com/i/17/0222/h_1487754542_3077011_2333d1...
Comment #25
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxKuzmenko2744339git
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #26
qzmenkoComment #27
qzmenkoComment #28
qzmenkoFixed #25
Comment #29
qzmenkoComment #31
klausimanual review:
Otherwise looks good to me.
Thanks for your contribution, Anton!
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.