فهرست منبع

some fixes for client reporting

LukePulverenti 12 سال پیش
والد
کامیت
3a4befff6b

+ 1 - 1
MediaBrowser.Api/BaseApiService.cs

@@ -47,7 +47,7 @@ namespace MediaBrowser.Api
 
             var auth = GetAuthorization(request);
 
-            if (auth != null)
+            if (auth != null && auth.ContainsKey("UserId"))
             {
                 var user = UserManager.GetUserById(new Guid(auth["UserId"]));
 

+ 9 - 1
MediaBrowser.Common.Implementations/Updates/PackageManager.cs

@@ -101,7 +101,6 @@ namespace MediaBrowser.Common.Implementations.Updates
             try
             {
                 File.Copy(tempFile, target, true);
-                File.Delete(tempFile);
             }
             catch (IOException e)
             {
@@ -109,6 +108,15 @@ namespace MediaBrowser.Common.Implementations.Updates
                 throw;
             }
 
+            try
+            {
+                File.Delete(tempFile);
+            }
+            catch (IOException e)
+            {
+                // Don't fail because of this
+                _logger.ErrorException("Error deleting temp file {0]", e, tempFile);
+            }
         }
 
     }

+ 1 - 1
MediaBrowser.WebDashboard/Html/dashboard.html

@@ -33,7 +33,7 @@
                     </div>
 
                     <div data-role="collapsible" data-content-theme="c" data-collapsed="false" style="margin-top: 2em;">
-                        <h3>Active Connections</h3>
+                        <h3>Active Users</h3>
                         <div id="divConnections">
                         </div>
                     </div>