Bug 29977 - Xamarin.iOS.Security.SecKeyChain.QueryAsRecord(SecRecord, int, out SecStatusCode) : SecRecord[] fails to populate ValueData
Summary: Xamarin.iOS.Security.SecKeyChain.QueryAsRecord(SecRecord, int, out SecStatusC...
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: master
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: (C7)
Assignee: Sebastien Pouliot
Depends on:
Reported: 2015-05-12 12:04 UTC by Colby Williams
Modified: 2016-01-21 18:46 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

project demonstrating the bug (10.12 KB, application/zip)
2015-05-12 12:04 UTC, Colby Williams

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Colby Williams 2015-05-12 12:04:18 UTC
Created attachment 11168 [details]
project demonstrating the bug

Xamarin.iOS.Security.SecKeyChain.QueryAsRecord(SecRecord, int, out SecStatusCode) : SecRecord[] fails to populate ValueData

(project demonstrating the bug attached)

Steps to Reproduce: 
1) Save multiple SecRecords to the Keychain using the same value for SecRecord.Service, and unique values for SecRecord.Account and SecRecord.ValueData
2) Query keychain using the overload of QueryAsRecord noted above, including the same SecRecord.Service value in the SecRecord(query)

Actual Results: The SecRecords are returned without ValueData populated (i.e. ValueData == null)

Expected Results: The returned SecRecords should have ValueData populated

Occurs on current Stable (details below), Beta, Alpha

Mono Framework MDK
Xamarin Studio
Comment 2 Sebastien Pouliot 2016-01-21 18:46:20 UTC
Fixed in maccore/master e8e235d7420a53b0890078fe5e096179ba3358c4