#166: bug in massive ownership transfer
---------------------+------------------------------------------------------
Reporter: simonp | Owner:
[hidden email]
Type: defect | Status: new
Priority: major | Milestone: v2.4.2
Component: General | Version: v2.5.0
Keywords: |
---------------------+------------------------------------------------------
From: Jean Pommier (IGE) <
[hidden email]>
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
--
Ticket URL: <
http://trac.osgeo.org/geonetwork/ticket/166>
GeoNetwork opensource Developer website <
http://trac.osgeo.org/geonetwork>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-develGeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork