Questions tagged [request-validation]
79 questions
0
votes
1 answer
While Doing Request Validation in Springboot, Response is not as expected
I am trying to validate the json-resquest using hibernate-validator, it is working as expected but response is not there in postman.
Customer.java
import java.time.LocalDate;
import java.util.List;
import javax.validation.Valid;
import…

Ripu Karn
- 35
- 6
0
votes
2 answers
Laravel request validation not working for postman request
For the following request, when body params are sent as JSON, it always validates the request (as in no validation rule is triggered), but when sent in form-data or form-urlencoded, it passes through validation rules. Is it a limitation with…

Sonia Behal
- 63
- 1
- 1
- 5
0
votes
1 answer
Validating query string parameters and request body in AWS lambda using webargs
I am trying to figure out ways of validating query string parameters for an API created using AWS API gateway and backed by a Python Lambda function. API Gateway can validate the presence of the required query string parameters. However, I could not…

ShwetaJ
- 462
- 1
- 8
- 32
0
votes
1 answer
After Validation Hook not redirecting to the form page
I'm building a small validator for my form with laravel 7 and i needed a custom logic to be added after the standard validation so I used the after validation hook as in doc. My issue is not with the logic of the controller but the fact that after…

Bogghi
- 37
- 4
0
votes
1 answer
Class App\Http\Requests\MyCustomRequest does not exist - Laravel 6
What should happen
There should be no problem updating my modal or atleast accessing this method.
Problem:
I have no idea why I get class not found error every time I submit my form.
My Controller file…

ahmednawazbutt
- 823
- 12
- 34
0
votes
1 answer
Atlassian Swagger Request Validator - Spring MVC Issue
I am using atlassian swagger request validator in my springboot application. I tried to configure all the beans as explained in the [official documentation][1]
[1]:…

Anil Bhaskaran
- 495
- 1
- 8
- 23
0
votes
0 answers
How to validate headers using producerApiDoc property of restConfiguration in Camel REST DSL
I am setting up a validation framework for REST endpoint using Camel REST DSL. I came across RestConfiguration property "producerApiDoc". I have a swagger/openAPI YAML file and trying to pass it as the argument for doing the request validation but…

Nicolas
- 554
- 2
- 11
- 27
0
votes
1 answer
How to validate array in Laravel with Request?
I send to Laravel this JSON data:
[
{"name":"...", "description": "..."},
{"name":"...", "description": "..."}
]
I have a StoreRequest class extends FormRequest:

netdjw
- 5,419
- 21
- 88
- 162
0
votes
1 answer
not able to validate array of objects correctly using is-my-json-valid npm module
I am using is-my-json-valid npm module to validate incoming http request. I defined schema to validate array of objects . This npm module failed to validate objects inside array correctly.
I have defined the schema as mentioned below:
var validator…

unnamed-bull
- 361
- 4
- 15
0
votes
1 answer
Observable.create inside generic Alamofire call function not working when calling validate()
I want to make a validated network request using Alamofire, through a 'generic' function.
If I don't use RX at all or if I don't call validate() or anyCustomValidate() it works fine, but if I use it with the Observable.create and validate() as…

Fatjon Rrapaj
- 133
- 1
- 6
0
votes
1 answer
Cannot disable ASP.NET request validation for URL "/x:)"
When I access the URL /x:) of my ASP.NET MVC 5 app I get this error:
A potentially dangerous Request.Path value was detected from the client (:).
[HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client…

boot4life
- 4,966
- 7
- 25
- 47
0
votes
1 answer
Globally validate user input in classic ASP
What is the best your favorite way of globally validating user input in classic ASP?
I inherited a legacy classic ASP project where I need to validate user input. Currently no validation is done. In ASP.net one can set

jrn
- 2,640
- 4
- 29
- 51
0
votes
1 answer
Laravel: validation message for same rules in one field
I am new to Laravel, and I try to validate a request. I have to following request class:
namespace App\Http\Requests;
class TestRequest extends FormRequest
{
protected function rules()
{
return [
'group_id' =>…

Zoltán Fekete
- 504
- 1
- 6
- 22
0
votes
2 answers
Controller Method Not Found Strange Behaviour
I have an AuthController in my laravel app, inside that controller i have several methods:
public function postLogin(LoginRequest $request)
{
...
}
public function getRegister()
{
...
}
public function postRegister(RegisterRequest $request)
{
…

user3718908x100
- 7,939
- 15
- 64
- 123
0
votes
0 answers
How can i sanitize input http request entity?
I reviewed my code through secure assist it it showing untrusted data being used without validation for this line
response.setContenttype(request.setContenttype());
and tried to validate the request.getContenttype() by doing null and empty check…

Karthik Suresh
- 367
- 7
- 23