Comments (9)
I believe this is because stubby interprets configured values as regular expressions. Is there something in particular within the body you want to match on instead of the entire body?
from stubby4j.
Yes, we need to match few unique identifiers in some elements of the request body xml. These identifiers can across multiple line in request body as elements can increase or decrease based on the request.
Like in the request body we want to match few element values like senderId, ID , passcode. Say if the senderId=adcdc, ID= 123455667 and passcode=passcode1, then only response should be returned.
from stubby4j.
Hi Mrak,
Can please suggest some thing which can help to get around this problem.
Thanks,
Manjeet
from stubby4j.
Can anyone please provide any help on our issue?
Thanks,
Manjeet
from stubby4j.
Can you post your YAML of the endpoint you're trying to match?
XML was some characters (like '?') that are meaningful in regular expressions. You will have to escape these characters for them to be interpreted literally.
from stubby4j.
Thanks Eric for this, using escape character before ? worked.
We need your help regarding regex pattern as well. In our case the request body posted on the stubby4j side span across multiple lines. We need a regex pattern to match few unique identifiers in mutli line request body. We formed a pattern that can match the identifier across multiple lines, however whenever the identifier is not present there in the request body, this regex pattern goes into kind of infinite loop and doesn't comes back. Our regex pattern is failing for negative scenario i.e. no match. Is there a regex pattern in which both the cases work for match and no match ?
from stubby4j.
Please let us know if you anybody can help us on this ?
from stubby4j.
I can't imagine a regular expression going into an infinite loop.
Could you post the exact endpoint you have configured in your YAML and the types of requests you are making?
It sounds like a matter of how to represent your regular expression
from stubby4j.
Closing due to no response
from stubby4j.
Related Issues (20)
- Split yaml config file HOT 12
- How to disable the RegEx pattern cache? HOT 16
- How to match "a token not in the payload" with RegEx pattern? HOT 7
- [FEATURE REQUEST] Request proxying HOT 7
- [FEATURE REQUEST] Create a client to simplify configuration through HTTP HOT 3
- [NEW FEATURE RELEASED]: Request Proxying is GA
- [DOCKER HUB]: stubby4j multi architecture Docker images are on DockerHub HOT 3
- [NEW FEATURE RELEASED]: Added support for HTTP/2 over TLS
- [QUESTION] Regex with XML in request.file and response.file HOT 20
- [NEW FEATURE RELEASED]: Added support for WebSocket [RFC6455] over HTTP/1.1 and HTTP/1.1 with TLS
- [SECURITY] Upgrade log4j to 2.16.0 as a vulnerability workaround HOT 3
- [SECURITY] Upgrade log4j to 2.17.0 as a vulnerability workaround HOT 3
- [SECURITY] Upgrade log4j to 2.17.1 as a vulnerability workaround HOT 3
- [ENHANCEMENT] Moving the baseline to JDK 11 and moving to Jetty 11 HOT 2
- [FEATURE REQUEST] We want to have a way to get a count on requests made to stub uri and reset the count for next test to run HOT 5
- for websocket on-message's client request from the text file new line (Enter) not accepted by using of stubby4j any solution or guideline to use new line in requested file, my requirement is, in requested text file must use multiline value HOT 9
- [FEATURE REQUEST] ... Support ARM Docker Images HOT 14
- [QUESTION] Is it possible to configure websocket server to return different results HOT 6
- [QUESTION] Is snakeyaml 2.0 support in scope for next releases? HOT 5
- [BUG] stubb4j testcontainer failing with "exec /bin/sh: exec format error" HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stubby4j.