@sap/cds-mtxs
Advanced tools
Comparing version 1.14.1 to 1.14.2
@@ -29,4 +29,4 @@ #!/usr/bin/env node | ||
if (cds.db) { | ||
await cds.db.disconnect(cds.requires.multitenancy.t0) | ||
await cds.db.disconnect(tenant) | ||
cds.db.disconnect(cds.requires.multitenancy.t0) | ||
cds.db.disconnect(tenant) | ||
} | ||
@@ -33,0 +33,0 @@ } |
@@ -9,2 +9,10 @@ # Change Log | ||
## Version 1.14.2 - 2024-01-04 | ||
## Fixed | ||
- `POST /-/model-provider/getEdmx` correctly ad-hoc compiles EDMX files for extended or toggled models. | ||
- `POST /-/model-provider/getEdmx` re-compiles the EDMX if a `model` is passed. | ||
- More resilient retry handling for 'authentication failed' errors in HANA deployments. | ||
## Version 1.14.1 - 2023-12-21 | ||
@@ -11,0 +19,0 @@ |
{ | ||
"name": "@sap/cds-mtxs", | ||
"version": "1.14.1", | ||
"version": "1.14.2", | ||
"description": "SAP Cloud Application Programming Model - Multitenancy library", | ||
@@ -5,0 +5,0 @@ "homepage": "https://cap.cloud.sap/", |
@@ -77,3 +77,3 @@ const crypto = require('crypto') | ||
let precompiledEdmx = await _getPrebuiltBundle(tenant, toggles, service, flavor) | ||
let precompiledEdmx = await _getPrebuiltBundle(tenant, toggles, service, flavor, model) | ||
@@ -127,6 +127,6 @@ delete req.data.flavor // we need to delete the OData 'flavor' argument, as getCsn has a different CSN `flavor` argument | ||
async function _getPrebuiltBundle(tenant, toggles, service, flavor) { | ||
async function _getPrebuiltBundle(tenant, toggles, service, flavor, model) { | ||
const { 'cds.xt.ModelProviderService': mp } = cds.services | ||
const needsEdmxCompile = await mp.isExtended(tenant) || !!toggles?.length | ||
if (needsEdmxCompile) { | ||
const needsEdmxCompile = await mp.isExtended(tenant) || !!toggles?.length || model | ||
if (!needsEdmxCompile) { | ||
const edmxPath = path.join(main.root, 'srv/odata', flavor ?? cds.env.odata.version,`${service}.xml`) | ||
@@ -133,0 +133,0 @@ if (exists(edmxPath)) { |
@@ -278,3 +278,3 @@ const cds = require('@sap/cds/lib'), {db} = cds.env.requires | ||
} catch (e) { | ||
if (e.message === 'authentication failed' || /SSL certificate validation failed/.test(e.message)) { | ||
if (/authentication failed/i.test(e.message) || /SSL certificate validation failed/i.test(e.message)) { | ||
return hana.get(tenant, { disableCache: true }) | ||
@@ -281,0 +281,0 @@ } else { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240402