Details
-
Bug
-
Resolution: Fixed
-
Minor
-
2.0.0-Summer Release '15
-
None
Description
<p>The DirectoryEntryNeighborhoodBrowser throws exceptions in the following form, when it runs on a computer that is member of a Domain:</p>
<p>[2015-09-04 19:15:22,178] [894034 ] [59 ] [ERROR] - DirectoryEntryNeighborhoodBrowser: Error while getting IPHostEntries<br />
System.Net.Sockets.SocketException (0x80004005): Der angegebene Host ist unbekannt<br />
bei System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)<br />
bei System.Net.Dns.EndGetHostEntry(IAsyncResult asyncResult)<br />
bei System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<br />
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---<br />
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br />
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br />
bei MediaPortal.Extensions.ResourceProviders.NetworkNeighborhoodResourceProvider.NeighborhoodBrowser.DirectoryEntryNeighborhoodBrowser.<DoGetHostsAsync>d__1.MoveNext()</p>
<p>Reason is that in a domain, the direct child-objects of the domain-object are not only computers, but also other objects, which do not have an ip address. The ip address resolution therefore fails.</p>
<p>Solution is that we need to check <a href="https://github.com/MediaPortal/MediaPortal-2/blob/1fcf783e56c55e96ae9c0e490a4b5b5b7be5487f/MediaPortal/Source/Extensions/ResourceProviders/NetworkNeighborhoodResourceProvider/NeighborhoodBrowser/DirectoryEntryNeighborhoodBrowser.cs#L90">here</a>, whether the object is a computer, before we try to relove the ip address.</p>
<p>[2015-09-04 19:15:22,178] [894034 ] [59 ] [ERROR] - DirectoryEntryNeighborhoodBrowser: Error while getting IPHostEntries<br />
System.Net.Sockets.SocketException (0x80004005): Der angegebene Host ist unbekannt<br />
bei System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)<br />
bei System.Net.Dns.EndGetHostEntry(IAsyncResult asyncResult)<br />
bei System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<br />
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---<br />
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br />
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br />
bei MediaPortal.Extensions.ResourceProviders.NetworkNeighborhoodResourceProvider.NeighborhoodBrowser.DirectoryEntryNeighborhoodBrowser.<DoGetHostsAsync>d__1.MoveNext()</p>
<p>Reason is that in a domain, the direct child-objects of the domain-object are not only computers, but also other objects, which do not have an ip address. The ip address resolution therefore fails.</p>
<p>Solution is that we need to check <a href="https://github.com/MediaPortal/MediaPortal-2/blob/1fcf783e56c55e96ae9c0e490a4b5b5b7be5487f/MediaPortal/Source/Extensions/ResourceProviders/NetworkNeighborhoodResourceProvider/NeighborhoodBrowser/DirectoryEntryNeighborhoodBrowser.cs#L90">here</a>, whether the object is a computer, before we try to relove the ip address.</p>
Attachments
Issue Links
- links to