Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
3 Aug 2020 at 05:42 UTC
Updated:
15 Feb 2021 at 09:39 UTC
Jump to comment: Most recent
Comments
Comment #2
phthlaap commentedUpdate application title
Comment #3
harishh commentedUpdated "Git instructions".
Comment #4
harishh commentedHi @drupal.ramesh,
1. Better to replace $_POST with Drupal request.
src/Plugin/Commerce/PaymentGateway/CashfreeRedirect.php
2. Please check the Drupal coding standards.
/commerce_cashfree_payment/src/PluginForm/CashfreeRedirect/PaymentCashfreeForm.php
--------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------
24 | WARNING | Unused variable $redirect_method.
25 | WARNING | Unused variable $parameters.
40 | WARNING | Unused variable $product_id.
--------------------------------------------------------------------------------------------------------------------
/commerce_cashfree_payment/src/Plugin/Commerce/PaymentGateway/CashfreeRedirect.php
--------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 11 LINES
--------------------------------------------------------------------------------------------------------------------
91 | WARNING | Unused variable $order_status.
92 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request instead
92 | WARNING | Unused variable $responseParams.
94 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request->get("orderId") instead
95 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request->get("orderAmount") instead
96 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request->get("referenceId") instead
97 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request->get("txStatus") instead
98 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request->get("paymentMode") instead
99 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request->get("txMsg") instead
100 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request->get("txTime") instead
101 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request->get("signature") instead
102 | ERROR | The $_POST super global must not be accessed directly; inject the request.stack service and use
| | $stack->getCurrentRequest()->request->get("referenceId") instead
-------------------------------------------------------------------------------------------------------
Comment #5
avpadernoComment #6
drupal-ramesh commentedHi kiamlaluno
Thank you for your valuable feedback. Above warnings and errors are fixed.
Comment #7
pavnish commentedReadme file should need more clear:
Need to follow :
Introduction
Requirements
Installation
Configuration
Maintainers
Comment #8
drupal-ramesh commentedHi pavnish.
Thanks for your input. I have moved the updated readme file.
Comment #9
drupal-ramesh commentedComment #10
pinesh commentedThank you for the contribution!
Please fix the Drupal coding standards.
Comment #11
pinesh commentedComment #12
drupal-ramesh commentedHi pinesh
Thanks for your valuable feedback.
When i run the command i found only 2 warnings. I have fixed those warnings.Kindly let me know how to get these errors. i have used below url as reference to check coding standards.
https://www.drupal.org/docs/8/modules/code-review-module/php-codesniffer...
Comment #13
pinesh commentedComment #14
avpadernoI am changing priority as per https://www.drupal.org/node/539608.
Comment #15
drupal-ramesh commentedComment #16
VishalSN commentedHi Harish
Getting this when I tried to test the Deprecated module command.
------ -----------------------------------------------------------------------------------
Line commerce_cashfree_payment/src/Plugin/Commerce/PaymentGateway/CashfreeRedirect.php
------ -----------------------------------------------------------------------------------
Class
Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\OffsitePayment
GatewayBase not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
22 Class
Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\OffsitePayment
GatewayBase not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ -----------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line commerce_cashfree_payment/src/PluginForm/CashfreeRedirect/PaymentCashfreeForm.php
------ -----------------------------------------------------------------------------------
Class Drupal\commerce_payment\PluginForm\PaymentOffsiteForm not
found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
15 Class Drupal\commerce_payment\PluginForm\PaymentOffsiteForm not
found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ -----------------------------------------------------------------------------------
Thanks
Comment #17
drupal-ramesh commentedHi vishal
I have checked deprecated code using drupal check .No error in commerce cashfree and both the classes available in commerce payment.
Kindly give me more details about this error.
Comment #18
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, 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.
I thank all the dedicated reviewers as well.
Comment #19
avpaderno