Opened 15 years ago

Closed 15 years ago

#166 closed defect (fixed)

bug in massive ownership transfer

Reported by: simonp Owned by: geonetwork-devel@…
Priority: major Milestone: v2.4.2
Component: General Version: v2.5.0
Keywords: Cc:

Description

From: Jean Pommier (IGE) <jean.pommier@…>

Hi,

I get an error message when trying to perform massive ownership transfer : PSQLException : ERREUR: la colonne � owner � est de type integer mais l'expression est de type character varying [in english : the column 'owner' is of type Integer, but the expression is of type character varying]

I'm using postgreSQL.

It looks like it comes from geonet/kernel/DataManager.java : changing the owner and gourpOwner type to integer resvoles it :

public synchronized void updateMetadataOwner(UserSession session, Dbms dbms, int id, String owner, String groupOwner) throws Exception {

dbms.execute("UPDATE Metadata SET owner=?, groupOwner=? WHERE id=?", new Integer(owner), new Integer(groupOwner), id);

}

Cheers,

Jean

Change History (1)

comment:1 by simonp, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in commit 5385

Note: See TracTickets for help on using tickets.