[GeoNetwork-devel] bug with massive ownership transfer ?

---------- Forwarded message ----------
From: Jean Pommier (IGE) <jean.pommier@anonymised.com>
Date: 2009/9/10
Subject: bug with massive ownership transfer ?
To: geonetwork-users <geonetwork-users@lists.sourceforge.net>

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