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...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: master
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: (C7)
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2015-05-12 12:04 UTC by Colby Williams
Modified: 2016-01-21 18:46 UTC (History)
3 users (show)

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


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


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:
Status:
RESOLVED FIXED

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

Overview:
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 4.0.0.143
Xamarin Studio 5.9.1.3
Xamarin.iOS 8.10.0.267
Xamarin.Mac 2.0.0.262
Comment 2 Sebastien Pouliot 2016-01-21 18:46:20 UTC
Fixed in maccore/master e8e235d7420a53b0890078fe5e096179ba3358c4