Re: Bug #6966 [Bgs]: Is 'action' validated properly?
| From: | Philippe Jausions | Date: | Wed, 01 Mar 2006 03:03:32 +0000 |
| Subject: | Re: Bug #6966 [Bgs]: Is 'action' validated properly? | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-3576@lists.php.net to get a copy of this message | ||
Hi,.
I don't know which back-end processor you're using, but they may have a
built-in test mode?
-Philippe
awbacker at gmail dot com wrote:
>Edit report at
>http://pear.php.net/bugs/bug.php?id=6966&edit=1
>
> ID: 6966
> User updated by: awbacker at gmail dot com
> Reported By: awbacker at gmail dot com
> Status: Bogus
> Id: 6966
> Type: Bug
> Package: Payment_Process
> Operating System: linux
> Package Version: 0.6.5
> PHP Version: 5.1.2
> New Comment:
>
>Ok, pear's system officially sucks. This is the 2nd time it's lost my
>comments. I give up.
>
>
>
>Thanks for the info. It is bad that Dummy is broken, since now I need
>to dev against the real gateway.
>
>
>
>I am willing to contribute changes I make to the dummy, if I become
>familiar enough with the code. Also, I have not been able to find any
>documentation on the project, and the home page it points to is 404.
>
>
>Previous Comments:
>------------------------------------------------------------------------
>
>[2006-02-28 15:38:12] jausions at php dot net
>
>You're using the "Dummy" processor, and that's what it is only. So no
>action is actually valid for this. the Dummy driver is historically
>here to test the system. I don't think it was fully put in place
>though.
>
>------------------------------------------------------------------------
>
>[2006-02-28 15:00:54] zim at zim dot zim
>
>Why does pear validate bug reports against bugs from *other* projects?
>Many unflattering words to describe this come to mind.
>
>------------------------------------------------------------------------
>
>[2006-02-28 14:59:23] awbacker at gmail dot com
>
>Description:
>------------
>I am getting errors about validation failing on the 'action' field. I
>appears that it should be using the _isDefinedConst() function to
>validate, not isset(). Especially since the function seems to mention
>the action field in the comments!
>
>
>
>I think I am missing something, since this seems to break everything
>and I expect that it would have been reported. I am using this
>approximatly as shown below :
>
>Test script:
>---------------
>$ps = Payment_Process::factory('Dummy');
>
>... set values ...
>
>$ps->action = PAYMENT_PROCESS_ACTION_AUTHONLY;
>
>... create & validate card ..
>
>$result = $ps->process();
>
>// boom : Validation of field "action" failed.
>
>------------------------------------------------------------------------
>
>