Comment 5 for bug 907761

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

With the 3.14.12.1 version of catools/caget.c, the problem does not appear. However this version requests the full array length and then cuts the output to the number of requested elements. The version of caget.c in 3.14.12.2 requests only the number of elements as specified by the user, which is more correct. This fails.

So far I see the problem is:

ca_array_get(DBR_<any>_CHAR, elements, chid, &buffer) fails if elements is 1 and the channel is connected to a link field.

I tried a different client with both, the 3.14.12.1 and3.14.12.2 client libraries. Both fail.

So I guess the bug is indeed in the server, because it only appears when accessing links fields as char arrays, not string fields. It had not been fixed in 3.14.12.1, only been hidden by the caget.c implementation.