@sap-ux/odata-service-inquirer 2.14.12 → 2.14.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -671,11 +671,12 @@ class ConnectionValidator {
671
671
  if (url.origin === 'null') {
672
672
  return (0, i18n_1.t)('errors.invalidUrl', { input: serviceUrl });
673
673
  }
674
- // Dont allow non origin URLs in for re-entrance tickets as the error handling would become complex to analyize.
674
+ // Dont allow non origin URLs in for re-entrance tickets and system URL's as the error handling would become complex to analyize.
675
675
  // The connection may succeed but later we will get auth errors since axios-extension does not validate this.
676
- // The new system name would also include the additional paths which would not make sense either.
677
- if (this.systemAuthType === 'reentranceTicket' && !(url.pathname.length === 0 || url.pathname === '/')) {
678
- return (0, i18n_1.t)('prompts.validationMessages.reentranceTicketSystemHostOnly');
676
+ // The new system name would also include the additional paths which would not make sense and would cause the issue when storing the system.
677
+ if ((this.systemAuthType === 'reentranceTicket' || isSystem) &&
678
+ !(url.pathname.length === 0 || url.pathname === '/')) {
679
+ return (0, i18n_1.t)('prompts.validationMessages.systemUrlOriginOnlyWarning');
679
680
  }
680
681
  }
681
682
  catch (error) {
@@ -60,7 +60,7 @@
60
60
  "warningCertificateValidationDisabled": "Certificate validation has been disabled by the user.",
61
61
  "annotationsNotFound": "Annotations not found for the specified service.",
62
62
  "backendSystemExistsWarning": "A saved system connection entry: \"{{- backendName}}\" already exists with the same URL and client. Please reuse the existing entry or remove it, using the systems panel, before adding a new connection.",
63
- "reentranceTicketSystemHostOnly": "ABAP cloud system urls must only contain the hostname, for example, 'https://123.abc.com'"
63
+ "systemUrlOriginOnlyWarning": "System URLs must only contain the hostname and may also include the port, for example, 'https://abc.com:123/'."
64
64
  },
65
65
  "warnings": {
66
66
  "nonUIServiceTypeWarningMessage": "Services of service type: {{serviceType}} or without a service type are not intended to be used for generating SAP Fiori UI applications.",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/odata-service-inquirer",
3
3
  "description": "Prompts module that can prompt users for inputs required for odata service writing",
4
- "version": "2.14.12",
4
+ "version": "2.14.13",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",