When I lock a document in Laserfiche and then try to get the lock information through calls to the RepositoryAccess SDK, the lock information is not being returned. I have tried locking documents through the LF Client and through the SDK, and I have tried admin users, the user who locked the document, and a different user. All calls return no lock information. I have tested with multiple Laserfiche 11 Servers, using both the RA 10.2 and 10.4 toolkits with no success. Is this a known bug or am I trying to retrieve the lock information incorrectly?
private static void TestLock(string lfServer, string lfRep, string lfUser, string lfPwd, string entryId) { Server serv = new Server(lfServer); RepositoryRegistration rep = new RepositoryRegistration(serv, lfRep); Session session = new Session(); if (string.IsNullOrWhiteSpace(lfUser)) session.LogIn(rep); else session.LogIn(lfUser, lfPwd, rep); DocumentInfo lfEntry = (DocumentInfo)Entry.GetEntryInfo(entryId, session); EntryListingSettings els = new EntryListingSettings(); els.AddColumn(SystemColumn.LockOwnerName); SingleEntryListing listing = new SingleEntryListing(lfEntry.Id, els, session); string userName = listing.GetDatum(1, SystemColumn.LockOwnerName).ToString(); Console.WriteLine(userName); // userName = "" Console.WriteLine(lfEntry.IsLocked); // false Console.WriteLine(lfEntry.IsCheckedOut); // false if (lfEntry.EntryLock != null) // EntryLock = null { Console.WriteLine(lfEntry.EntryLock.IsActive); // false //Console.WriteLine(lfEntry.EntryLock.Comment); // Unavailable in 10.4 } }