H5Aopen_by_name bug

I'm having a problem using H5Aopen_by_name with a group name. I'm using
HDF5 1.8.16.

Doesn't work:
    auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT,
H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns -1

Works:
    auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
    auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT,
H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns 0

Hi David,

I was able to reproduce this and entered bug HDFFV-9680 for this issue.
H5Aread worked but H5Awrite failed. Both work if using H5Aopen_by_name(id, “.”, ….).

Thanks!
-Barbara
help@hdfgroup.org

···

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of David
Sent: Tuesday, February 09, 2016 1:54 PM
To: HDF Users Discussion List
Subject: [Hdf-forum] H5Aopen_by_name bug

I'm having a problem using H5Aopen_by_name with a group name. I'm using HDF5 1.8.16.

Doesn't work:
    auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns -1
Works:
    auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
    auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns 0

Thanks. Is there a way I can follow this in your bug tracker (I can't find
it) so I can patch my lib when a solution is found?

···

On Thu, Feb 11, 2016 at 9:13 AM, Barbara Jones <bljones@hdfgroup.org> wrote:

Hi David,

I was able to reproduce this and entered bug HDFFV-9680 for this issue.

H5Aread worked but H5Awrite failed. Both work if using
H5Aopen_by_name(id, “.”, ….).

Thanks!

-Barbara

help@hdfgroup.org

*From:* Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] *On
Behalf Of *David
*Sent:* Tuesday, February 09, 2016 1:54 PM
*To:* HDF Users Discussion List
*Subject:* [Hdf-forum] H5Aopen_by_name bug

I'm having a problem using H5Aopen_by_name with a group name. I'm using
HDF5 1.8.16.

Doesn't work:

    auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT,
H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns -1

Works:
    auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
    auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT,
H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns 0

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Hi David,

Our bug tracking system is not open to the public, but feel free to contact the helpdesk (help@hdfgroup.org<mailto:help@hdfgroup.org>) if you ever want to check on the status of a bug.

-Barbara

···

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.on Behalf Of David
Sent: Thursday, February 11, 2016 11:25 AM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] H5Aopen_by_name bug

Thanks. Is there a way I can follow this in your bug tracker (I can't find it) so I can patch my lib when a solution is found?

On Thu, Feb 11, 2016 at 9:13 AM, Barbara Jones <bljones@hdfgroup.org<mailto:bljones@hdfgroup.org>> wrote:
Hi David,

I was able to reproduce this and entered bug HDFFV-9680 for this issue.
H5Aread worked but H5Awrite failed. Both work if using H5Aopen_by_name(id, “.”, ….).

Thanks!
-Barbara
help@hdfgroup.org<mailto:help@hdfgroup.org>

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org<mailto:hdf-forum-bounces@lists.hdfgroup.org>] On Behalf Of David
Sent: Tuesday, February 09, 2016 1:54 PM
To: HDF Users Discussion List
Subject: [Hdf-forum] H5Aopen_by_name bug

I'm having a problem using H5Aopen_by_name with a group name. I'm using HDF5 1.8.16.

Doesn't work:
    auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns -1
Works:
    auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
    auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns 0

_______________________________________________
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

Unfortunately, our bug tracker is not open at this point. We are working on changing this after we move HDF5 to Git and to the new versions of Atlassian tools (in progress). I will update FORUM when HDF5 JIRA project becomes public.

Once again, thank you for your patience.

Elena

···

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Feb 11, 2016, at 11:24 AM, David <list@aue.org<mailto:list@aue.org>> wrote:

Thanks. Is there a way I can follow this in your bug tracker (I can't find it) so I can patch my lib when a solution is found?

On Thu, Feb 11, 2016 at 9:13 AM, Barbara Jones <bljones@hdfgroup.org<mailto:bljones@hdfgroup.org>> wrote:
Hi David,

I was able to reproduce this and entered bug HDFFV-9680 for this issue.
H5Aread worked but H5Awrite failed. Both work if using H5Aopen_by_name(id, “.”, ….).

Thanks!
-Barbara
help@hdfgroup.org<mailto:help@hdfgroup.org>

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org<mailto:hdf-forum-bounces@lists.hdfgroup.org>] On Behalf Of David
Sent: Tuesday, February 09, 2016 1:54 PM
To: HDF Users Discussion List
Subject: [Hdf-forum] H5Aopen_by_name bug

I'm having a problem using H5Aopen_by_name with a group name. I'm using HDF5 1.8.16.

Doesn't work:
    auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns -1
Works:
    auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
    auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
    int v = 6;
    auto r = H5::H5Awrite(aid, type_id, &v); // returns 0

_______________________________________________
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

_______________________________________________
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