CppStars / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Gallio tries to access wrong user's AppData following installation. #903

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Gallio as user MyUser in domain MyDomain.
2. Run test suite as user MyUser in domain MyDomain.
3. Gallio will throw the exception with the stack trace shown below.

Gallio is trying to access this path, which belongs to my local user with the 
same name as my domain user:
  C:\Users\MyUser\AppData

Gallio should probably access this path:
  C:\Users\MyUser.MyDomain\AppData

I do not initially have access to the path that Gallio tries to access. When I 
try to look in the folder, the system shows me a dialog that allows me to grant 
access to myself. This allows me to easily work around the problem.

Problem observed several times before.

System.UnauthorizedAccessException: Access to the path 
'C:\Users\MyUser\AppData' is denied.
HResult: -2147024891
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   at Gallio.Runner.Reports.FileSystemReportContainer.OpenWrite(String path, String contentType, Encoding encoding) in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Runner\Reports\FileSystemReportContainer.cs:line 71
   at Gallio.Runner.Reports.DefaultReportWriter.SaveReport(AttachmentContentDisposition attachmentContentDisposition, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Runner\Reports\DefaultReportWriter.cs:line 155
   at Gallio.Icarus.Services.ReportService.SaveReportAs(Report report, String fileName, String format, IProgressMonitor progressMonitor)
   at Gallio.Icarus.Controllers.ReportController.GenerateReport(Report report, ReportOptions reportOptions, IProgressMonitor progressMonitor)
   at Gallio.Common.Concurrency.LockBox`1.Read(ReadAction`1 action) in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Common\Concurrency\LockBox.cs:line 61
   at Gallio.Icarus.Commands.RunTestsCommand.GenerateReport(IProgressMonitor progressMonitor)
   at Gallio.Icarus.Commands.RunTestsCommand.Execute(IProgressMonitor progressMonitor)
Reported by: 
UnhandledExceptionPolicy
   at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke[T](EventHandler`1 handlerChain, Object sender, T e) in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 69
   at Gallio.Common.Concurrency.Task.NotifyTerminated(TaskResult result) in c:\Server\Projects\MbUnit v3\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 305
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Version: Gallio 3.4.14.0.  x64.

Windows 7.

Original issue reported on code.google.com by bent.tra...@gmail.com on 4 Nov 2012 at 2:09