Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.0.0-alpha.1
-
None
-
None
Description
When no shares are defined yet, it is possible to set the default user shares (My Pictures, My Videos, My Music).
When the MP2-Server runs as service, it fails to retrieve the user folders (it runs as SYSTEM per default).
This causes two issues:
1) Server tries to lookup folder, this fails and "/" is returned. Server then tries to add this "/" share 3 times, this causes errors (unique path). Only one of 3 shares are created.
2) The one created share "/" does cause a major issue: the importer enumerates all "subfolders", which starts with ALL drives and includes ALL folders.
h4. Additional Information
[2012-11-10 07:38:28,755] [337435 ] [19 ] [INFO ] - MediaLibrary: Registering share 'bee81e6d-7ee2-443f-9f72-748d529f3a02' at system 8a9bd6cf-a598-4978-9762-c97c56f3db08: Setting name '[Media.MyPictures]', base resource path '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///' and media categories 'Image'
[2012-11-10 07:38:28,757] [337437 ] [Importer ] [INFO ] - ImporterWorker: Starting import job 'ImportJob '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///''
[2012-11-10 07:38:28,758] [337438 ] [19 ] [ERROR] - MediaLibrary: Error registering share 'bee81e6d-7ee2-443f-9f72-748d529f3a02'
MediaPortal.Backend.Exceptions.ShareExistsException: A share with the given system '8a9bd6cf-a598-4978-9762-c97c56f3db08' and path '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///' already exists
bei MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.RegisterShare(Share share)
[2012-11-10 07:38:28,761] [337441 ] [19 ] [WARN ] - SOAPHandler: Error invoking UPnP action 'SetupDefaultServerShares'
MediaPortal.Backend.Exceptions.ShareExistsException: A share with the given system '8a9bd6cf-a598-4978-9762-c97c56f3db08' and path '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///' already exists
bei MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.RegisterShare(Share share)
bei MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.SetupDefaultLocalShares()
bei MediaPortal.Backend.Services.ClientCommunication.UPnPContentDirectoryServiceImpl.OnSetupDefaultServerShares(DvAction action, IList`1 inParams, IList`1& outParams, CallContext context)
bei UPnP.Infrastructure.Dv.DeviceTree.DvAction.FireActionInvoked(IList`1 inParams, IList`1& outParams, CallContext context)
bei UPnP.Infrastructure.Dv.DeviceTree.DvAction.InvokeAction(IList`1 inParameters, IList`1& outParameters, Boolean checkSignature, CallContext context)
bei UPnP.Infrastructure.Dv.SOAP.SOAPHandler.HandleRequest(DvService service, Stream messageStream, Encoding streamEncoding, Boolean subscriberSupportsUPnP11, CallContext context, String& result)
[2012-11-10 07:38:28,763] [337443 ] [Importer ] [INFO ] - ImporterWorker: Importing '/'
[2012-11-10 07:38:28,828] [337508 ] [Importer ] [INFO ] - ImporterWorker: Importing 'X:\' (5 more resources pending)
[2012-11-10 07:38:28,846] [337526 ] [Importer ] [INFO ] - ImporterWorker: Importing 'X:\Windows XP Mode\' (15 more resources pending)
When the MP2-Server runs as service, it fails to retrieve the user folders (it runs as SYSTEM per default).
This causes two issues:
1) Server tries to lookup folder, this fails and "/" is returned. Server then tries to add this "/" share 3 times, this causes errors (unique path). Only one of 3 shares are created.
2) The one created share "/" does cause a major issue: the importer enumerates all "subfolders", which starts with ALL drives and includes ALL folders.
h4. Additional Information
[2012-11-10 07:38:28,755] [337435 ] [19 ] [INFO ] - MediaLibrary: Registering share 'bee81e6d-7ee2-443f-9f72-748d529f3a02' at system 8a9bd6cf-a598-4978-9762-c97c56f3db08: Setting name '[Media.MyPictures]', base resource path '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///' and media categories 'Image'
[2012-11-10 07:38:28,757] [337437 ] [Importer ] [INFO ] - ImporterWorker: Starting import job 'ImportJob '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///''
[2012-11-10 07:38:28,758] [337438 ] [19 ] [ERROR] - MediaLibrary: Error registering share 'bee81e6d-7ee2-443f-9f72-748d529f3a02'
MediaPortal.Backend.Exceptions.ShareExistsException: A share with the given system '8a9bd6cf-a598-4978-9762-c97c56f3db08' and path '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///' already exists
bei MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.RegisterShare(Share share)
[2012-11-10 07:38:28,761] [337441 ] [19 ] [WARN ] - SOAPHandler: Error invoking UPnP action 'SetupDefaultServerShares'
MediaPortal.Backend.Exceptions.ShareExistsException: A share with the given system '8a9bd6cf-a598-4978-9762-c97c56f3db08' and path '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///' already exists
bei MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.RegisterShare(Share share)
bei MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.SetupDefaultLocalShares()
bei MediaPortal.Backend.Services.ClientCommunication.UPnPContentDirectoryServiceImpl.OnSetupDefaultServerShares(DvAction action, IList`1 inParams, IList`1& outParams, CallContext context)
bei UPnP.Infrastructure.Dv.DeviceTree.DvAction.FireActionInvoked(IList`1 inParams, IList`1& outParams, CallContext context)
bei UPnP.Infrastructure.Dv.DeviceTree.DvAction.InvokeAction(IList`1 inParameters, IList`1& outParameters, Boolean checkSignature, CallContext context)
bei UPnP.Infrastructure.Dv.SOAP.SOAPHandler.HandleRequest(DvService service, Stream messageStream, Encoding streamEncoding, Boolean subscriberSupportsUPnP11, CallContext context, String& result)
[2012-11-10 07:38:28,763] [337443 ] [Importer ] [INFO ] - ImporterWorker: Importing '/'
[2012-11-10 07:38:28,828] [337508 ] [Importer ] [INFO ] - ImporterWorker: Importing 'X:\' (5 more resources pending)
[2012-11-10 07:38:28,846] [337526 ] [Importer ] [INFO ] - ImporterWorker: Importing 'X:\Windows XP Mode\' (15 more resources pending)
Attachments
Issue Links
- relates to
-
MP2-162 Implement MP2-Server as service
-
- Closed
-