Opened 17 years ago

Closed 17 years ago

#21 closed defect (fixed)

Managing users: error in code

Reported by: joeri.theelen@… Owned by: geonetwork-devel@…
Priority: major Milestone: v2.1 beta 2
Component: General Version:
Keywords: user management, database Cc:

Description

In class "org.fao.geonet.services.user.Update", method addGroup(Dbms, String, String) contains an error. String parameters "user" and "group" should be converted to Integers before calling the INSERT query:

private void addGroup(Dbms dbms, String user, String group) throws Exception {
	dbms.execute("INSERT INTO UserGroups(userId, groupId) VALUES (?, ?)",
		new Integer(user), new Integer(group));
}

Change History (1)

comment:1 by acarboni, 17 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.