0
Fixed

Service does not exist

Anoniem 8 jaar geleden in Studio bijgewerkt door anonymous 8 jaar geleden 7
Email Address : No Email Provided

Steps to follow : No Steps Provided

at Warewolf.Studio.ServerProxyLayer.QueryManagerProxy.FetchDbSources()
at Warewolf.Studio.ViewModels.ManageDbServiceModel.RetrieveSources()
at Dev2.Activities.Designers2.Core.Source.DatabaseSourceRegion..ctor(IDbServiceModel model, ModelItem modelItem, enSourceType type)
at Dev2.Activities.Designers2.PostgreSql.PostgreSqlDatabaseDesignerViewModel.BuildRegions()
at Dev2.Activities.Designers2.PostgreSql.PostgreSqlDatabaseDesignerViewModel.InitialiseViewModel(IManageDatabaseInputViewModel manageServiceInputViewModel)
at Dev2.Activities.Designers2.PostgreSql.PostgreSqlDatabaseDesignerViewModel.SetupCommonProperties()
at Dev2.Activities.Designers2.PostgreSql.PostgreSqlDatabaseDesignerViewModel..ctor(ModelItem modelItem)
at Dev2.Activities.Designers2.PostgreSql.PostgreSqlDatabaseDesigner.CreateViewModel()
at Dev2.Activities.Designers2.Core.ActivityDesigner`1.OnLoaded()
at Dev2.Activities.Designers2.Core.ActivityDesigner`1.OnRoutedEventHandler(Object sender, RoutedEventArgs args)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Branch Name: 2124-ServiceNotExist

Steps to reproduce:

  1. Create new workflow
  2. Drag on SqlServer tool
  3. Select existing database
  4. Change Tab
  5. Disconnect server
  6. Change back to original tab
  7. Notice Service does not exist error

FIX:
Added a check to the QueryManagerProxy class to validate if the server is still connected. If not, a Server Disconnected message will show and return. Added this fix to every fetch method in that class, to make sure that all the methods are validated before continuing.

Validate by:

  1. Follow steps to reproduce
  2. Notice popup message occurs
  3. Then reconnect the server
  4. Swap tabs back to original tab to be tested
  5. Notice that the lists are there again.

Code Review:

Please move the string values in the ShowServerDisconnectedPopup method to resource file as per our standards.