Opened 17 years ago
Closed 17 years ago
#21 closed defect (fixed)
Managing users: error in code
Reported by: | Owned by: | ||
---|---|---|---|
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)); }
Note:
See TracTickets
for help on using tickets.