Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5838 closed defect (fixed)

Improve error reporting when using OpenFileGDB driver

Reported by: jpalmer Owned by: warmerdam
Priority: normal Milestone: 2.0.0
Component: OGR_SF Version: unspecified
Severity: normal Keywords: openfilegdb
Cc:

Description (last modified by Jukka Rahkonen)

When trying to open a FileGDB using the OpenFileGDB driver and the user does not have permission to read the table file OGR returns a debug message which can be cryptic for a normal user. e.g: Error occurred in xx at line xxx

I've tracked the issue down to this code:

http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/openfilegdb/filegdbtable.cpp#L593

Can this be improved to a message like: "Failed to open table xx -Permission denied".

Change History (4)

comment:1 by Jukka Rahkonen, 9 years ago

Description: modified (diff)

comment:2 by Even Rouault, 9 years ago

Component: defaultOGR_SF
Keywords: openfilegdb added
Milestone: 2.0
Resolution: fixed
Status: newclosed

After r28457 "OpenFileGDB: improve error reporting when file exists but cannot be opened due to permission problem (#5838)"

on a directory where files can be listed but the user hasn't read permission:

$ ogrinfo poly.gdb -ro
ERROR 4: Cannot open poly.gdb/a00000001.gdbtable: Permission denied

comment:3 by jpalmer, 9 years ago

As always just awesome - Thanks Even.

comment:4 by Even Rouault, 9 years ago

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.