Red Hat Bugzilla – Bug 848480
Arrays as method's input value don't have prober count value
Last modified: 2016-11-30 19:30:54 EST
Description of problem:
I'm using an array of strings as input value in one method. But the `count' is always set to 0 and thus it is not easy to determine how large the array is.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create some method with array of strings as an input
2. Generate provider code
3. print `count'
The definition is: const KStringA* values
The testing code is:
printf("Values [%p]:\n", values);
printf("\tExists: %d\n", values->exists);
printf("\tNull: %d\n", values->null);
printf("\tCount: %d\n", values->count);
printf("\tvalue: %p\n", values->value);
But there is workaround:
arr = values->value;
count = arr->ft->getSize(arr, status);
printf("\tCount2: %d\n", count);
I can provide you testing MOF file and provider code.
konkretcmpi-0.8.7-8.fc18 has been submitted as an update for Fedora 18.
Thank you for fixing this. Please also build and push the fix for F17 and update the Fixed In field.
I cherry-picked the patch into the f17 branch but I didn't have permission to push it or I would have done this for you.
konkretcmpi-0.8.7-8.fc17 has been submitted as an update for Fedora 17.
Update submitted also for Fedora 17 and Fixed In field filled.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing konkretcmpi-0.8.7-8.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
konkretcmpi-0.8.7-8.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
konkretcmpi-0.8.7-9.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.