-
Hi, Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
That appears to be incorrect.
Please open an issue https://github.com/jpos/jPOS-EE/issues and if you can
provide a patch for it that would be great.
The return validParam(ctx, entry, value); needs to be used to continue the
for loop if it is true.
I think the problem exists for all the check methods.
…-chhil
On Fri, Oct 14, 2022 at 10:16 AM ronlange ***@***.***> wrote:
Hi,
I am using a REST transaction manager, and adding some APIs. I stumbled
upon the ValidateParams transaction participant while looking at the code
and thought it was just what I needed. However, when I started using it, I
noticed that even though I have 2 path params, only the first one actually
gets verified against the regexp provided in the params list for it.
Looking at the code
<https://github.com/jpos/jPOS-EE/blob/master/modules/qrest/src/main/java/org/jpos/qrest/ValidateParams.java#L187>,
it seems it starts a for loop, but returns after trying to match the first
one, whether it matches or not.
So I figure I'm either missing something, using it incorrectly, or there's
a bug.
Which is it? :)
Thanks
—
Reply to this email directly, view it on GitHub
<#265>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIRJTZPML45RFXH3PKNNVLWDDQQ3ANCNFSM6AAAAAARE4EEPQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
This issue is being addressed in #266 and was fixed in #267