Resolving Checkmarx issues reported
So, here we are using input variable String[] args without any validation…
April 09, 2018
While dealing with ELastic Search documents, you faced this issue while updating document:
ElasticSearch: Validation Failed: 1: script or doc is missing;
But, when you want to update the documents. There is a slight change in json. See example:
{
index: 'your_index_name',
type: 'your_type',
id: 'document_id',
body: {
doc: {
title: 'this is my sample title',
createdAt: 'some_date'
}
},
refresh: true
}
Notice the extra “doc” in there. Generally, users tend to put json without “doc”, and it caused this error.
Enjoy!
So, here we are using input variable String[] args without any validation…
I was trying to install mongo extension with pecl. It gave me error: Then, I…
Its good to write unit tests cases, and this part is mostly forgotten by…
I wanted to fetch all image tags from a big html, and wanted to perform some…
Read file all in one shot Above code read whole file at once, but if the files…
This is due to our web server are configured to deny accessing this directory…
Introduction This post has the complete code to send email through smtp server…
Introduction In a normal email sending code from python, I’m getting following…
Introduction In one of my app, I was using to talk to . I have used some event…
Introduction So you have a Django project, and want to run it using docker image…
Introduction It is very important to introduce few process so that your code and…
Introduction In this post, we will see a sample Jenkin Pipeline Groovy script…