Please find my code snippet.
@RequestMapping(value="/abc" , Method=RequetMethod.GET)
public void xxx(@Requestparam("docId") final String docId , @Requestparam("archieveId") final String archieveId){
//Code will be here
}
How can I resolve the coverity scan issues which says "TAINTED_PATH_PARAM" Please help!
As per description provided in link
@Requestparam("docId") final String docIdcan be taken as tained_source, which might be sinking at one or multiple places.Solution : Validation of this variable before "sink" with @NotNull or @NotEmpty or spacial characters validation might resolve this issue.