File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ide-common/src/main/java/org/digma/intellij/plugin/settings Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ static void validateSettings(SettingsComponent settingsComponent) throws Configu
3131 if (settingsComponent .getApiUrl ().isBlank ()) {
3232 throw new ConfigurationException ("Api url can not be empty" );
3333 }
34- if (!CommonUtils .isHttpsUrl (settingsComponent .getApiUrl ())) {
35- throw new ConfigurationException ("Api url schema must be https" );
36- }
3734 try {
3835 URLValidator .create (settingsComponent .getApiUrl ()).validate ();
3936 } catch (MalformedURLException | URISyntaxException | URLValidator .InvalidUrlException | URLValidator .QueryNotAllowedException |
4037 URLValidator .IncorrectSchemaException e ) {
4138 throw new ConfigurationException ("Api url is not a well formed: " + e .getMessage ());
4239 }
40+ if (!CommonUtils .isHttpsUrl (settingsComponent .getApiUrl ())) {
41+ throw new ConfigurationException ("Api url schema must be https" );
42+ }
4343
4444 if (settingsComponent .getRuntimeObservabilityBackendUrl ().isBlank ()) {
4545 throw new ConfigurationException ("Runtime observability url can not be empty" );
You can’t perform that action at this time.
0 commit comments