Hello all,
I just upgraded to 14.10 and some of my code in a client application (c#) is throwing an exception. I am trying to list metadata and I get an exception that I must filter by objectid.
This wasn’t a problem before the upgrade, so I’m trying to figure out what might have changed…
Here is a code snippet
Client client;
client = InitClient();
client.ClientTag = "CacheMetadata";
MetadataFilter metafilter = new MetadataFilter();
FilterPager pager = new FilterPager();
pager.PageSize = 500;
bool done = false;
List<Metadata> resultsTemp = new List<Metadata>();
List<Metadata> results = new List<Metadata>();
int metadataCount = 0;
OnCompletedHandler<ListResponse<Metadata>> metahandler = new OnCompletedHandler<ListResponse<Metadata>>(
(ListResponse<Metadata> result, Exception e) =>
{
metadataCount = result.TotalCount;
resultsTemp = (List<Metadata>)result.Objects;
done = true;
});
metafilter.MetadataObjectTypeEqual = MetadataObjectType.ENTRY;
metafilter.StatusEqual = MetadataStatus.VALID;
metafilter.MetadataProfileIdEqual = _kalturaMetadataProfileID;
MetadataListRequestBuilder metarequest = new MetadataListRequestBuilder(metafilter,pager);
metarequest.SetCompletion(metahandler);
Logging.DebugTrace("Calling client execute for metadata.", EventIDs.KalturaAPICall, System.Diagnostics.TraceEventType.Information);
metarequest.Execute(client);
while (!done) { Thread.Sleep(1); };
done = false;
Logging.DebugTrace("Retrieved metadata count from Kaltura. " + metadataCount.ToString() + " metadata items exist", EventIDs.KalturaAPICall, System.Diagnostics.TraceEventType.Information);
I’ve tried updating my client library, but I think there is a bug in the latest C# library that prevent compiling. I can post about that later.
Thanks for any help