Fixed bug introduced by sql injeciton protection. 87/17487/1
authorTemoc Rodriguez <cr056n@att.com>
Fri, 6 Oct 2017 16:21:04 +0000 (09:21 -0700)
committerTemoc Rodriguez <cr056n@att.com>
Fri, 6 Oct 2017 16:25:37 +0000 (09:25 -0700)
commit4a4628d57bf3d11fda68e16f695139d512f75354
tree21185fc6e0001df1d1c87e1c77a791d3d54afec9
parent37c9c4d71d17981bf1d05b73d8363ffcbc2451bb
Fixed bug introduced by sql injeciton protection.

Added missing colon before the named parameters. Fixed a typo parameter
name. Fixed bad cast by setParameter.

This fixes issues encountered in the UI. Whenever a policy is moved,
renamed, or deleted it makes a db call and that db call fails on
setParameter method. This hibernate method is supposed to automatically
detect the type of the object for the named parameters but it fails with
type Long. It tries to convert to int and it fails. A check is now added
for type Long.

Issue-ID: POLICY-278
Change-Id: Idbb4067a5ec2cc9d9b040de9e574ba2564e1ee2c
Signed-off-by: Temoc Rodriguez <cr056n@att.com>
ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/daoimpl/CommonClassDaoImpl.java
POLICY-SDK-APP/src/main/java/org/onap/policy/admin/PolicyManagerServlet.java
POLICY-SDK-APP/src/main/java/org/onap/policy/daoImp/CommonClassDaoImpl.java