Cannot read metadata when not schema owner
------------------------------------------

                 Key: GEOT-2739
                 URL: http://jira.codehaus.org/browse/GEOT-2739
             Project: GeoTools
          Issue Type: Bug
          Components: data oraclespatial
         Environment: Oracle 11g
            Reporter: Bruce E. Thelen
            Assignee: Andrea Aime
         Attachments: OracleDialect.34006.patch

OracleDialect.getMapping only checks USER_SDO_INDEX_METADATA for the geometry 
type if USER_SDO_INDEX_METADATA is selectable and OracleDialect.getGeometrySRID 
only checks USER_SDO_GEOM_METADATA for the SRID if the USER_SDO_GEOM_METDATA is 
selectable.  

This means that if the user is not the schema owner, but does have access to 
those views the geometry type and SRID will not be detected properly.

Patch attached will fall back to ALL_SDO_INDEX_METADATA and 
ALL_SDO_GEOM_METADATA if the pertinent rows are not found in USER_SDO* tables.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to