Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViewLogs on CLI does not check IsInteractive #1447

Closed
tznind opened this issue Sep 30, 2022 · 0 comments · Fixed by #1453
Closed

ViewLogs on CLI does not check IsInteractive #1447

tznind opened this issue Sep 30, 2022 · 0 comments · Fixed by #1453
Labels
bug Issues that highlight a piece of functionality that is not working as expected

Comments

@tznind
Copy link
Contributor

tznind commented Sep 30, 2022

Describe the bug

./rdmp cmd viewlogs eds:1 --dir ./rdmp-yaml

2022-09-30 15:06:02.6167 INFO Dotnet Version:6.0.8 . 
2022-09-30 15:06:02.6559 INFO RDMP Version:8.0.1.0 . 
2022-09-30 15:06:05.0662 TRACE Running Command 'ExecuteCommandViewLogs' . 
2022-09-30 15:06:05.0733 ERROR Value required for 'Undefined DialogArgs' . 
2022-09-30 15:06:05.0733 INFO Fatal error occurred so returning -1 . Rdmp.Core.CommandLine.Interactive.InputDisallowedException: Value required for 'Undefined DialogArgs'
   at Rdmp.Core.CommandLine.Interactive.ConsoleInputManager.SelectOne(DialogArgs args, IMapsDirectlyToDatabaseTable[] availableObjects) in /home/thomas/RDMP/Rdmp.Core/CommandLine/Interactive/ConsoleInputManager.cs:line 219
   at Rdmp.Core.CommandExecution.BasicCommandExecution.SelectOne[T](DialogArgs args, IList`1 availableObjects, T& selected) in /home/thomas/RDMP/Rdmp.Core/CommandExecution/BasicCommandExecution.cs:line 377
   at Rdmp.Core.CommandExecution.BasicCommandExecution.SelectOne[T](IList`1 availableObjects, String initialSearchText, Boolean allowAutoSelect) in /home/thomas/RDMP/Rdmp.Core/CommandExecution/BasicCommandExecution.cs:line 296
   at Rdmp.Core.CommandExecution.AtomicCommands.ExecuteCommandViewLogs.Execute() in /home/thomas/RDMP/Rdmp.Core/CommandExecution/AtomicCommands/ExecuteCommandViewLogs.cs:line 114
   at Rdmp.Core.CommandExecution.CommandInvoker.ExecuteCommand(ConstructorInfo constructorInfo, CommandLineObjectPicker picker) in /home/thomas/RDMP/Rdmp.Core/CommandExecution/CommandInvoker.cs:line 295
   at Rdmp.Core.CommandExecution.CommandInvoker.ExecuteCommand(Type type, CommandLineObjectPicker picker) in /home/thomas/RDMP/Rdmp.Core/CommandExecution/CommandInvoker.cs:line 222
   at Rdmp.Core.CommandLine.Runners.ExecuteCommandRunner.RunCommand(String command) in /home/thomas/RDMP/Rdmp.Core/CommandLine/Runners/ExecuteCommandRunner.cs:line 113
   at Rdmp.Core.CommandLine.Runners.ExecuteCommandRunner.Run(IRDMPPlatformRepositoryServiceLocator repositoryLocator, IDataLoadEventListener listener, ICheckNotifier checkNotifier, GracefulCancellationToken token) in /home/thomas/RDMP/Rdmp.Core/CommandLine/Runners/ExecuteCommandRunner.cs:line 103
   at Rdmp.Core.CommandLine.RdmpCommandLineBootStrapper.Run(RDMPCommandLineOptions opts, IRunner explicitRunner, IRDMPPlatformRepositoryServiceLocator existingLocator) in /home/thomas/RDMP/Rdmp.Core/CommandLine/RdmpCommandLineBootStrapper.cs:line 153
   at Rdmp.Core.CommandLine.RdmpCommandLineBootStrapper.RunCmd(ExecuteCommandOptions opts, IRDMPPlatformRepositoryServiceLocator existingLocator) in /home/thomas/RDMP/Rdmp.Core/CommandLine/RdmpCommandLineBootStrapper.cs:line 104
   at Rdmp.Core.Program.<>c.<HandleArguments>b__5_10(ExecuteCommandOptions opts) in /home/thomas/RDMP/Tools/rdmp/Program.cs:line 108
   at CommandLine.ParserResultExtensions.MapResult[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 parsedFunc2, Func`2 parsedFunc3, Func`2 parsedFunc4, Func`2 parsedFunc5, Func`2 parsedFunc6, Func`2 parsedFunc7, Func`2 parsedFunc8, Func`2 parsedFunc9, Func`2 parsedFunc10, Func`2 parsedFunc11, Func`2 notParsedFunc)
   at Rdmp.Core.Program.HandleArguments(String[] args, Logger logger) in /home/thomas/RDMP/Tools/rdmp/Program.cs:line 83
@tznind tznind added the bug Issues that highlight a piece of functionality that is not working as expected label Sep 30, 2022
tznind added a commit that referenced this issue Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that highlight a piece of functionality that is not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant