View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006253 | module PayPal | module PayPal - sub | public | 2015-11-02 15:53 | 2015-11-02 17:09 |
Reporter | rhuelsberg | Assigned To | |||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 3.1.2 | ||||
Summary | 0006253: oePayPalIPNHandler::handleRequest redirect cl=1 | ||||
Description | Class: oePayPalIPNHandler Function: handleRequest If the IPN verification returns "true", the funtction handleRequest return true and OXID will redirect the robot "PayPal IPN ( https://www.paypal.com/ipn )" to /index.php?cl=1 The Class "1" is invalid and OXID will redirect the robot to "cl=start". Please update the return value of handleRequest or implement an output value like: die( $blRequestHandled ? 'valid' : 'invalid' ); | ||||
Additional Information | Access Log [...] "POST /index.php?cl=oePayPalIPNHandler&fnc=handleRequest&shp=2 HTTP/1.1" 302 - "-" "PayPal IPN ( https://www.paypal.com/ipn )" [...] "POST /index.php?cl=1&sid=[...] HTTP/1.1" 302 - "-" "PayPal IPN ( https://www.paypal.com/ipn )" [...] "POST /index.php?cl=start&redirected=1 HTTP/1.1" 200 575510 "-" "PayPal IPN ( https://www.paypal.com/ipn )" | ||||
Tags | No tags attached. | ||||
Attached Files | oepaypalipnhandler.txt (1,841 bytes)
<?php /** * This file is part of OXID eSales PayPal module. * * OXID eSales PayPal module is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * OXID eSales PayPal module is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OXID eSales PayPal module. If not, see <http://www.gnu.org/licenses/>. * * @link http://www.oxid-esales.com * @copyright (C) OXID eSales AG 2003-2013 */ /** * PayPal IPN handler class. * * Handle PayPal notifications. * - Extract data. * - Check if valid. * - Call order methods to save data. */ class oePayPalIPNHandler extends oePayPalController { // [...] /** * IPN handling function. * - Call to check if request is valid (from PayPal and to correct shop). * - Initiate payment status changes according to IPN information. * * @return null */ public function handleRequest() { $blRequestHandled = false; $blRequestValid = $this->requestValid(); if ( $blRequestValid ) { $oRequest = $this->getPayPalRequest(); $oLang = $this->getPayPalConfig()->getLang(); $oProcessor = $this->getProcessor(); $oProcessor->setRequest( $oRequest ); $oProcessor->setLang( $oLang ); $blRequestHandled = $oProcessor->process(); } die( $blRequestHandled ? 'valid' : 'invalid' ); } // [...] } | ||||
duplicate of | 0006132 | resolved | anton.fedurtsya | POST to /index.php?cl=1 caused by redirect in the answers to the IPN call back causes exceptions |
|
Oh found another ticket to this problem: https://bugs.oxid-esales.com/view.php?id=6132 SRY, please close this ticket. |
|
closed as duplicate of 0006132 |