open object by index and external links - bug or feature

Hi folks
  yesterday I discovered an interesting behavior of the HDF5 1.8.12
(Debian Wheezy system) library when accessing objects in a group by
index (see the attached C file for an example).

If the parent group has only a single child and this child is an
external link H5Oopen_by_idx fails if the index type is
H5_INDEX_CRT_ORDER. When using H5_INDEX_NAME everything seems to work
fine.

Is this a bug or a feature?

best regards
  Eugen

ext_link_problem.c (4.58 KB)

···

--
------------------------------------
DI. Dr. Eugen Wintersberger
                                    
FS-EC
DESY
Notkestrasse 85
D-22607 Hamburg
Germany
                                   
E-Mail: eugen.wintersberger@desy.de
Telefon: +49-40-8998-1917
-----------------------------------

Hi Eugen,

May I guess that your creation order is not tracked?

http://www.hdfgroup.org/HDF5/doc/RM/RM_H5P.html#Property-SetLinkCreationOrder

I stumbled into the same problem a while back.

Cheers,

Tobias

···

On 23 Apr 2015, at 09:18, Eugen Wintersberger <eugen.wintersberger@desy.de<mailto:eugen.wintersberger@desy.de>> wrote:

Hi folks
yesterday I discovered an interesting behavior of the HDF5 1.8.12
(Debian Wheezy system) library when accessing objects in a group by
index (see the attached C file for an example).

If the parent group has only a single child and this child is an
external link H5Oopen_by_idx fails if the index type is
H5_INDEX_CRT_ORDER. When using H5_INDEX_NAME everything seems to work
fine.

Is this a bug or a feature?

best regards
Eugen

--
------------------------------------
DI. Dr. Eugen Wintersberger

FS-EC
DESY
Notkestrasse 85
D-22607 Hamburg
Germany

E-Mail: eugen.wintersberger@desy.de<mailto:eugen.wintersberger@desy.de>
Telefon: +49-40-8998-1917
-----------------------------------
<ext_link_problem.c>_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom