Community
Participate
Working Groups
Changes to service provider were not save after they were made in the ServiceProviderConfigurationWidget (used in service configurations property/preference pages). Upon selecting a service from the service tree, an IServiceProviderWorkingCopy was created from an IServiceProvider and an IServiceProviderContributor was setup to configure the working copy. However the IServiceProviderContributor was actually editing the IServiceProvider and not its working copy. Therefore, when user clicks OK, the unmodified working copy would attempt to save its properties to the provider, which set the provider back to its original state.
Created attachment 172343 [details] patch for ptp_4_0
Hi Greg, can you please review this patch? Without this patch, remote services cannot be edited for remote projects. Should the IServiceProviderContributor interface be changed so that configureServiceProvider() works with IServiceProviderWorkingCopy instead of an IServiceProvider?
Created attachment 172344 [details] revised patch for ptp_4_0
This is working for me, so I'm ok with the patch. It would seem to make sense if IServiceProviderWorkingCopy was passed to configureServiceProvider(). I guess this can only be changed in head.
(In reply to comment #4) > This is working for me, so I'm ok with the patch. > > It would seem to make sense if IServiceProviderWorkingCopy was passed to > configureServiceProvider(). I guess this can only be changed in head. Thanks for reviewing the patch Greg. I'll post another patch for HEAD with the API change.
Created attachment 172446 [details] patch for HEAD
Looks good. Please apply.
Fixed in ptp_4_0 and HEAD. I've also updated the plugin version.
Created attachment 173093 [details] additional changes needed for HEAD
Additional changes applied to HEAD
I've also fixed the RM's that are using this interface.