1 (edited by RobLarge 19-03-2012 14:40:42)

Re: A small bug in report wizard

Just noticed an unhandled error in the report output window.

A custom xml report has been set up where clicking on one of the fields (can't remember which) in the output window takes you to the actual occurence in the heirarchy window.

The xml selects records regardless of whether they are confidential & the output includes some confidential records.

The report is run by someone who does not have the level of access specified in Options to be able to export confidential data.

When that user clicks on one of the confidential records in the report output, there is an unhandled error (List index out of bounds), since Recorder cannot display the record in the occurence hierarchy for that user.

I realise that this is a somewhat artificial situation since the xml is circumventing Recorders confidential record security (and i will consider amending it accordingly), but I thought it was worth noting.

Rob Large
Wildlife Sites Officer
Wiltshire & Swindon Biological Records Centre

2

Re: A small bug in report wizard

OK a bit more thinking done and I now have a question. In order to amend the xml report described above, I realise that I can extract the User's security level from the USER table, but I need to know where to read the minimum access level at which recorder will allow export of confidentials, as set in options.

Is this setting held in a table somewhere?

Rob Large
Wildlife Sites Officer
Wiltshire & Swindon Biological Records Centre

3

Re: A small bug in report wizard

Found it I think in SETTING is it the item called LevelConf?

Rob Large
Wildlife Sites Officer
Wiltshire & Swindon Biological Records Centre