dotnet/runtime

Bug System.DirectoryServices.DirectorySearcher

Open

#59.756 aperta il 29 set 2021

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)C# (5445 fork)batch import
area-System.DirectoryServiceshelp wantedtest-enhancement

Metriche repository

Star
 (17.886 star)
Metriche merge PR
 (Merge medio 12g 11h) (661 PR mergiate in 30 g)

Descrizione

The field: internal SearchResultCollection? searchResult;

was never set. In older versions of the lib, the field was set in FindAll() method:

  SearchResultCollection resultCollection = new SearchResultCollection(root, hSearchResult, strArray, this);
  this.searchResult = resultCollection;
  return resultCollection;

Now:

        return new SearchResultCollection(clonedRoot, resultsHandle, properties, this);

As result impossible to retrieve DirsyncCookie.

Guida contributor