I have below JPA repository code :
@RepositoryRestResource(path="attributes",itemResourceRel="attribute",excerptProjection=AttributeHeaderProjection.class,exported = false)
public interface AttributeHeaderDataRestRepository extends JpaRepository<AttributeHeader, String> {
@Query(" SELECT HDR FROM AttributeHeader HDR, AttributeObject OBJ "
+ "WHERE HDR.attribute=OBJ.attribute "
+ " AND OBJ.objName= ?1 ")
List<AttributeHeader> byName( String name);
}
I am getting
"Improper Resource Access Authorization"
CheckMarx issue for the above code.
How to resolve this types of CheckMarx issue?